Skip to main content

ExpressionContext

@lowcode/expression-parser


Interface: ExpressionContext

Defined in: analyzer/types.ts:24

Context used for static analysis and type inference.

It is provided by the caller (e.g. DSL compiler or builder-web) and describes which variables are available in a given scope.

Properties

variables

variables: Record<string, ExpressionContextVariable>

Defined in: analyzer/types.ts:33

Map of variable names to their type.

Keys are arbitrary strings, but typical patterns might be:

  • "state" / "state.count"
  • "props" / "props.title"
  • "data.users"