| 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 import '../common.dart'; | 5 import '../common.dart'; |
| 6 import '../common/backend_api.dart' show ForeignResolver; | 6 import '../common/backend_api.dart' show ForeignResolver; |
| 7 import '../common/resolution.dart' show ParsingContext, Resolution; | 7 import '../common/resolution.dart' show ParsingContext, Resolution; |
| 8 import '../compiler.dart' show Compiler; | 8 import '../compiler.dart' show Compiler; |
| 9 import '../constants/expressions.dart'; | 9 import '../constants/expressions.dart'; |
| 10 import '../constants/values.dart'; | 10 import '../constants/values.dart'; |
| 11 import '../core_types.dart' show CommonElements; | 11 import '../core_types.dart' show CommonElements; |
| 12 import '../dart_types.dart'; | 12 import '../elements/resolution_types.dart'; |
| 13 import '../elements/elements.dart'; | 13 import '../elements/elements.dart'; |
| 14 import '../js/js.dart' as js; | 14 import '../js/js.dart' as js; |
| 15 import '../js_backend/js_backend.dart'; | 15 import '../js_backend/js_backend.dart'; |
| 16 import '../tree/tree.dart'; | 16 import '../tree/tree.dart'; |
| 17 import '../universe/side_effects.dart' show SideEffects; | 17 import '../universe/side_effects.dart' show SideEffects; |
| 18 import '../util/util.dart'; | 18 import '../util/util.dart'; |
| 19 import 'enqueue.dart'; | 19 import 'enqueue.dart'; |
| 20 import 'js.dart'; | 20 import 'js.dart'; |
| 21 | 21 |
| 22 typedef dynamic /*DartType|SpecialType*/ TypeLookup(String typeString); | 22 typedef dynamic /*DartType|SpecialType*/ TypeLookup(String typeString); |
| (...skipping 983 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1006 type = lookupType(typeString.substring(0, index)); | 1006 type = lookupType(typeString.substring(0, index)); |
| 1007 if (type != null) { | 1007 if (type != null) { |
| 1008 // TODO(sra): Parse type parameters. | 1008 // TODO(sra): Parse type parameters. |
| 1009 return type; | 1009 return type; |
| 1010 } | 1010 } |
| 1011 reporter.reportErrorMessage(spannable, MessageKind.GENERIC, | 1011 reporter.reportErrorMessage(spannable, MessageKind.GENERIC, |
| 1012 {'text': "Type '$typeString' not found."}); | 1012 {'text': "Type '$typeString' not found."}); |
| 1013 return const DynamicType(); | 1013 return const DynamicType(); |
| 1014 } | 1014 } |
| 1015 } | 1015 } |
| OLD | NEW |