Fix references in the docs to fix the windows bot
Change-Id: I5eaedbcf68898511aa1d36abc45b2c3887f17f29 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/206660 Auto-Submit: Brian Wilkerson <brianwilkerson@google.com> Commit-Queue: Brian Wilkerson <brianwilkerson@google.com> Commit-Queue: Konstantin Shcheglov <scheglov@google.com> Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
This commit is contained in:
committed by
commit-bot@chromium.org
parent
ac91bd3513
commit
ca57dfa2dc
@@ -55,7 +55,7 @@ the AST:
|
||||
|
||||
```dart
|
||||
void processFile(AnalysisSession session, String path) {
|
||||
var result = session.getParsedUnit2(path);
|
||||
var result = session.getParsedUnit(path);
|
||||
if (result is ParsedUnitResult) {
|
||||
CompilationUnit unit = result.unit;
|
||||
}
|
||||
@@ -67,7 +67,7 @@ method to access it:
|
||||
|
||||
```dart
|
||||
void processFile(AnalysisSession session, String path) async {
|
||||
var result = await session.getResolvedUnit2(path);
|
||||
var result = await session.getResolvedUnit(path);
|
||||
if (result is ResolvedUnitResult) {
|
||||
CompilationUnit unit = result.unit;
|
||||
}
|
||||
|
||||
@@ -46,7 +46,7 @@ ask the analysis session for the compilation unit representing that file.
|
||||
|
||||
```dart
|
||||
void analyzeSingleFile(AnalysisSession session, String path) async {
|
||||
var result = await session.getUnitElement2(path);
|
||||
var result = await session.getUnitElement(path);
|
||||
if (result is UnitElementResult) {
|
||||
CompilationUnitElement element = result.element;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user