OLD | NEW |
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 types.constants; | 5 library types.constants; |
6 | 6 |
7 import '../common.dart'; | 7 import '../common.dart'; |
8 import '../compiler.dart' show | 8 import '../compiler.dart' show |
9 Compiler; | 9 Compiler; |
10 import '../constants/values.dart'; | 10 import '../constants/values.dart'; |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 | 108 |
109 @override | 109 @override |
110 TypeMask visitString(StringConstantValue constant, Compiler compiler) { | 110 TypeMask visitString(StringConstantValue constant, Compiler compiler) { |
111 return compiler.typesTask.stringType; | 111 return compiler.typesTask.stringType; |
112 } | 112 } |
113 | 113 |
114 @override | 114 @override |
115 TypeMask visitType(TypeConstantValue constant, Compiler compiler) { | 115 TypeMask visitType(TypeConstantValue constant, Compiler compiler) { |
116 return compiler.typesTask.typeType; | 116 return compiler.typesTask.typeType; |
117 } | 117 } |
| 118 |
| 119 @override |
| 120 TypeMask visitNonConstant(NonConstantValue constant, |
| 121 Compiler compiler) { |
| 122 return compiler.typesTask.dynamicType; |
| 123 } |
118 } | 124 } |
OLD | NEW |