VarDecl constructor
VarDecl(
- IdentifierExpr id, {
- String? internalName,
- String? classId,
- TypeExpr? declType,
- ASTNode? initializer,
- bool isStatement = true,
- bool hasEndOfStmtMark = false,
- bool isConst = false,
- bool isField = false,
- bool isExternal = false,
- bool isStatic = false,
- bool isMutable = false,
- bool isPrivate = false,
- bool isTopLevel = false,
- bool lateFinalize = false,
- bool lateInitialize = false,
- HTSource? source,
- int line = 0,
- int column = 0,
- int offset = 0,
- int length = 0,
Implementation
VarDecl(
this.id, {
String? internalName,
this.classId,
this.declType,
this.initializer,
super.isStatement = true,
this.hasEndOfStmtMark = false,
// this.typeInferrence = false,
this.isConst = false,
this.isField = false,
this.isExternal = false,
this.isStatic = false,
this.isMutable = false,
this.isPrivate = false,
this.isTopLevel = false,
this.lateFinalize = false,
this.lateInitialize = false,
super.source,
super.line = 0,
super.column = 0,
super.offset = 0,
super.length = 0,
}) : _internalName = internalName,
super(Semantic.variableDeclaration);