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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 import 'dump_info.dart' show | 62 import 'dump_info.dart' show |
63 DumpInfoTask; | 63 DumpInfoTask; |
64 import 'elements/elements.dart'; | 64 import 'elements/elements.dart'; |
65 import 'elements/modelx.dart' show | 65 import 'elements/modelx.dart' show |
66 ErroneousElementX, | 66 ErroneousElementX, |
67 ClassElementX, | 67 ClassElementX, |
68 CompilationUnitElementX, | 68 CompilationUnitElementX, |
69 DeferredLoaderGetterElementX, | 69 DeferredLoaderGetterElementX, |
70 MethodElementX, | 70 MethodElementX, |
71 LibraryElementX, | 71 LibraryElementX, |
72 PrefixElementX, | 72 PrefixElementX; |
73 VoidElementX; | |
74 import 'enqueue.dart' show | 73 import 'enqueue.dart' show |
75 CodegenEnqueuer, | 74 CodegenEnqueuer, |
76 Enqueuer, | 75 Enqueuer, |
77 EnqueueTask, | 76 EnqueueTask, |
78 ResolutionEnqueuer, | 77 ResolutionEnqueuer, |
79 QueueFilter, | 78 QueueFilter, |
80 WorldImpact; | 79 WorldImpact; |
81 import 'io/source_information.dart' show | 80 import 'io/source_information.dart' show |
82 SourceInformation; | 81 SourceInformation; |
83 import 'js_backend/js_backend.dart' as js_backend show | 82 import 'js_backend/js_backend.dart' as js_backend show |
84 JavaScriptBackend; | 83 JavaScriptBackend; |
85 import 'library_loader.dart' show | 84 import 'library_loader.dart' show |
86 LibraryLoader, | 85 LibraryLoader, |
87 LibraryLoaderTask, | 86 LibraryLoaderTask, |
88 LoadedLibraries; | 87 LoadedLibraries; |
89 import 'mirrors_used.dart' show | 88 import 'mirrors_used.dart' show |
90 MirrorUsageAnalyzerTask; | 89 MirrorUsageAnalyzerTask; |
91 import 'null_compiler_output.dart' show | 90 import 'null_compiler_output.dart' show |
92 NullCompilerOutput, | 91 NullCompilerOutput, |
93 NullSink; | 92 NullSink; |
94 import 'parser/diet_parser_task.dart' show | 93 import 'parser/diet_parser_task.dart' show |
95 DietParserTask; | 94 DietParserTask; |
96 import 'parser/parser_task.dart' show | 95 import 'parser/parser_task.dart' show |
97 DietParserTask, | |
98 ParserTask; | 96 ParserTask; |
99 import 'patch_parser.dart' show | 97 import 'patch_parser.dart' show |
100 PatchParserTask; | 98 PatchParserTask; |
101 import 'resolution/registry.dart' show | 99 import 'resolution/registry.dart' show |
102 ResolutionRegistry; | 100 ResolutionRegistry; |
103 import 'resolution/resolution.dart' show | 101 import 'resolution/resolution.dart' show |
104 ResolverTask; | 102 ResolverTask; |
105 import 'resolution/tree_elements.dart' show | 103 import 'resolution/tree_elements.dart' show |
106 TreeElementMapping; | 104 TreeElementMapping; |
107 import 'scanner/scanner_task.dart' show | 105 import 'scanner/scanner_task.dart' show |
(...skipping 1722 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1830 | 1828 |
1831 @override | 1829 @override |
1832 InterfaceType streamType([DartType elementType]) { | 1830 InterfaceType streamType([DartType elementType]) { |
1833 InterfaceType type = streamClass.computeType(compiler); | 1831 InterfaceType type = streamClass.computeType(compiler); |
1834 if (elementType == null) { | 1832 if (elementType == null) { |
1835 return streamClass.rawType; | 1833 return streamClass.rawType; |
1836 } | 1834 } |
1837 return type.createInstantiation([elementType]); | 1835 return type.createInstantiation([elementType]); |
1838 } | 1836 } |
1839 } | 1837 } |
OLD | NEW |