OLD | NEW |
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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 /// Analysis to determine how to generate code for `LookupMap`s. | 5 /// Analysis to determine how to generate code for `LookupMap`s. |
6 library compiler.src.js_backend.lookup_map_analysis; | 6 library compiler.src.js_backend.lookup_map_analysis; |
7 | 7 |
| 8 import '../common.dart'; |
8 import '../common/registry.dart' show Registry; | 9 import '../common/registry.dart' show Registry; |
9 import '../compiler.dart' show Compiler; | 10 import '../compiler.dart' show Compiler; |
10 import '../diagnostics/diagnostic_listener.dart' show | |
11 DiagnosticReporter; | |
12 import '../diagnostics/messages.dart' show | |
13 MessageKind; | |
14 import '../constants/values.dart' show | 11 import '../constants/values.dart' show |
15 ConstantValue, | 12 ConstantValue, |
16 ConstructedConstantValue, | 13 ConstructedConstantValue, |
17 ListConstantValue, | 14 ListConstantValue, |
18 NullConstantValue, | 15 NullConstantValue, |
19 StringConstantValue, | 16 StringConstantValue, |
20 TypeConstantValue; | 17 TypeConstantValue; |
21 import '../dart_types.dart' show DartType; | 18 import '../dart_types.dart' show DartType; |
22 import '../elements/elements.dart' show | 19 import '../elements/elements.dart' show |
23 ClassElement, | 20 ClassElement, |
(...skipping 413 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
437 } | 434 } |
438 } else { | 435 } else { |
439 original.fields[analysis.entriesField] = | 436 original.fields[analysis.entriesField] = |
440 new ListConstantValue(listType, keyValuePairs); | 437 new ListConstantValue(listType, keyValuePairs); |
441 } | 438 } |
442 } | 439 } |
443 } | 440 } |
444 | 441 |
445 final _validLookupMapVersionConstraint = | 442 final _validLookupMapVersionConstraint = |
446 new VersionConstraint.parse('^0.0.1'); | 443 new VersionConstraint.parse('^0.0.1'); |
OLD | NEW |