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

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

Issue 912023002: Use ExitDetector.exists(node). (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 10 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
« no previous file with comments | « pkg/analyzer/lib/src/generated/resolver.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/test/generated/all_the_rest_test.dart
diff --git a/pkg/analyzer/test/generated/all_the_rest_test.dart b/pkg/analyzer/test/generated/all_the_rest_test.dart
index e4e8404c110e3896d1e5874ef2e5bf2c4b4a5753..18af984db65827052934ebfc7d05d9806e1d8ce0 100644
--- a/pkg/analyzer/test/generated/all_the_rest_test.dart
+++ b/pkg/analyzer/test/generated/all_the_rest_test.dart
@@ -7342,9 +7342,8 @@ class ExitDetectorTest extends ParserTestCase {
}
void _assertHasReturn(bool expectedResult, String source) {
- ExitDetector detector = new ExitDetector();
Statement statement = ParserTestCase.parseStatement(source);
- expect(statement.accept(detector), same(expectedResult));
+ expect(ExitDetector.exits(statement), expectedResult);
}
void _assertTrue(String source) {
@@ -7378,7 +7377,7 @@ String f(E e) {
FunctionDeclaration function = unit.declarations.last;
BlockFunctionBody body = function.functionExpression.body;
Statement statement = body.block.statements[1];
- expect(statement.accept(new ExitDetector()), false);
+ expect(ExitDetector.exits(statement), false);
}
void test_switch_withEnum_false_withDefault() {
@@ -7400,7 +7399,7 @@ String f(E e) {
FunctionDeclaration function = unit.declarations.last;
BlockFunctionBody body = function.functionExpression.body;
Statement statement = body.block.statements[1];
- expect(statement.accept(new ExitDetector()), false);
+ expect(ExitDetector.exits(statement), false);
}
void test_switch_withEnum_true_noDefault() {
@@ -7420,7 +7419,7 @@ String f(E e) {
FunctionDeclaration function = unit.declarations.last;
BlockFunctionBody body = function.functionExpression.body;
Statement statement = body.block.statements[0];
- expect(statement.accept(new ExitDetector()), true);
+ expect(ExitDetector.exits(statement), true);
}
void test_switch_withEnum_true_withDefault() {
@@ -7440,7 +7439,7 @@ String f(E e) {
FunctionDeclaration function = unit.declarations.last;
BlockFunctionBody body = function.functionExpression.body;
Statement statement = body.block.statements[0];
- expect(statement.accept(new ExitDetector()), true);
+ expect(ExitDetector.exits(statement), true);
}
}
« no previous file with comments | « pkg/analyzer/lib/src/generated/resolver.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698