Skip to content

SemanticAdorner

Mirrors cel-go’s SemanticAdorner / cel-es’s SemanticAdorner.

Annotates every node with ~<type> (from the checkedExpr typeMap) and, for idents and calls, ^<name-or-overloadId> (from the referenceMap).

Type names use CEL-standard short forms: int, uint, bool, double, string, bytes, null, timestamp, duration, dyn, !error!.

  • Adorner

new SemanticAdorner(checked): SemanticAdorner

CheckedExpr

SemanticAdorner

getMetadata(expr): string

Expr

string

Adorner.getMetadata