HTAnalyzer constructor
HTAnalyzer({
- AnalyzerConfig? config,
- HTResourceContext<
HTSource> ? sourceContext, - 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;
}