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 library dart2js.compiler_base; | 5 library dart2js.compiler_base; |
6 | 6 |
7 import 'dart:async' show | 7 import 'dart:async' show |
8 EventSink, | 8 EventSink, |
9 Future; | 9 Future; |
10 | 10 |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 LibraryLoader, | 83 LibraryLoader, |
84 LibraryLoaderTask, | 84 LibraryLoaderTask, |
85 LoadedLibraries; | 85 LoadedLibraries; |
86 import 'mirrors_used.dart' show | 86 import 'mirrors_used.dart' show |
87 MirrorUsageAnalyzerTask; | 87 MirrorUsageAnalyzerTask; |
88 import 'null_compiler_output.dart' show | 88 import 'null_compiler_output.dart' show |
89 NullCompilerOutput, | 89 NullCompilerOutput, |
90 NullSink; | 90 NullSink; |
91 import 'patch_parser.dart' show | 91 import 'patch_parser.dart' show |
92 PatchParserTask; | 92 PatchParserTask; |
| 93 import 'resolution/registry.dart' show |
| 94 ResolutionRegistry; |
93 import 'resolution/resolution.dart' show | 95 import 'resolution/resolution.dart' show |
94 ResolutionRegistry, | 96 ResolverTask; |
95 ResolverTask, | 97 import 'resolution/tree_elements.dart' show |
96 TreeElementMapping; | 98 TreeElementMapping; |
97 import 'scanner/token_map.dart' show | 99 import 'scanner/token_map.dart' show |
98 TokenMap; | 100 TokenMap; |
99 import 'scanner/scannerlib.dart' show | 101 import 'scanner/scannerlib.dart' show |
100 COMMENT_TOKEN, | 102 COMMENT_TOKEN, |
101 DietParserTask, | 103 DietParserTask, |
102 EOF_TOKEN, | 104 EOF_TOKEN, |
103 ParserTask, | 105 ParserTask, |
104 ScannerTask, | 106 ScannerTask, |
105 StringToken, | 107 StringToken, |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 Registry globalDependencies; | 160 Registry globalDependencies; |
159 | 161 |
160 /** | 162 /** |
161 * Dependencies that are only included due to mirrors. | 163 * Dependencies that are only included due to mirrors. |
162 * | 164 * |
163 * We should get rid of this and ensure that all dependencies are | 165 * We should get rid of this and ensure that all dependencies are |
164 * associated with a particular element. | 166 * associated with a particular element. |
165 */ | 167 */ |
166 // TODO(johnniwinther): This should not be a [ResolutionRegistry]. | 168 // TODO(johnniwinther): This should not be a [ResolutionRegistry]. |
167 final Registry mirrorDependencies = | 169 final Registry mirrorDependencies = |
168 new ResolutionRegistry.internal(null, new TreeElementMapping(null)); | 170 new ResolutionRegistry(null, new TreeElementMapping(null)); |
169 | 171 |
170 final bool enableMinification; | 172 final bool enableMinification; |
171 | 173 |
172 final bool useFrequencyNamer; | 174 final bool useFrequencyNamer; |
173 | 175 |
174 /// When `true` emits URIs in the reflection metadata. | 176 /// When `true` emits URIs in the reflection metadata. |
175 final bool preserveUris; | 177 final bool preserveUris; |
176 | 178 |
177 final bool enableTypeAssertions; | 179 final bool enableTypeAssertions; |
178 final bool enableUserAssertions; | 180 final bool enableUserAssertions; |
(...skipping 1581 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1760 | 1762 |
1761 @override | 1763 @override |
1762 InterfaceType streamType([DartType elementType]) { | 1764 InterfaceType streamType([DartType elementType]) { |
1763 InterfaceType type = streamClass.computeType(compiler); | 1765 InterfaceType type = streamClass.computeType(compiler); |
1764 if (elementType == null) { | 1766 if (elementType == null) { |
1765 return streamClass.rawType; | 1767 return streamClass.rawType; |
1766 } | 1768 } |
1767 return type.createInstantiation([elementType]); | 1769 return type.createInstantiation([elementType]); |
1768 } | 1770 } |
1769 } | 1771 } |
OLD | NEW |