View Source template_compiler_element (template_compiler v2.8.0)

Compile main block elements to erl_syntax trees.

Link to this section Summary

Link to this section Types

-type block_element() :: {block, identifier_token(), elements()}.
-type element() :: block_element() | true | false | undefined | term().
-type elements() :: [element()].
-type identifier_token() :: {identifier, linecol(), binary()}.
-type linecol() :: {Line :: integer(), Column :: integer(), file:filename_all()}.

Link to this section Functions

-spec compile(element() | elements(), #cs{}, #ws{}) -> {#ws{}, erl_syntax:syntaxTree()}.