HTConstantInterpreter class
A interpreter that computes the value of a constant expression before compilation. If the AstNode provided is non-constant value, do nothing.
- Inheritance
-
- Object
- RecursiveASTVisitor<
void> - HTConstantInterpreter
Constructors
- HTConstantInterpreter({HTLexicon? lexicon})
Properties
-
errors
↔ List<
HTAnalysisError> -
Errors of a single file
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
evalAstNode(
ASTNode node) → void -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
visitAssertStmt(
AssertStmt node) → void -
override
-
visitAssignExpr(
AssignExpr node) → void -
override
-
visitBinaryExpr(
BinaryExpr node) → void -
*, /, ~/, %, +, -, <, >, <=, >=, ==, !=, &&, ||
override
-
visitBlockStmt(
BlockStmt node) → void -
override
-
visitBooleanExpr(
ASTLiteralBoolean node) → void -
inherited
-
visitBreakStmt(
BreakStmt node) → void -
override
-
visitCallExpr(
CallExpr node) → void -
override
-
visitClassDecl(
ClassDecl node) → void -
override
-
visitCommaExpr(
CommaExpr node) → void -
override
-
visitComment(
ASTComment node) → void -
inherited
-
visitCompilation(
ASTCompilation node) → void -
inherited
-
visitContinueStmt(
ContinueStmt node) → void -
override
-
visitDeleteMemberStmt(
DeleteMemberStmt node) → void -
override
-
visitDeleteStmt(
DeleteStmt node) → void -
override
-
visitDeleteSubStmt(
DeleteSubStmt node) → void -
override
-
visitDestructuringDecl(
DestructuringDecl node) → void -
override
-
visitDoStmt(
DoStmt node) → void -
override
-
visitEmptyExpr(
ASTEmpty node) → void -
inherited
-
visitEmptyLine(
ASTEmptyLine node) → void -
inherited
-
visitEnumDecl(
EnumDecl node) → void -
override
-
visitExprStmt(
ExprStmt node) → void -
override
-
visitFieldTypeExpr(
FieldTypeExpr node) → void -
override
-
visitFloatLiteralExpr(
ASTLiteralFloat node) → void -
inherited
-
visitForRangeStmt(
ForRangeStmt node) → void -
override
-
visitForStmt(
ForStmt node) → void -
override
-
visitFuncDecl(
FuncDecl node) → void -
override
-
visitFunctionTypeExpr(
FuncTypeExpr node) → void -
override
-
visitGenericTypeParamExpr(
GenericTypeParameterExpr node) → void -
override
-
visitGroupExpr(
GroupExpr node) → void -
override
-
visitIdentifierExpr(
IdentifierExpr node) → void -
override
-
visitIf(
IfStmt node) → void -
override
-
visitImportExportDecl(
ImportExportDecl node) → void -
override
-
visitInOfExpr(
InOfExpr node) → void -
override
-
visitIntLiteralExpr(
ASTLiteralInteger node) → void -
inherited
-
visitIntrinsicTypeExpr(
IntrinsicTypeExpr node) → void -
inherited
-
visitListExpr(
ListExpr node) → void -
override
-
visitMemberExpr(
MemberExpr node) → void -
override
-
visitNamespaceDecl(
NamespaceDecl node) → void -
override
-
visitNominalTypeExpr(
NominalTypeExpr node) → void -
override
-
visitNullExpr(
ASTLiteralNull node) → void -
inherited
-
visitParamDecl(
ParamDecl node) → void -
override
-
visitParamTypeExpr(
ParamTypeExpr node) → void -
override
-
visitReferConstructCallExpr(
RedirectingConstructorCallExpr node) → void -
override
-
visitReturnStmt(
ReturnStmt node) → void -
override
-
visitSource(
ASTSource node) → void -
inherited
-
visitSpreadExpr(
SpreadExpr node) → void -
override
-
visitStringInterpolationExpr(
ASTStringInterpolation node) → void -
override
-
visitStringLiteralExpr(
ASTLiteralString node) → void -
inherited
-
visitStructDecl(
StructDecl node) → void -
override
-
visitStructObjExpr(
StructObjExpr node) → void -
override
-
visitStructObjField(
StructObjField node) → void -
override
-
visitStructuralTypeExpr(
StructuralTypeExpr node) → void -
override
-
visitSubExpr(
SubExpr node) → void -
override
-
visitTernaryExpr(
TernaryExpr node) → void -
e1 ? e2 : e3
override
-
visitThrowStmt(
ThrowStmt node) → void -
override
-
visitTypeAliasDecl(
TypeAliasDecl node) → void -
override
-
visitUnaryPostfixExpr(
UnaryPostfixExpr node) → void -
override
-
visitUnaryPrefixExpr(
UnaryPrefixExpr node) → void -
-e, !e,++e, --e
override
-
visitVarDecl(
VarDecl node) → void -
override
-
visitWhen(
WhenStmt node) → void -
override
-
visitWhileStmt(
WhileStmt node) → void -
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited