analyze method

HTSourceAnalysisResult analyze(
  1. String fullName
)

Implementation

HTSourceAnalysisResult analyze(String fullName) {
  // final normalized = HTResourceContext.getAbsolutePath(key: fullName);
  final analyzer = _pathsToAnalyzer[fullName]!;
  final source = sourceContextManager.getResource(fullName)!;
  final bundler = HTBundler(sourceContext: analyzer.sourceContext);
  final parser = HTDefaultParser();
  final compilation = bundler.bundle(source: source, parser: parser);
  final result = analyzer.analyzeCompilation(compilation);
  _cachedSourceAnalysisResults.addAll(result.sourceAnalysisResults);
  return result.sourceAnalysisResults.values.last;
}