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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 import 'tokens/token_constants.dart' as Tokens show | 121 import 'tokens/token_constants.dart' as Tokens show |
122 COMMENT_TOKEN, | 122 COMMENT_TOKEN, |
123 EOF_TOKEN; | 123 EOF_TOKEN; |
124 import 'tokens/token_map.dart' show | 124 import 'tokens/token_map.dart' show |
125 TokenMap; | 125 TokenMap; |
126 import 'tree/tree.dart' show | 126 import 'tree/tree.dart' show |
127 Node; | 127 Node; |
128 import 'typechecker.dart' show | 128 import 'typechecker.dart' show |
129 TypeCheckerTask; | 129 TypeCheckerTask; |
130 import 'types/types.dart' as ti; | 130 import 'types/types.dart' as ti; |
| 131 import 'universe/call_structure.dart' show |
| 132 CallStructure; |
| 133 import 'universe/selector.dart' show |
| 134 Selector; |
131 import 'universe/universe.dart' show | 135 import 'universe/universe.dart' show |
132 CallStructure, | |
133 Selector, | |
134 Universe; | 136 Universe; |
135 import 'util/util.dart' show | 137 import 'util/util.dart' show |
136 Link, | 138 Link, |
137 Setlet; | 139 Setlet; |
138 import 'world.dart' show | 140 import 'world.dart' show |
139 World; | 141 World; |
140 | 142 |
141 abstract class Compiler implements DiagnosticListener { | 143 abstract class Compiler implements DiagnosticListener { |
142 | 144 |
143 final Stopwatch totalCompileTime = new Stopwatch(); | 145 final Stopwatch totalCompileTime = new Stopwatch(); |
(...skipping 1686 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1830 | 1832 |
1831 @override | 1833 @override |
1832 InterfaceType streamType([DartType elementType]) { | 1834 InterfaceType streamType([DartType elementType]) { |
1833 InterfaceType type = streamClass.computeType(compiler); | 1835 InterfaceType type = streamClass.computeType(compiler); |
1834 if (elementType == null) { | 1836 if (elementType == null) { |
1835 return streamClass.rawType; | 1837 return streamClass.rawType; |
1836 } | 1838 } |
1837 return type.createInstantiation([elementType]); | 1839 return type.createInstantiation([elementType]); |
1838 } | 1840 } |
1839 } | 1841 } |
OLD | NEW |