View Source Surface.AST.AttributeExpr (Surface v0.12.0)

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

Summary

Types

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

Functions

Link to this function

new(expr, original, meta)

View Source