Skip to content

Commit

Permalink
analyzer docs: Remove mention of options when discussing contexts
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
srawlins authored and Commit Queue committed Nov 22, 2024
1 parent f24e6f7 commit 132ad35
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions pkg/analyzer/doc/tutorial/analysis.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ This document explains how to use the analyzer package to analyze Dart code.

The analysis of Dart code depends on a set of metadata (data outside the code
being analyzed). An _analysis context_ is a representation of a set of code that
should be analyzed using the same sources of metadata (same package_spec.json
file, same analysis options file, etc.). That set of code typically corresponds
to a package.
should be analyzed using the same sources of metadata (same
`package_config.json` file). That set of code typically corresponds to a
package.

Despite the fact that the analyzer APIs do not support its use in an incremental
system, it is used that way by the analysis server, and that fact has influenced
Expand Down Expand Up @@ -36,11 +36,9 @@ need to start by configuring the analysis context(s) in which analysis is to be
performed. An analysis context tells the analyzer how to perform analysis, and
includes such information as

- how to resolve `package:` URIs,
- how to resolve `package:` URIs, and

- which defined variables are defined, if any, and what their value is, and

- any configuration information included in an analysis options file.
- which defined variables are defined, if any, and what their value is.

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

0 comments on commit 132ad35

Please sign in to comment.