Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(800)

Unified Diff: pkg/analyzer/test/generated/simple_resolver_test.dart

Issue 2625203002: Run the rest of the analysis tests with the new analysis driver. (Closed)
Patch Set: Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: pkg/analyzer/test/generated/simple_resolver_test.dart
diff --git a/pkg/analyzer/test/generated/simple_resolver_test.dart b/pkg/analyzer/test/generated/simple_resolver_test.dart
index e515af35670ff08dcead0413bcee481881a32878..f8ce31e0cfc2f270a803976a563368f1f1d4fb13 100644
--- a/pkg/analyzer/test/generated/simple_resolver_test.dart
+++ b/pkg/analyzer/test/generated/simple_resolver_test.dart
@@ -275,7 +275,7 @@ void f() {
}
}
''';
- CompilationUnit unit = resolveSource(text);
+ CompilationUnit unit = await resolveSource(text);
WhileStatement whileStatement = EngineTestCase.findNode(
unit, text, 'while (true)', (n) => n is WhileStatement);
ForStatement forStatement =
@@ -296,7 +296,7 @@ void f() {
} while (true);
}
''';
- CompilationUnit unit = resolveSource(text);
+ CompilationUnit unit = await resolveSource(text);
DoStatement doStatement =
EngineTestCase.findNode(unit, text, 'do', (n) => n is DoStatement);
BreakStatement breakStatement = EngineTestCase.findNode(
@@ -312,7 +312,7 @@ void f() {
}
}
''';
- CompilationUnit unit = resolveSource(text);
+ CompilationUnit unit = await resolveSource(text);
ForStatement forStatement =
EngineTestCase.findNode(unit, text, 'for', (n) => n is ForStatement);
BreakStatement breakStatement = EngineTestCase.findNode(
@@ -328,7 +328,7 @@ void f() {
}
}
''';
- CompilationUnit unit = resolveSource(text);
+ CompilationUnit unit = await resolveSource(text);
ForEachStatement forStatement = EngineTestCase.findNode(
unit, text, 'for', (n) => n is ForEachStatement);
BreakStatement breakStatement = EngineTestCase.findNode(
@@ -347,7 +347,7 @@ void f() {
}
}
''';
- CompilationUnit unit = resolveSource(text);
+ CompilationUnit unit = await resolveSource(text);
SwitchStatement switchStatement = EngineTestCase.findNode(
unit, text, 'switch', (n) => n is SwitchStatement);
BreakStatement breakStatement = EngineTestCase.findNode(
@@ -363,7 +363,7 @@ void f() {
}
}
''';
- CompilationUnit unit = resolveSource(text);
+ CompilationUnit unit = await resolveSource(text);
WhileStatement whileStatement = EngineTestCase.findNode(
unit, text, 'while', (n) => n is WhileStatement);
BreakStatement breakStatement = EngineTestCase.findNode(
@@ -383,7 +383,7 @@ void f() {
}
}
''';
- CompilationUnit unit = resolveSource(text);
+ CompilationUnit unit = await resolveSource(text);
BreakStatement breakStatement = EngineTestCase.findNode(
unit, text, 'break', (n) => n is BreakStatement);
expect(breakStatement.target, isNull);
@@ -461,7 +461,7 @@ void f() {
}
}
''';
- CompilationUnit unit = resolveSource(text);
+ CompilationUnit unit = await resolveSource(text);
WhileStatement whileStatement = EngineTestCase.findNode(
unit, text, 'while (true)', (n) => n is WhileStatement);
ForStatement forStatement =
@@ -482,7 +482,7 @@ void f() {
} while (true);
}
''';
- CompilationUnit unit = resolveSource(text);
+ CompilationUnit unit = await resolveSource(text);
DoStatement doStatement =
EngineTestCase.findNode(unit, text, 'do', (n) => n is DoStatement);
ContinueStatement continueStatement = EngineTestCase.findNode(
@@ -498,7 +498,7 @@ void f() {
}
}
''';
- CompilationUnit unit = resolveSource(text);
+ CompilationUnit unit = await resolveSource(text);
ForStatement forStatement =
EngineTestCase.findNode(unit, text, 'for', (n) => n is ForStatement);
ContinueStatement continueStatement = EngineTestCase.findNode(
@@ -514,7 +514,7 @@ void f() {
}
}
''';
- CompilationUnit unit = resolveSource(text);
+ CompilationUnit unit = await resolveSource(text);
ForEachStatement forStatement = EngineTestCase.findNode(
unit, text, 'for', (n) => n is ForEachStatement);
ContinueStatement continueStatement = EngineTestCase.findNode(
@@ -530,7 +530,7 @@ void f() {
}
}
''';
- CompilationUnit unit = resolveSource(text);
+ CompilationUnit unit = await resolveSource(text);
WhileStatement whileStatement = EngineTestCase.findNode(
unit, text, 'while', (n) => n is WhileStatement);
ContinueStatement continueStatement = EngineTestCase.findNode(
@@ -549,7 +549,7 @@ void f() {
}
}
''';
- CompilationUnit unit = resolveSource(text);
+ CompilationUnit unit = await resolveSource(text);
WhileStatement whileStatement = EngineTestCase.findNode(
unit, text, 'while', (n) => n is WhileStatement);
ContinueStatement continueStatement = EngineTestCase.findNode(
@@ -569,7 +569,7 @@ void f() {
}
}
''';
- CompilationUnit unit = resolveSource(text);
+ CompilationUnit unit = await resolveSource(text);
ContinueStatement continueStatement = EngineTestCase.findNode(
unit, text, 'continue', (n) => n is ContinueStatement);
expect(continueStatement.target, isNull);
« no previous file with comments | « pkg/analyzer/test/generated/resolver_test_case.dart ('k') | pkg/analyzer/test/generated/strong_mode_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698