@@ -6,9 +6,9 @@ This document explains how to use the analyzer package to analyze Dart code.
66
77The analysis of Dart code depends on a set of metadata (data outside the code
88being analyzed). An _ analysis context_ is a representation of a set of code that
9- should be analyzed using the same sources of metadata (same package_spec.json
10- file, same analysis options file, etc. ). That set of code typically corresponds
11- to a package.
9+ should be analyzed using the same sources of metadata (same
10+ ` package_config.json ` file). That set of code typically corresponds to a
11+ package.
1212
1313Despite the fact that the analyzer APIs do not support its use in an incremental
1414system, it is used that way by the analysis server, and that fact has influenced
@@ -36,11 +36,9 @@ need to start by configuring the analysis context(s) in which analysis is to be
3636performed. An analysis context tells the analyzer how to perform analysis, and
3737includes such information as
3838
39- - how to resolve ` package: ` URIs,
39+ - how to resolve ` package: ` URIs, and
4040
41- - which defined variables are defined, if any, and what their value is, and
42-
43- - any configuration information included in an analysis options file.
41+ - which defined variables are defined, if any, and what their value is.
4442
4543Fortunately, the analyzer package can do most of the work for you. All you need
4644to do is create an instance of ` AnalysisContextCollection ` , giving it the paths
0 commit comments