HTAnalyzer constructor

HTAnalyzer({
  1. AnalyzerConfig? config,
  2. HTResourceContext<HTSource>? sourceContext,
  3. HTLexicon? lexicon,
})

Implementation

HTAnalyzer(
    {AnalyzerConfig? config,
    HTResourceContext<HTSource>? sourceContext,
    HTLexicon? lexicon})
    : config = config ?? AnalyzerConfig(),
      sourceContext = sourceContext ?? HTOverlayContext(),
      _lexicon = lexicon ?? HTDefaultLexicon() {
  globalNamespace =
      HTDeclarationNamespace(lexicon: _lexicon, id: Semantic.global);
  _currentNamespace = globalNamespace;
}