HTClassDeclaration constructor

HTClassDeclaration({
  1. String? id,
  2. String? classId,
  3. HTDeclarationNamespace? closure,
  4. HTSource? source,
  5. List<HTGenericTypeParameter> genericTypeParameters = const [],
  6. HTType? superType,
  7. Iterable<HTType> implementsTypes = const [],
  8. Iterable<HTType> withTypes = const [],
  9. bool isExternal = false,
  10. bool isTopLevel = false,
  11. bool isAbstract = false,
  12. bool isEnum = false,
})

Implementation

HTClassDeclaration({
  super.id,
  super.classId,
  super.closure,
  super.source,
  this.genericTypeParameters = const [],
  HTType? superType,
  this.implementsTypes = const [],
  this.withTypes = const [],
  super.isExternal = false,
  super.isTopLevel = false,
  this.isAbstract = false,
  this.isEnum = false,
}) : _unresolvedSuperType = superType {
  if (_unresolvedSuperType != null && _unresolvedSuperType!.isResolved) {
    _resolvedSuperType = _unresolvedSuperType;
  }
}