contextForPath method

AnalysisContext? contextForPath(
  1. String path
)

Implementation

AnalysisContext? contextForPath(String path) {
  return firstWhereOrNull((context) => context.contextRoot
      .analyzedFiles()
      .any((filePath) => filePath == path));
}