Surface.AST.AttributeExpr (surface v0.7.0) View Source

An AST node representing an attribute expression (i.e. a dynamic value for an attribute, directive, or property)

Properties

* `:original` - the original text, useful for debugging and error messages
* `:value` - a quoted expression
* `:constant?` - true if the expression can be evaluated at compile time
* `:meta` - compilation meta data

Link to this section Summary

Link to this section Types

Specs

t() :: %Surface.AST.AttributeExpr{
  constant?: boolean(),
  meta: Surface.AST.Meta.t(),
  original: binary(),
  value: any()
}

Link to this section Functions

Link to this function

new(expr, original, meta)

View Source