| 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 EventSink, Future; | 7 import 'dart:async' show EventSink, Future; |
| 8 | 8 |
| 9 import '../compiler_new.dart' as api; | 9 import '../compiler_new.dart' as api; |
| 10 import 'cache_strategy.dart' show CacheStrategy; | 10 import 'cache_strategy.dart' show CacheStrategy; |
| 11 import 'closure.dart' as closureMapping show ClosureTask; | 11 import 'closure.dart' as closureMapping show ClosureTask; |
| 12 import 'common/backend_api.dart' show Backend; | 12 import 'common/backend_api.dart' show Backend; |
| 13 import 'common/names.dart' show Selectors; | 13 import 'common/names.dart' show Selectors; |
| 14 import 'common/names.dart' show Identifiers, Uris; | 14 import 'common/names.dart' show Identifiers, Uris; |
| 15 import 'common/resolution.dart' | 15 import 'common/resolution.dart' |
| 16 show | 16 show |
| 17 ParsingContext, | 17 ParsingContext, |
| 18 Resolution, | 18 Resolution, |
| 19 ResolutionWorkItem, | 19 ResolutionWorkItem, |
| 20 ResolutionImpact, | 20 ResolutionImpact, |
| 21 Target; | 21 Target; |
| 22 import 'common/tasks.dart' show CompilerTask, GenericTask, Measurer; | 22 import 'common/tasks.dart' show CompilerTask, GenericTask, Measurer; |
| 23 import 'common/work.dart' show WorkItem; | 23 import 'common/work.dart' show WorkItem; |
| 24 import 'common.dart'; | 24 import 'common.dart'; |
| 25 import 'compile_time_constants.dart'; | 25 import 'compile_time_constants.dart'; |
| 26 import 'constants/values.dart'; | 26 import 'constants/values.dart'; |
| 27 import 'core_types.dart' show CommonElements; | 27 import 'core_types.dart' show CommonElements; |
| 28 import 'dart_types.dart' show DartType, DynamicType, InterfaceType, Types; | 28 import 'elements/resolution_types.dart' |
| 29 show DartType, DynamicType, InterfaceType, Types; |
| 29 import 'deferred_load.dart' show DeferredLoadTask; | 30 import 'deferred_load.dart' show DeferredLoadTask; |
| 30 import 'diagnostics/code_location.dart'; | 31 import 'diagnostics/code_location.dart'; |
| 31 import 'diagnostics/diagnostic_listener.dart' show DiagnosticReporter; | 32 import 'diagnostics/diagnostic_listener.dart' show DiagnosticReporter; |
| 32 import 'diagnostics/invariant.dart' show REPORT_EXCESS_RESOLUTION; | 33 import 'diagnostics/invariant.dart' show REPORT_EXCESS_RESOLUTION; |
| 33 import 'diagnostics/messages.dart' show Message, MessageTemplate; | 34 import 'diagnostics/messages.dart' show Message, MessageTemplate; |
| 34 import 'dump_info.dart' show DumpInfoTask; | 35 import 'dump_info.dart' show DumpInfoTask; |
| 35 import 'elements/elements.dart'; | 36 import 'elements/elements.dart'; |
| 36 import 'elements/modelx.dart' show ErroneousElementX; | 37 import 'elements/modelx.dart' show ErroneousElementX; |
| 37 import 'enqueue.dart' show Enqueuer, EnqueueTask, ResolutionEnqueuer; | 38 import 'enqueue.dart' show Enqueuer, EnqueueTask, ResolutionEnqueuer; |
| 38 import 'environment.dart'; | 39 import 'environment.dart'; |
| (...skipping 2173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2212 _ElementScanner(this.scanner); | 2213 _ElementScanner(this.scanner); |
| 2213 void scanLibrary(LibraryElement library) => scanner.scanLibrary(library); | 2214 void scanLibrary(LibraryElement library) => scanner.scanLibrary(library); |
| 2214 void scanUnit(CompilationUnitElement unit) => scanner.scan(unit); | 2215 void scanUnit(CompilationUnitElement unit) => scanner.scan(unit); |
| 2215 } | 2216 } |
| 2216 | 2217 |
| 2217 class _EmptyEnvironment implements Environment { | 2218 class _EmptyEnvironment implements Environment { |
| 2218 const _EmptyEnvironment(); | 2219 const _EmptyEnvironment(); |
| 2219 | 2220 |
| 2220 String valueOf(String key) => null; | 2221 String valueOf(String key) => null; |
| 2221 } | 2222 } |
| OLD | NEW |