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

Side by Side Diff: tests/compiler/dart2js/type_mask2_test.dart

Issue 694353007: Move dart2js from sdk/lib/_internal/compiler to pkg/compiler (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 1 month 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 | Annotate | Revision Log
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 type_mask2_test; 5 library type_mask2_test;
6 6
7 import 'package:expect/expect.dart'; 7 import 'package:expect/expect.dart';
8 import 'package:async_helper/async_helper.dart'; 8 import 'package:async_helper/async_helper.dart';
9 import 'type_test_helper.dart'; 9 import 'type_test_helper.dart';
10 import 'package:compiler/implementation/elements/elements.dart' 10 import 'package:compiler/src/elements/elements.dart'
11 show Element, ClassElement; 11 show Element, ClassElement;
12 import 'package:compiler/implementation/types/types.dart'; 12 import 'package:compiler/src/types/types.dart';
13 13
14 isCheckedMode() { 14 isCheckedMode() {
15 try { 15 try {
16 var i = 1; 16 var i = 1;
17 String s = i; 17 String s = i;
18 return false; 18 return false;
19 } catch (e) { 19 } catch (e) {
20 return true; 20 return true;
21 } 21 }
22 } 22 }
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 disjointMasks: [subtypeA, exactB], 185 disjointMasks: [subtypeA, exactB],
186 flattened: subclassObject, 186 flattened: subclassObject,
187 containedClasses: [A, B, C, D, E]); 187 containedClasses: [A, B, C, D, E]);
188 188
189 check([exactE, exactB, exactA], 189 check([exactE, exactB, exactA],
190 disjointMasks: [subclassB, exactA], 190 disjointMasks: [subclassB, exactA],
191 flattened: subclassObject, 191 flattened: subclassObject,
192 containedClasses: [A, B, E]); 192 containedClasses: [A, B, E]);
193 })); 193 }));
194 } 194 }
OLDNEW
« no previous file with comments | « tests/compiler/dart2js/type_equals_test.dart ('k') | tests/compiler/dart2js/type_mask_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698