| 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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 LibraryElementX, | 66 LibraryElementX, |
| 67 PrefixElementX; | 67 PrefixElementX; |
| 68 import 'enqueue.dart' show | 68 import 'enqueue.dart' show |
| 69 CodegenEnqueuer, | 69 CodegenEnqueuer, |
| 70 Enqueuer, | 70 Enqueuer, |
| 71 EnqueueTask, | 71 EnqueueTask, |
| 72 ResolutionEnqueuer, | 72 ResolutionEnqueuer, |
| 73 QueueFilter; | 73 QueueFilter; |
| 74 import 'io/source_information.dart' show | 74 import 'io/source_information.dart' show |
| 75 SourceInformation; | 75 SourceInformation; |
| 76 import 'js_backend/backend_helpers.dart' as js_backend show |
| 77 BackendHelpers; |
| 76 import 'js_backend/js_backend.dart' as js_backend show | 78 import 'js_backend/js_backend.dart' as js_backend show |
| 77 JavaScriptBackend; | 79 JavaScriptBackend; |
| 78 import 'library_loader.dart' show | 80 import 'library_loader.dart' show |
| 79 LibraryLoader, | 81 LibraryLoader, |
| 80 LibraryLoaderTask, | 82 LibraryLoaderTask, |
| 81 LoadedLibraries; | 83 LoadedLibraries; |
| 82 import 'mirrors_used.dart' show | 84 import 'mirrors_used.dart' show |
| 83 MirrorUsageAnalyzerTask; | 85 MirrorUsageAnalyzerTask; |
| 84 import 'null_compiler_output.dart' show | 86 import 'null_compiler_output.dart' show |
| 85 NullCompilerOutput, | 87 NullCompilerOutput, |
| (...skipping 503 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 589 } else if (uri == Uris.dart_mirrors) { | 591 } else if (uri == Uris.dart_mirrors) { |
| 590 mirrorSystemClass = findRequiredElement(library, 'MirrorSystem'); | 592 mirrorSystemClass = findRequiredElement(library, 'MirrorSystem'); |
| 591 mirrorsUsedClass = findRequiredElement(library, 'MirrorsUsed'); | 593 mirrorsUsedClass = findRequiredElement(library, 'MirrorsUsed'); |
| 592 } else if (uri == Uris.dart_async) { | 594 } else if (uri == Uris.dart_async) { |
| 593 asyncLibrary = library; | 595 asyncLibrary = library; |
| 594 deferredLibraryClass = findRequiredElement(library, 'DeferredLibrary'); | 596 deferredLibraryClass = findRequiredElement(library, 'DeferredLibrary'); |
| 595 _coreTypes.futureClass = findRequiredElement(library, 'Future'); | 597 _coreTypes.futureClass = findRequiredElement(library, 'Future'); |
| 596 _coreTypes.streamClass = findRequiredElement(library, 'Stream'); | 598 _coreTypes.streamClass = findRequiredElement(library, 'Stream'); |
| 597 } else if (uri == Uris.dart__native_typed_data) { | 599 } else if (uri == Uris.dart__native_typed_data) { |
| 598 typedDataClass = findRequiredElement(library, 'NativeTypedData'); | 600 typedDataClass = findRequiredElement(library, 'NativeTypedData'); |
| 599 } else if (uri == js_backend.JavaScriptBackend.DART_JS_HELPER) { | 601 } else if (uri == js_backend.BackendHelpers.DART_JS_HELPER) { |
| 600 patchAnnotationClass = findRequiredElement(library, '_Patch'); | 602 patchAnnotationClass = findRequiredElement(library, '_Patch'); |
| 601 nativeAnnotationClass = findRequiredElement(library, 'Native'); | 603 nativeAnnotationClass = findRequiredElement(library, 'Native'); |
| 602 } | 604 } |
| 603 return backend.onLibraryScanned(library, loader); | 605 return backend.onLibraryScanned(library, loader); |
| 604 } | 606 } |
| 605 | 607 |
| 606 /// Compute the set of distinct import chains to the library at [uri] within | 608 /// Compute the set of distinct import chains to the library at [uri] within |
| 607 /// [loadedLibraries]. | 609 /// [loadedLibraries]. |
| 608 /// | 610 /// |
| 609 /// The chains are strings of the form | 611 /// The chains are strings of the form |
| (...skipping 1429 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2039 if (_otherDependencies == null) { | 2041 if (_otherDependencies == null) { |
| 2040 _otherDependencies = new Setlet<Element>(); | 2042 _otherDependencies = new Setlet<Element>(); |
| 2041 } | 2043 } |
| 2042 _otherDependencies.add(element.implementation); | 2044 _otherDependencies.add(element.implementation); |
| 2043 } | 2045 } |
| 2044 | 2046 |
| 2045 Iterable<Element> get otherDependencies { | 2047 Iterable<Element> get otherDependencies { |
| 2046 return _otherDependencies != null ? _otherDependencies : const <Element>[]; | 2048 return _otherDependencies != null ? _otherDependencies : const <Element>[]; |
| 2047 } | 2049 } |
| 2048 } | 2050 } |
| OLD | NEW |