AstContext class

Constructors

AstContext({AstContext? parent})

Properties

hashCode int
The hash code for this object.
no setterinherited
parent AstContext?
getter/setter pair
parserList List<AstResolver?>
no setter
referenceAst Map<String, Map?>
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addParser(AstResolver? parser) → void
添加自定义parser,后添加的parser将优先处理,对于相同事件/属性的情况,后添加的parser将覆盖前面的parser
addVariable(String? variableName, dynamic variableValue) AstReferenceVariable
添加变量
dispose() → void
findVariable(String? variableName) AstReferenceVariable?
查找变量
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resolve(AstRuntimeExecutor executor, dynamic target, {String? property, List<AstRuntimeNode>? arguments}) → dynamic
解析表达式
setVariableValue(String? variableName, dynamic variableValue) → void
设置变量值
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited