VarDecl constructor

VarDecl(
  1. IdentifierExpr id, {
  2. String? internalName,
  3. String? classId,
  4. TypeExpr? declType,
  5. ASTNode? initializer,
  6. bool isStatement = true,
  7. bool hasEndOfStmtMark = false,
  8. bool isConst = false,
  9. bool isField = false,
  10. bool isExternal = false,
  11. bool isStatic = false,
  12. bool isMutable = false,
  13. bool isPrivate = false,
  14. bool isTopLevel = false,
  15. bool lateFinalize = false,
  16. bool lateInitialize = false,
  17. HTSource? source,
  18. int line = 0,
  19. int column = 0,
  20. int offset = 0,
  21. 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);