Class CompoundExpression
Implements
Index
Constructors
Properties
Methods
Constructors
constructor
- new CompoundExpression(
name: string,
type: Type,
evaluate: Evaluate,
args: Expression[],
): CompoundExpressionParameters
- name: string
- type: Type
- evaluate: Evaluate
- args: Expression[]
Returns CompoundExpression
Methods
eachChild
Parameters
- fn: (_: Expression) => void
Returns void
evaluate
Parameters
- ctx: EvaluationContext
Returns Value
outputDefined
Statically analyze the expression, attempting to enumerate possible outputs. Returns false if the complete set of outputs is statically undecidable, otherwise true.
Returns boolean
Staticparse
Parameters
- args: readonly unknown[]
- context: ParsingContext
Returns Expression
Staticregister
Parameters
- registry: ExpressionRegistry
- definitions: { [_: string]: Definition }
Returns void
Was this helpful?
Expression