HTAnalysisManager constructor

HTAnalysisManager(
  1. HTSourceManager<HTSource, HTResourceContext<HTSource>> sourceContextManager, {
  2. HTErrorHandlerCallback? errorHandler,
})

Implementation

HTAnalysisManager(this.sourceContextManager, {this.errorHandler}) {
  sourceContextManager.onRootsUpdated = () {
    for (final context in sourceContextManager.contexts) {
      final analyzer = HTAnalyzer(sourceContext: context);
      for (final path in context.included) {
        _pathsToAnalyzer[path] = analyzer;
      }
    }
  };
}