resolve method

void resolve(
  1. ASTSource source
)

Implementation

void resolve(ASTSource source) {
  source.isResolved = true;
  if (source.resourceType == HTResourceType.hetuLiteralCode) {
    _currentNamespace = globalNamespace;
  } else {
    if (namespaces[source.fullName] != null) {
      _currentNamespace = namespaces[source.fullName]!;
    } else {
      namespaces[source.fullName] = _currentNamespace =
          HTDeclarationNamespace(
              lexicon: _lexicon,
              id: source.fullName,
              closure: globalNamespace);
    }
  }
  for (final node in source.nodes) {
    resolveAST(node);
  }
}