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

Side by Side Diff: pkg/analyzer/test/generated/all_the_rest_test.dart

Issue 1985173003: Adjust do visit in ExitDetector (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 7 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 unified diff | Download patch
« no previous file with comments | « pkg/analyzer/lib/src/generated/resolver.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library analyzer.test.generated.all_the_rest_test; 5 library analyzer.test.generated.all_the_rest_test;
6 6
7 import 'package:analyzer/dart/ast/ast.dart'; 7 import 'package:analyzer/dart/ast/ast.dart';
8 import 'package:analyzer/dart/ast/token.dart'; 8 import 'package:analyzer/dart/ast/token.dart';
9 import 'package:analyzer/dart/element/element.dart'; 9 import 'package:analyzer/dart/element/element.dart';
10 import 'package:analyzer/dart/element/type.dart'; 10 import 'package:analyzer/dart/element/type.dart';
(...skipping 3465 matching lines...) Expand 10 before | Expand all | Expand 10 after
3476 } 3476 }
3477 3477
3478 void test_creation() { 3478 void test_creation() {
3479 expect(new ExitDetector(), isNotNull); 3479 expect(new ExitDetector(), isNotNull);
3480 } 3480 }
3481 3481
3482 void test_doStatement_throwCondition() { 3482 void test_doStatement_throwCondition() {
3483 _assertTrue("{ do {} while (throw ''); }"); 3483 _assertTrue("{ do {} while (throw ''); }");
3484 } 3484 }
3485 3485
3486 void test_doStatement_return() {
3487 _assertTrue("{ do { return null; } while (1 == 2); }");
3488 }
3489
3486 void test_doStatement_true_break() { 3490 void test_doStatement_true_break() {
3487 _assertFalse("{ do { break; } while (true); }"); 3491 _assertFalse("{ do { break; } while (true); }");
3488 } 3492 }
3489 3493
3490 void test_doStatement_true_continue() { 3494 void test_doStatement_true_continue() {
3491 _assertTrue("{ do { continue; } while (true); }"); 3495 _assertTrue("{ do { continue; } while (true); }");
3492 } 3496 }
3493 3497
3494 void test_doStatement_true_if_return() { 3498 void test_doStatement_true_if_return() {
3495 _assertTrue("{ do { if (true) {return null;} } while (true); }"); 3499 _assertTrue("{ do { if (true) {return null;} } while (true); }");
(...skipping 808 matching lines...) Expand 10 before | Expand all | Expand 10 after
4304 expect(UriKind.fromEncoding(0x70), same(UriKind.PACKAGE_URI)); 4308 expect(UriKind.fromEncoding(0x70), same(UriKind.PACKAGE_URI));
4305 expect(UriKind.fromEncoding(0x58), same(null)); 4309 expect(UriKind.fromEncoding(0x58), same(null));
4306 } 4310 }
4307 4311
4308 void test_getEncoding() { 4312 void test_getEncoding() {
4309 expect(UriKind.DART_URI.encoding, 0x64); 4313 expect(UriKind.DART_URI.encoding, 0x64);
4310 expect(UriKind.FILE_URI.encoding, 0x66); 4314 expect(UriKind.FILE_URI.encoding, 0x66);
4311 expect(UriKind.PACKAGE_URI.encoding, 0x70); 4315 expect(UriKind.PACKAGE_URI.encoding, 0x70);
4312 } 4316 }
4313 } 4317 }
OLDNEW
« 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