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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 import 'patch_parser.dart' show | 94 import 'patch_parser.dart' show |
95 PatchParserTask; | 95 PatchParserTask; |
96 import 'resolution/registry.dart' show | 96 import 'resolution/registry.dart' show |
97 ResolutionRegistry; | 97 ResolutionRegistry; |
98 import 'resolution/resolution.dart' show | 98 import 'resolution/resolution.dart' show |
99 ResolverTask; | 99 ResolverTask; |
100 import 'resolution/tree_elements.dart' show | 100 import 'resolution/tree_elements.dart' show |
101 TreeElementMapping; | 101 TreeElementMapping; |
102 import 'scanner/token_map.dart' show | 102 import 'scanner/token_map.dart' show |
103 TokenMap; | 103 TokenMap; |
104 import 'scanner/scannerlib.dart' show | 104 import 'scanner/diet_parser_task.dart' show |
| 105 DietParserTask; |
| 106 import 'scanner/scanner_task.dart' show |
| 107 ScannerTask; |
| 108 import 'scanner/parser_task.dart' show |
| 109 DietParserTask, |
| 110 ParserTask; |
| 111 import 'scanner/token.dart' show |
105 COMMENT_TOKEN, | 112 COMMENT_TOKEN, |
106 DietParserTask, | |
107 EOF_TOKEN, | 113 EOF_TOKEN, |
108 ParserTask, | |
109 ScannerTask, | |
110 StringToken, | 114 StringToken, |
111 Token, | 115 Token, |
112 TokenPair; | 116 TokenPair; |
113 import 'serialization/task.dart' show | 117 import 'serialization/task.dart' show |
114 SerializationTask; | 118 SerializationTask; |
115 import 'script.dart' show | 119 import 'script.dart' show |
116 Script; | 120 Script; |
117 import 'ssa/ssa.dart' show | 121 import 'ssa/ssa.dart' show |
118 HInstruction; | 122 HInstruction; |
119 import 'tracer.dart' show | 123 import 'tracer.dart' show |
(...skipping 1658 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1778 | 1782 |
1779 @override | 1783 @override |
1780 InterfaceType streamType([DartType elementType]) { | 1784 InterfaceType streamType([DartType elementType]) { |
1781 InterfaceType type = streamClass.computeType(compiler); | 1785 InterfaceType type = streamClass.computeType(compiler); |
1782 if (elementType == null) { | 1786 if (elementType == null) { |
1783 return streamClass.rawType; | 1787 return streamClass.rawType; |
1784 } | 1788 } |
1785 return type.createInstantiation([elementType]); | 1789 return type.createInstantiation([elementType]); |
1786 } | 1790 } |
1787 } | 1791 } |
OLD | NEW |