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

An AST node representing a generic block.

Properties

* `:name` - name of the block
* `:expression` - the expression passed to block
* `:sub_blocks` - a list containing each sub-block's {name, children_ast}
* `:meta` - compile meta
* `:debug` - keyword list indicating when debug information should be printed during compilation

Link to this section Summary

Link to this section Types

Specs

t() :: %Surface.AST.Block{
  debug: [atom()],
  expression: Surface.AST.AttributeExpr.t(),
  meta: Surface.AST.Meta.t(),
  name: binary(),
  sub_blocks: [Surface.AST.SubBlock.t()]
}