Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Tyxml_syntax.AttributesAttribute parsing.
val parse :
Migrate_parsetree.Ast_408.Location.t ->
Common.name ->
(Common.name * string Common.value) list ->
(Tyxml_syntax.Common.Label.t * Migrate_parsetree.Ast_408.Parsetree.expression)
listparse loc element_name attributes evaluates to a list of labeled parse trees, each representing an attribute argument to the element function for element_name. For example, if called on the HTML element <img src='foo' alt='bar' id='some-image'>, this function will evaluate to parse trees for the arguments:
~src:(return "foo") ~alt:(return "bar") ~a:[id (return "some-image")]This satisfies the attribute arguments in the signature of Html_sigs.T.img.