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

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

Issue 10911007: Rename Type to DartType to avoid conflicts with the class Type in the core library. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 3 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 #source("../../../lib/compiler/implementation/ssa/types.dart"); 5 #source("../../../lib/compiler/implementation/ssa/types.dart");
6 6
7 class Type { 7 class DartType {
8 const Type(this.str); 8 const Type(this.str);
kasperl 2012/08/30 14:11:27 You need to update the constructor name too. Is th
9 final String str; 9 final String str;
10 } 10 }
11 11
12 const CONFLICTING = HType.CONFLICTING; 12 const CONFLICTING = HType.CONFLICTING;
13 const UNKNOWN = HType.UNKNOWN; 13 const UNKNOWN = HType.UNKNOWN;
14 const BOOLEAN = HType.BOOLEAN; 14 const BOOLEAN = HType.BOOLEAN;
15 const NUMBER = HType.NUMBER; 15 const NUMBER = HType.NUMBER;
16 const INTEGER = HType.INTEGER; 16 const INTEGER = HType.INTEGER;
17 const DOUBLE = HType.DOUBLE; 17 const DOUBLE = HType.DOUBLE;
18 const INDEXABLE_PRIMITIVE = HType.INDEXABLE_PRIMITIVE; 18 const INDEXABLE_PRIMITIVE = HType.INDEXABLE_PRIMITIVE;
(...skipping 951 matching lines...) Expand 10 before | Expand all | Expand 10 after
970 Expect.equals(NULL, NULL.intersection(INTEGER_OR_NULL)); 970 Expect.equals(NULL, NULL.intersection(INTEGER_OR_NULL));
971 Expect.equals(NULL, NULL.intersection(DOUBLE_OR_NULL)); 971 Expect.equals(NULL, NULL.intersection(DOUBLE_OR_NULL));
972 Expect.equals(NULL, NULL.intersection(STRING_OR_NULL)); 972 Expect.equals(NULL, NULL.intersection(STRING_OR_NULL));
973 Expect.equals(NULL, NULL.intersection(NULL)); 973 Expect.equals(NULL, NULL.intersection(NULL));
974 } 974 }
975 975
976 void main() { 976 void main() {
977 testUnion(); 977 testUnion();
978 testIntersection(); 978 testIntersection();
979 } 979 }
OLDNEW
« lib/compiler/implementation/ssa/nodes.dart ('K') | « tests/compiler/dart2js/type_checker_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698