| 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 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 bool stopAfterTypeInference = false; | 127 bool stopAfterTypeInference = false; |
| 128 | 128 |
| 129 /// Output provider from user of Compiler API. | 129 /// Output provider from user of Compiler API. |
| 130 api.CompilerOutput userOutputProvider; | 130 api.CompilerOutput userOutputProvider; |
| 131 | 131 |
| 132 List<Uri> librariesToAnalyzeWhenRun; | 132 List<Uri> librariesToAnalyzeWhenRun; |
| 133 | 133 |
| 134 ResolvedUriTranslator get resolvedUriTranslator; | 134 ResolvedUriTranslator get resolvedUriTranslator; |
| 135 | 135 |
| 136 LibraryElement mainApp; | 136 LibraryElement mainApp; |
| 137 FunctionElement mainFunction; | 137 MethodElement mainFunction; |
| 138 | 138 |
| 139 DiagnosticReporter get reporter => _reporter; | 139 DiagnosticReporter get reporter => _reporter; |
| 140 CommonElements get commonElements => _commonElements; | 140 CommonElements get commonElements => _commonElements; |
| 141 Resolution get resolution => _resolution; | 141 Resolution get resolution => _resolution; |
| 142 ParsingContext get parsingContext => _parsingContext; | 142 ParsingContext get parsingContext => _parsingContext; |
| 143 | 143 |
| 144 // TODO(zarah): Remove this map and incorporate compile-time errors | 144 // TODO(zarah): Remove this map and incorporate compile-time errors |
| 145 // in the model. | 145 // in the model. |
| 146 /// Tracks elements with compile-time errors. | 146 /// Tracks elements with compile-time errors. |
| 147 final Map<Element, List<DiagnosticMessage>> elementsWithCompileTimeErrors = | 147 final Map<Element, List<DiagnosticMessage>> elementsWithCompileTimeErrors = |
| (...skipping 2084 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2232 _ElementScanner(this.scanner); | 2232 _ElementScanner(this.scanner); |
| 2233 void scanLibrary(LibraryElement library) => scanner.scanLibrary(library); | 2233 void scanLibrary(LibraryElement library) => scanner.scanLibrary(library); |
| 2234 void scanUnit(CompilationUnitElement unit) => scanner.scan(unit); | 2234 void scanUnit(CompilationUnitElement unit) => scanner.scan(unit); |
| 2235 } | 2235 } |
| 2236 | 2236 |
| 2237 class _EmptyEnvironment implements Environment { | 2237 class _EmptyEnvironment implements Environment { |
| 2238 const _EmptyEnvironment(); | 2238 const _EmptyEnvironment(); |
| 2239 | 2239 |
| 2240 String valueOf(String key) => null; | 2240 String valueOf(String key) => null; |
| 2241 } | 2241 } |
| OLD | NEW |