HTCompiler class
Compiles source code into bytecode.
DON'T USE THIS CLASS DIRECTLY!
Rather, use interpreter or command line tools to compile, they would use analyzer to try to find errors, and compute constant values, before actual compilation.
- Implemented types
Constructors
- HTCompiler({CompilerConfig? config, HTLexicon? lexicon})
Properties
- config ↔ CompilerConfig
-
getter/setter pair
- curColumn → int
-
no setter
- curLine → int
-
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
compile(
ASTCompilation compilation, {bool debugPerformance = false}) → Uint8List -
compileAST(
ASTNode node, {bool endOfExec = false}) → Uint8List -
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 stmt) → Uint8List -
override
-
visitAssignExpr(
AssignExpr expr) → Uint8List -
override
-
visitBinaryExpr(
BinaryExpr expr) → Uint8List -
override
-
visitBlockStmt(
BlockStmt block) → Uint8List -
override
-
visitBooleanExpr(
ASTLiteralBoolean expr) → Uint8List -
override
-
visitBreakStmt(
BreakStmt stmt) → Uint8List -
override
-
visitCallExpr(
CallExpr expr) → Uint8List -
override
-
visitClassDecl(
ClassDecl stmt) → Uint8List -
override
-
visitCommaExpr(
CommaExpr expr) → Uint8List -
override
-
visitComment(
ASTComment expr) → Uint8List -
override
-
visitCompilation(
ASTCompilation compilation) → Uint8List -
override
-
visitContinueStmt(
ContinueStmt stmt) → Uint8List -
override
-
visitDeleteMemberStmt(
DeleteMemberStmt stmt) → Uint8List -
override
-
visitDeleteStmt(
DeleteStmt stmt) → Uint8List -
override
-
visitDeleteSubStmt(
DeleteSubStmt stmt) → Uint8List -
override
-
visitDestructuringDecl(
DestructuringDecl stmt) → Uint8List -
override
-
visitDoStmt(
DoStmt stmt) → Uint8List -
override
-
visitEmptyExpr(
ASTEmpty expr) → Uint8List -
override
-
visitEmptyLine(
ASTEmptyLine expr) → Uint8List -
override
-
visitEnumDecl(
EnumDecl stmt) → Uint8List -
override
-
visitExprStmt(
ExprStmt stmt) → Uint8List -
override
-
visitFieldTypeExpr(
FieldTypeExpr expr) → Uint8List -
override
-
visitFloatLiteralExpr(
ASTLiteralFloat expr) → Uint8List -
override
-
visitForRangeStmt(
ForRangeStmt stmt) → Uint8List -
override
-
visitForStmt(
ForStmt stmt) → Uint8List -
override
-
visitFuncDecl(
FuncDecl stmt) → Uint8List -
override
-
visitFunctionTypeExpr(
FuncTypeExpr expr) → Uint8List -
override
-
visitGenericTypeParamExpr(
GenericTypeParameterExpr expr) → Uint8List -
override
-
visitGroupExpr(
GroupExpr expr) → Uint8List -
override
-
visitIdentifierExpr(
IdentifierExpr expr) → Uint8List -
override
-
visitIf(
IfStmt stmt) → Uint8List -
override
-
visitImportExportDecl(
ImportExportDecl stmt) → Uint8List -
override
-
visitInOfExpr(
InOfExpr expr) → Uint8List -
override
-
visitIntLiteralExpr(
ASTLiteralInteger expr) → Uint8List -
override
-
visitIntrinsicTypeExpr(
IntrinsicTypeExpr expr) → Uint8List -
override
-
visitListExpr(
ListExpr expr) → Uint8List -
override
-
visitMemberExpr(
MemberExpr expr) → Uint8List -
override
-
visitNamespaceDecl(
NamespaceDecl stmt) → Uint8List -
override
-
visitNominalTypeExpr(
NominalTypeExpr expr) → Uint8List -
override
-
visitNullExpr(
ASTLiteralNull expr) → Uint8List -
override
-
visitParamDecl(
ParamDecl stmt) → Uint8List -
override
-
visitParamTypeExpr(
ParamTypeExpr expr) → Uint8List -
override
-
visitReferConstructCallExpr(
RedirectingConstructorCallExpr stmt) → Uint8List -
override
-
visitReturnStmt(
ReturnStmt stmt) → Uint8List -
override
-
visitSource(
ASTSource unit) → Uint8List -
override
-
visitSpreadExpr(
SpreadExpr expr) → Uint8List -
override
-
visitStringInterpolationExpr(
ASTStringInterpolation expr) → Uint8List -
override
-
visitStringLiteralExpr(
ASTLiteralString expr) → Uint8List -
override
-
visitStructDecl(
StructDecl stmt) → Uint8List -
override
-
visitStructObjExpr(
StructObjExpr obj) → Uint8List -
override
-
visitStructObjField(
StructObjField field) → Uint8List -
override
-
visitStructuralTypeExpr(
StructuralTypeExpr expr) → Uint8List -
override
-
visitSubExpr(
SubExpr expr) → Uint8List -
override
-
visitTernaryExpr(
TernaryExpr expr) → Uint8List -
override
-
visitThrowStmt(
ThrowStmt stmt) → Uint8List -
override
-
visitTypeAliasDecl(
TypeAliasDecl stmt) → Uint8List -
override
-
visitUnaryPostfixExpr(
UnaryPostfixExpr expr) → Uint8List -
override
-
visitUnaryPrefixExpr(
UnaryPrefixExpr expr) → Uint8List -
-e, !e,++e, --e
override
-
visitVarDecl(
VarDecl stmt) → Uint8List -
override
-
visitWhen(
WhenStmt stmt) → Uint8List -
override
-
visitWhileStmt(
WhileStmt stmt) → Uint8List -
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- awaitedValueIndex ↔ int
-
getter/setter pair
- iterIndex ↔ int
-
getter/setter pair
Constants
- constStringLengthLimit → const int
- hetuSignature → const int
-
hetuSignatureData
→ const List<
int> - Hetu script bytecode's bytecode signature