Surface.AST.Attribute (surface v0.7.0) View Source
An AST node representing an attribute or property
Properties
* `:type` - an atom representing the type of attribute. See Surface.API for the list of supported types
* `:type_opts` - a keyword list of options for the type
* `:name` - the name of the attribute (e.g. `:class`)
* `:value` - a list of nodes that can be concatenated to form the value for this attribute. Potentially contains dynamic data
* `:meta` - compilation meta data
Link to this section Summary
Link to this section Types
Specs
t() :: %Surface.AST.Attribute{ meta: Surface.AST.Meta.t(), name: atom(), type: atom(), type_opts: keyword(), value: Surface.AST.Literal.t() | Surface.AST.AttributeExpr.t() }