| 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 // This code was auto-generated, is not intended to be edited, and is subject to | 5 // This code was auto-generated, is not intended to be edited, and is subject to |
| 6 // significant change. Please see the README file for more information. | 6 // significant change. Please see the README file for more information. |
| 7 | 7 |
| 8 library engine.constant; | 8 library engine.constant; |
| 9 | 9 |
| 10 import 'dart:collection'; | 10 import 'dart:collection'; |
| (...skipping 1177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1188 return null; | 1188 return null; |
| 1189 } | 1189 } |
| 1190 DartType elementType = _typeProvider.dynamicType; | 1190 DartType elementType = _typeProvider.dynamicType; |
| 1191 if (node.typeArguments != null && node.typeArguments.arguments.length == 1)
{ | 1191 if (node.typeArguments != null && node.typeArguments.arguments.length == 1)
{ |
| 1192 DartType type = node.typeArguments.arguments[0].type; | 1192 DartType type = node.typeArguments.arguments[0].type; |
| 1193 if (type != null) { | 1193 if (type != null) { |
| 1194 elementType = type; | 1194 elementType = type; |
| 1195 } | 1195 } |
| 1196 } | 1196 } |
| 1197 InterfaceType listType = _typeProvider.listType.substitute4([elementType]); | 1197 InterfaceType listType = _typeProvider.listType.substitute4([elementType]); |
| 1198 return new DartObjectImpl(listType, new ListState(new List.from(elements))); | 1198 return new DartObjectImpl(listType, new ListState(elements)); |
| 1199 } | 1199 } |
| 1200 | 1200 |
| 1201 @override | 1201 @override |
| 1202 DartObjectImpl visitMapLiteral(MapLiteral node) { | 1202 DartObjectImpl visitMapLiteral(MapLiteral node) { |
| 1203 if (node.constKeyword == null) { | 1203 if (node.constKeyword == null) { |
| 1204 _errorReporter.reportErrorForNode(CompileTimeErrorCode.MISSING_CONST_IN_MA
P_LITERAL, node, []); | 1204 _errorReporter.reportErrorForNode(CompileTimeErrorCode.MISSING_CONST_IN_MA
P_LITERAL, node, []); |
| 1205 return null; | 1205 return null; |
| 1206 } | 1206 } |
| 1207 bool errorOccurred = false; | 1207 bool errorOccurred = false; |
| 1208 HashMap<DartObjectImpl, DartObjectImpl> map = new HashMap<DartObjectImpl, Da
rtObjectImpl>(); | 1208 HashMap<DartObjectImpl, DartObjectImpl> map = new HashMap<DartObjectImpl, Da
rtObjectImpl>(); |
| (...skipping 3479 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4688 | 4688 |
| 4689 @override | 4689 @override |
| 4690 String get typeName => "Type"; | 4690 String get typeName => "Type"; |
| 4691 | 4691 |
| 4692 @override | 4692 @override |
| 4693 int get hashCode => _element == null ? 0 : _element.hashCode; | 4693 int get hashCode => _element == null ? 0 : _element.hashCode; |
| 4694 | 4694 |
| 4695 @override | 4695 @override |
| 4696 String toString() => _element == null ? "-unknown-" : _element.name; | 4696 String toString() => _element == null ? "-unknown-" : _element.name; |
| 4697 } | 4697 } |
| OLD | NEW |