| 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; |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 import 'types/types.dart' show GlobalTypeInferenceTask; | 73 import 'types/types.dart' show GlobalTypeInferenceTask; |
| 74 import 'types/masks.dart' show CommonMasks; | 74 import 'types/masks.dart' show CommonMasks; |
| 75 import 'universe/selector.dart' show Selector; | 75 import 'universe/selector.dart' show Selector; |
| 76 import 'universe/world_builder.dart' | 76 import 'universe/world_builder.dart' |
| 77 show ResolutionWorldBuilder, CodegenWorldBuilder; | 77 show ResolutionWorldBuilder, CodegenWorldBuilder; |
| 78 import 'universe/use.dart' show StaticUse; | 78 import 'universe/use.dart' show StaticUse; |
| 79 import 'universe/world_impact.dart' show ImpactStrategy, WorldImpact; | 79 import 'universe/world_impact.dart' show ImpactStrategy, WorldImpact; |
| 80 import 'util/util.dart' show Link, Setlet; | 80 import 'util/util.dart' show Link, Setlet; |
| 81 import 'world.dart' show ClosedWorld, ClosedWorldRefiner, OpenWorld, WorldImpl; | 81 import 'world.dart' show ClosedWorld, ClosedWorldRefiner, OpenWorld, WorldImpl; |
| 82 | 82 |
| 83 typedef Backend MakeBackendFuncion(Compiler compiler); | 83 typedef MakeBackendFuncion = Backend <- (Compiler compiler); |
| 84 | 84 |
| 85 typedef CompilerDiagnosticReporter MakeReporterFunction( | 85 typedef MakeReporterFunction = |
| 86 Compiler compiler, CompilerOptions options); | 86 CompilerDiagnosticReporter <- (Compiler compiler, CompilerOptions options); |
| 87 | 87 |
| 88 abstract class Compiler implements LibraryLoaderListener { | 88 abstract class Compiler implements LibraryLoaderListener { |
| 89 Measurer get measurer; | 89 Measurer get measurer; |
| 90 | 90 |
| 91 final IdGenerator idGenerator = new IdGenerator(); | 91 final IdGenerator idGenerator = new IdGenerator(); |
| 92 WorldImpl _world; | 92 WorldImpl _world; |
| 93 Types types; | 93 Types types; |
| 94 _CompilerCoreTypes _coreTypes; | 94 _CompilerCoreTypes _coreTypes; |
| 95 CompilerDiagnosticReporter _reporter; | 95 CompilerDiagnosticReporter _reporter; |
| 96 _CompilerResolution _resolution; | 96 _CompilerResolution _resolution; |
| (...skipping 2159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2256 _ElementScanner(this.scanner); | 2256 _ElementScanner(this.scanner); |
| 2257 void scanLibrary(LibraryElement library) => scanner.scanLibrary(library); | 2257 void scanLibrary(LibraryElement library) => scanner.scanLibrary(library); |
| 2258 void scanUnit(CompilationUnitElement unit) => scanner.scan(unit); | 2258 void scanUnit(CompilationUnitElement unit) => scanner.scan(unit); |
| 2259 } | 2259 } |
| 2260 | 2260 |
| 2261 class _EmptyEnvironment implements Environment { | 2261 class _EmptyEnvironment implements Environment { |
| 2262 const _EmptyEnvironment(); | 2262 const _EmptyEnvironment(); |
| 2263 | 2263 |
| 2264 String valueOf(String key) => null; | 2264 String valueOf(String key) => null; |
| 2265 } | 2265 } |
| OLD | NEW |