OLD | NEW |
---|---|
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 Loading... | |
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 } |
OLD | NEW |