| 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 302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 313 | 313 |
| 314 /// Creates the resolution object. | 314 /// Creates the resolution object. |
| 315 /// | 315 /// |
| 316 /// Override this to mock resolution for testing. | 316 /// Override this to mock resolution for testing. |
| 317 Resolution createResolution() => new CompilerResolution(this); | 317 Resolution createResolution() => new CompilerResolution(this); |
| 318 | 318 |
| 319 /// Creates the resolver task. | 319 /// Creates the resolver task. |
| 320 /// | 320 /// |
| 321 /// Override this to mock the resolver for testing. | 321 /// Override this to mock the resolver for testing. |
| 322 ResolverTask createResolverTask() { | 322 ResolverTask createResolverTask() { |
| 323 return new ResolverTask( | 323 return new ResolverTask(resolution, backend.constantCompilerTask, measurer); |
| 324 resolution, backend.constantCompilerTask, measurer); | |
| 325 } | 324 } |
| 326 | 325 |
| 327 // TODO(johnniwinther): Rename these appropriately when unification of worlds/ | 326 // TODO(johnniwinther): Rename these appropriately when unification of worlds/ |
| 328 // universes is complete. | 327 // universes is complete. |
| 329 ResolutionWorldBuilder get resolverWorld => enqueuer.resolution.universe; | 328 ResolutionWorldBuilder get resolverWorld => enqueuer.resolution.universe; |
| 330 CodegenWorldBuilder get codegenWorld => enqueuer.codegen.universe; | 329 CodegenWorldBuilder get codegenWorld => enqueuer.codegen.universe; |
| 331 | 330 |
| 332 bool get analyzeAll => options.analyzeAll || compileAll; | 331 bool get analyzeAll => options.analyzeAll || compileAll; |
| 333 | 332 |
| 334 bool get compileAll => false; | 333 bool get compileAll => false; |
| (...skipping 1906 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2241 _ElementScanner(this.scanner); | 2240 _ElementScanner(this.scanner); |
| 2242 void scanLibrary(LibraryElement library) => scanner.scanLibrary(library); | 2241 void scanLibrary(LibraryElement library) => scanner.scanLibrary(library); |
| 2243 void scanUnit(CompilationUnitElement unit) => scanner.scan(unit); | 2242 void scanUnit(CompilationUnitElement unit) => scanner.scan(unit); |
| 2244 } | 2243 } |
| 2245 | 2244 |
| 2246 class _EmptyEnvironment implements Environment { | 2245 class _EmptyEnvironment implements Environment { |
| 2247 const _EmptyEnvironment(); | 2246 const _EmptyEnvironment(); |
| 2248 | 2247 |
| 2249 String valueOf(String key) => null; | 2248 String valueOf(String key) => null; |
| 2250 } | 2249 } |
| OLD | NEW |