package
0.3.2
Repository: https://github.com/serulian/compiler.git
Documentation: pkg.go.dev

# Functions

Array returns an array literal.
Assignment returns a new assignment operator.
Binary returns a new binary operator on left and right child expressions.
BuildSource builds the full source for the given builder.
BuildSourceAndMap builds the full source and sourcemap for the given builder.
Call returns a function call.
Closure returns an anonymous closure.
ExpressionList returns an expression list.
ExprMember returns a member under another expression.
ExprStatement returns an expression as a statement.
Function returns a named function.
Identifier returns a new identifier.
If returns a new conditional statement.
IfElse returns a new conditional statement.
LiteralValue returns a literal value.
Member returns a member under another expression.
Object returns an object literal.
ObjectEntry returns an object literal entry.
Postfix returns a new postfixed operator on an expression.
Prefix returns a new prefixed operator on an expression.
Return returns a new return statement.
Returns returns a new return statement with a value.
Snippet returns a new snippet.
Statements returns a block of statements.
Template returns an inline templated code block.
Ternary returns a new ternary operator on the check, left and right child expressions.
Value returns a literal value.
Variable returns a variable declaration statement.
VariableWithInit returns a variable declaration statement.

# Interfaces

ExpressionBuilder defines an interface for all expressions.
SourceBuilder defines an interface for all expressions, statements and templates.
StatementBuilder defines an interface for all statements.
TemplateSourceBuilder defines an interface for a templated code block.