Skip to content

Commit 132ad35

Browse files
srawlinsCommit Queue
authored andcommitted
analyzer docs: Remove mention of options when discussing contexts
Change-Id: If667c3a0122ab97b96a9d2e50eb39c848e45528d Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/396570 Reviewed-by: Keerti Parthasarathy <[email protected]> Commit-Queue: Samuel Rawlins <[email protected]>
1 parent f24e6f7 commit 132ad35

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

pkg/analyzer/doc/tutorial/analysis.md

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ This document explains how to use the analyzer package to analyze Dart code.
66

77
The analysis of Dart code depends on a set of metadata (data outside the code
88
being 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

1313
Despite the fact that the analyzer APIs do not support its use in an incremental
1414
system, 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
3636
performed. An analysis context tells the analyzer how to perform analysis, and
3737
includes 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

4543
Fortunately, the analyzer package can do most of the work for you. All you need
4644
to do is create an instance of `AnalysisContextCollection`, giving it the paths

0 commit comments

Comments
 (0)