CodeAnalyzer constructor

CodeAnalyzer(
  1. Uri uri
)

Implementation

CodeAnalyzer(this.uri) {
  if (!uri.isAbsolute) {
    throw ArgumentError("'uri' must be absolute for CodeAnalyzer");
  }

  contexts = AnalysisContextCollection(includedPaths: [path]);

  if (contexts.contexts.isEmpty) {
    throw ArgumentError("no analysis context found for path '$path'");
  }
}