HTDeclarationNamespace<T> constructor

HTDeclarationNamespace<T>({
  1. String? id,
  2. String? classId,
  3. HTDeclarationNamespace? closure,
  4. HTSource? source,
  5. String? documentation,
  6. required HTLexicon lexicon,
})

Implementation

HTDeclarationNamespace({
  super.id,
  super.classId,
  super.closure,
  super.source,
  super.documentation,
  required this.lexicon,
}) {
  // calculate the full name of this namespace
  _fullName = displayName;
  var curSpace = closure;
  while (curSpace != null) {
    _fullName = '${curSpace.displayName}.$fullName';
    curSpace = curSpace.closure;
  }
}