HTAnalyzer class

A ast visitor that create declarative-only namespaces on all astnode, for analysis purpose, the true analyzer is another class, albeit its name, this is basically a resolver.

Inheritance

Constructors

HTAnalyzer({AnalyzerConfig? config, HTResourceContext<HTSource>? sourceContext, HTLexicon? lexicon})

Properties

config AnalyzerConfig
getter/setter pair
errorConfig ErrorHandlerConfig?
no setter
errorProcessors List<ErrorProcessor>
final
globalNamespace AnalysisNamespace
latefinal
hashCode int
The hash code for this object.
no setterinherited
namespaces Map<String, AnalysisNamespace>
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sourceContext HTResourceContext<HTSource>
getter/setter pair

Methods

analyzeCompilation(ASTCompilation compilation, {String? moduleName, bool globallyImport = false, bool debugPerformance = false}) HTModuleAnalysisResult
handleImport(ASTSource source) → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resolve(ASTSource source) → void
resolveAST(ASTNode node) → void
toString() String
A string representation of this object.
inherited
visitAssertStmt(AssertStmt node) → void
inherited
visitAssignExpr(AssignExpr node) → void
inherited
visitBinaryExpr(BinaryExpr node) → void
inherited
visitBlockStmt(BlockStmt node) → void
inherited
visitBooleanExpr(ASTLiteralBoolean node) → void
inherited
visitBreakStmt(BreakStmt node) → void
inherited
visitCallExpr(CallExpr node) → void
inherited
visitClassDecl(ClassDecl node) → void
override
visitCommaExpr(CommaExpr node) → void
inherited
visitComment(ASTComment node) → void
inherited
visitCompilation(ASTCompilation node) → void
override
visitContinueStmt(ContinueStmt node) → void
inherited
visitDeleteMemberStmt(DeleteMemberStmt node) → void
override
visitDeleteStmt(DeleteStmt node) → void
override
visitDeleteSubStmt(DeleteSubStmt node) → void
override
visitDestructuringDecl(DestructuringDecl node) → void
override
visitDoStmt(DoStmt node) → void
inherited
visitEmptyExpr(ASTEmpty node) → void
inherited
visitEmptyLine(ASTEmptyLine node) → void
inherited
visitEnumDecl(EnumDecl node) → void
override
visitExprStmt(ExprStmt node) → void
inherited
visitFieldTypeExpr(FieldTypeExpr node) → void
inherited
visitFloatLiteralExpr(ASTLiteralFloat node) → void
inherited
visitForRangeStmt(ForRangeStmt node) → void
inherited
visitForStmt(ForStmt node) → void
inherited
visitFuncDecl(FuncDecl node) → void
override
visitFunctionTypeExpr(FuncTypeExpr node) → void
inherited
visitGenericTypeParamExpr(GenericTypeParameterExpr node) → void
inherited
visitGroupExpr(GroupExpr node) → void
inherited
visitIdentifierExpr(IdentifierExpr node) → void
override
visitIf(IfStmt node) → void
inherited
visitImportExportDecl(ImportExportDecl node) → void
override
visitInOfExpr(InOfExpr node) → void
inherited
visitIntLiteralExpr(ASTLiteralInteger node) → void
inherited
visitIntrinsicTypeExpr(IntrinsicTypeExpr node) → void
inherited
visitListExpr(ListExpr node) → void
inherited
visitMemberExpr(MemberExpr node) → void
inherited
visitNamespaceDecl(NamespaceDecl node) → void
override
visitNominalTypeExpr(NominalTypeExpr node) → void
inherited
visitNullExpr(ASTLiteralNull node) → void
inherited
visitParamDecl(ParamDecl node) → void
override
visitParamTypeExpr(ParamTypeExpr node) → void
inherited
visitReferConstructCallExpr(RedirectingConstructorCallExpr node) → void
override
visitReturnStmt(ReturnStmt node) → void
inherited
visitSource(ASTSource node) → void
override
visitSpreadExpr(SpreadExpr node) → void
inherited
visitStringInterpolationExpr(ASTStringInterpolation node) → void
inherited
visitStringLiteralExpr(ASTLiteralString node) → void
inherited
visitStructDecl(StructDecl node) → void
override
visitStructObjExpr(StructObjExpr node) → void
override
visitStructObjField(StructObjField node) → void
override
visitStructuralTypeExpr(StructuralTypeExpr node) → void
inherited
visitSubExpr(SubExpr node) → void
inherited
visitTernaryExpr(TernaryExpr node) → void
inherited
visitThrowStmt(ThrowStmt node) → void
inherited
visitTypeAliasDecl(TypeAliasDecl node) → void
override
visitUnaryPostfixExpr(UnaryPostfixExpr node) → void
inherited
visitUnaryPrefixExpr(UnaryPrefixExpr node) → void
inherited
visitVarDecl(VarDecl node) → void
override
visitWhen(WhenStmt node) → void
inherited
visitWhileStmt(WhileStmt node) → void
inherited

Operators

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