HTClass constructor

HTClass(
  1. HTInterpreter interpreter, {
  2. String? id,
  3. String? classId,
  4. HTNamespace? closure,
  5. HTSource? source,
  6. String? documentation,
  7. List<HTGenericTypeParameter> genericTypeParameters = const [],
  8. HTType? superType,
  9. Iterable<HTType> withTypes = const [],
  10. Iterable<HTType> implementsTypes = const [],
  11. bool isExternal = false,
  12. bool isAbstract = false,
  13. bool isEnum = false,
  14. HTClass? superClass,
  15. bool hasUserDefinedConstructor = false,
})

Create a default HTClass instance.

Implementation

HTClass(
  HTInterpreter interpreter, {
  super.id,
  super.classId,
  HTNamespace? closure,
  super.source,
  super.documentation,
  super.genericTypeParameters = const [],
  super.superType,
  super.withTypes = const [],
  super.implementsTypes = const [],
  super.isExternal = false,
  super.isAbstract = false,
  super.isEnum = false,
  this.superClass,
  this.hasUserDefinedConstructor = false,
}) : super(closure: closure) {
  namespace = HTClassNamespace(
    klass: this,
    lexicon: interpreter.lexicon,
    id: id,
    classId: classId,
    closure: closure,
    source: source,
  );
  this.interpreter = interpreter;
}