ClassDecl constructor

ClassDecl(
  1. IdentifierExpr id,
  2. BlockStmt definition, {
  3. String? classId,
  4. List<GenericTypeParameterExpr> genericTypeParameters = const [],
  5. TypeExpr? superType,
  6. List<NominalTypeExpr> implementsTypes = const [],
  7. List<NominalTypeExpr> withTypes = const [],
  8. bool isExternal = false,
  9. bool isAbstract = false,
  10. bool isPrivate = false,
  11. bool isTopLevel = false,
  12. bool hasUserDefinedConstructor = false,
  13. bool lateResolve = true,
  14. HTSource? source,
  15. int line = 0,
  16. int column = 0,
  17. int offset = 0,
  18. int length = 0,
})

Implementation

ClassDecl(
  this.id,
  this.definition, {
  this.classId,
  this.genericTypeParameters = const [],
  this.superType,
  this.implementsTypes = const [],
  this.withTypes = const [],
  this.isExternal = false,
  this.isAbstract = false,
  this.isPrivate = false,
  this.isTopLevel = false,
  this.hasUserDefinedConstructor = false,
  this.lateResolve = true,
  super.source,
  super.line = 0,
  super.column = 0,
  super.offset = 0,
  super.length = 0,
}) : super(Semantic.classDeclaration);