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

# Functions

No description provided by the author
AreEqual returns a call to the comparison operator between the two expressions.
No description provided by the author
No description provided by the author
AssignNextStatement assigns the given statement the given next statement and returns the next statement.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
FunctionDefinition constructs a new function definition.
GeneratorDefinition constructs a new function definition for a generator function.
No description provided by the author
InvokeFunction generates the CodeDOM for a function call, properly handling promise awaiting, including maybe wrapping.
IsAsynchronous returns true if the statementOrExpression or one of its child expressions is asynchronous.
IsManagingResources returns true if the statement or any of its child statements are a ResourceBlockNode.
IsMaybePromisingMember returns true if the given member *might* be promising (will return false for those that are known to promise).
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Constants

No description provided by the author
AsynchronousWorkerFunction marks a function as being executed asynchronously via a worker.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
GeneratorFunction marks a function as being a generator.
No description provided by the author
No description provided by the author
No description provided by the author
None marks a function as having no specialization.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

AnonymousClosureCallNode wraps a function call to an anonymous closure, properly handling whether to await the result.
ArrayLiteralNode represents a literal array definition.
ArrowPromiseNode represents a wait on a promise expression and assignment to a resolution expression and/or rejection expression once the promise returns.
AwaitPromiseNode wraps a child expression that returns a promise, waiting for it to complete and return.
BinaryOperationNode wraps a call to a binary operator.
CompoundExpressionNode represents an expression that executes multiple sub-expressions with an input and output value expression.
ConditionalJumpNode represents a jump to a true statement if an expression is true, and otherwise to a false statement.
DynamicAccessNode is the access of an unknown named member under a child expression.
EmptyStatementNode represents an empty statement.
ExpressionStatementNode represents a statement of a single expression being executed.
FunctionCallNode wraps a function call.
FunctionDefinitionNode represents the definition of a function.
GenericSpecificationNode wraps a generic specification.
LiteralValueNode refers to a literal value to be emitted.
LocalAssignmentNode represents assignment of a value to a target variable or parameter.
LocalReferenceNode is a named reference to a local variable or parameter.
MemberAssignmentNode represents assignment of a value to a target member.
MemberCallNode is the function call of a known named member under a child expression.
MemberReferenceNode is a reference of a known named member under a child expression.
NativeAccessNode is the access of an unknown native member under a child expression.
NativeAssignNode is the assignment of one expression to another expression.
NativeIndexingNode is the indexing of one expression by another expression.
NativeMemberAccessNode is the access of a named member under a child expression.
NestedTypeAccessNode is a reference to an inner type under a structurally inherited class.
NominalUnwrappingNode is the unwrapping of an instance of a nominal type back to its original type.
NominalWrappingNode is the wrapping of an instance in a nominal type.
ObjectLiteralEntryNode represents an entry in an object literal.
ObjectLiteralNode represents a literal object definition.
RejectionNode represents the rejection of a function.
ResolutionNode represents the resolution of a function.
ResolveExpressionNode represents a resolution of an arbitrary expression, with assignment to either a resolved value or a rejected value.
ResourceBlockNode represents a resource placed on the resource stack for the duration of a statement call.
RuntimeFunctionCallNode represents a call to an internal runtime function defined for special handling of code.
StaticMemberReferenceNode refers statically to a member path.
StaticTypeReferenceNode refers statically to a type path.
TernaryNode wraps a call to a ternary expr.
TypeLiteralNode refers to a type instance.
UnaryOperationNode wraps a call to a unary operator.
UnconditionalJumpNode represents a jump to another statement.
VarDefinitionNode represents a variable defined in the scope.
YieldNode represents a yield of some sort under a generator function.

# Interfaces

Expression represents an expression.
HasNextStatement marks a statement as having a next statement in a linked chain of statements.
LocallyAsynchronousStatement matches statements that themselves can be async, outside of their child expressions.
Named marks an expression with a source mapping name.
Statement represents a statement.
StatementOrExpression represents a statement or expression.

# Type aliases

RuntimeFunction defines a function defined by the runtime.
No description provided by the author