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 22 matching lines...) Expand all Loading... |
33 CoreTypes; | 33 CoreTypes; |
34 import 'cps_ir/cps_ir_builder_task.dart' show | 34 import 'cps_ir/cps_ir_builder_task.dart' show |
35 IrBuilderTask; | 35 IrBuilderTask; |
36 import 'dart_backend/dart_backend.dart' as dart_backend; | 36 import 'dart_backend/dart_backend.dart' as dart_backend; |
37 import 'dart_types.dart' show | 37 import 'dart_types.dart' show |
38 DartType, | 38 DartType, |
39 DynamicType, | 39 DynamicType, |
40 InterfaceType, | 40 InterfaceType, |
41 Types; | 41 Types; |
42 import 'deferred_load.dart' show DeferredLoadTask, OutputUnit; | 42 import 'deferred_load.dart' show DeferredLoadTask, OutputUnit; |
43 import 'diagnostic_listener.dart'; | |
44 import 'diagnostics/code_location.dart'; | 43 import 'diagnostics/code_location.dart'; |
| 44 import 'diagnostics/diagnostic_listener.dart'; |
45 import 'diagnostics/invariant.dart' show | 45 import 'diagnostics/invariant.dart' show |
46 invariant, | 46 invariant, |
47 REPORT_EXCESS_RESOLUTION; | 47 REPORT_EXCESS_RESOLUTION; |
| 48 import 'diagnostics/messages.dart' show |
| 49 Message, |
| 50 MessageKind, |
| 51 MessageTemplate; |
48 import 'diagnostics/source_span.dart' show | 52 import 'diagnostics/source_span.dart' show |
49 SourceSpan; | 53 SourceSpan; |
50 import 'diagnostics/spannable.dart' show | 54 import 'diagnostics/spannable.dart' show |
51 CURRENT_ELEMENT_SPANNABLE, | 55 CURRENT_ELEMENT_SPANNABLE, |
52 NO_LOCATION_SPANNABLE, | 56 NO_LOCATION_SPANNABLE, |
53 Spannable, | 57 Spannable, |
54 SpannableAssertionFailure; | 58 SpannableAssertionFailure; |
55 import 'dump_info.dart' show | 59 import 'dump_info.dart' show |
56 DumpInfoTask; | 60 DumpInfoTask; |
57 import 'elements/elements.dart'; | 61 import 'elements/elements.dart'; |
(...skipping 14 matching lines...) Expand all Loading... |
72 QueueFilter, | 76 QueueFilter, |
73 WorldImpact; | 77 WorldImpact; |
74 import 'io/source_information.dart' show | 78 import 'io/source_information.dart' show |
75 SourceInformation; | 79 SourceInformation; |
76 import 'js_backend/js_backend.dart' as js_backend show | 80 import 'js_backend/js_backend.dart' as js_backend show |
77 JavaScriptBackend; | 81 JavaScriptBackend; |
78 import 'library_loader.dart' show | 82 import 'library_loader.dart' show |
79 LibraryLoader, | 83 LibraryLoader, |
80 LibraryLoaderTask, | 84 LibraryLoaderTask, |
81 LoadedLibraries; | 85 LoadedLibraries; |
82 import 'messages.dart' show | |
83 Message, | |
84 MessageKind, | |
85 MessageTemplate; | |
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/resolution.dart' show | 93 import 'resolution/resolution.dart' show |
94 ResolutionRegistry, | 94 ResolutionRegistry, |
95 ResolverTask, | 95 ResolverTask, |
(...skipping 1664 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1760 | 1760 |
1761 @override | 1761 @override |
1762 InterfaceType streamType([DartType elementType]) { | 1762 InterfaceType streamType([DartType elementType]) { |
1763 InterfaceType type = streamClass.computeType(compiler); | 1763 InterfaceType type = streamClass.computeType(compiler); |
1764 if (elementType == null) { | 1764 if (elementType == null) { |
1765 return streamClass.rawType; | 1765 return streamClass.rawType; |
1766 } | 1766 } |
1767 return type.createInstantiation([elementType]); | 1767 return type.createInstantiation([elementType]); |
1768 } | 1768 } |
1769 } | 1769 } |
OLD | NEW |