| 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 1295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1306 | 1306 |
| 1307 ClassElement _patchAnnotationClass; | 1307 ClassElement _patchAnnotationClass; |
| 1308 ClassElement get patchAnnotationClass => | 1308 ClassElement get patchAnnotationClass => |
| 1309 _patchAnnotationClass ??= _findRequired(jsHelperLibrary, '_Patch'); | 1309 _patchAnnotationClass ??= _findRequired(jsHelperLibrary, '_Patch'); |
| 1310 | 1310 |
| 1311 ClassElement _nativeAnnotationClass; | 1311 ClassElement _nativeAnnotationClass; |
| 1312 ClassElement get nativeAnnotationClass => | 1312 ClassElement get nativeAnnotationClass => |
| 1313 _nativeAnnotationClass ??= _findRequired(jsHelperLibrary, 'Native'); | 1313 _nativeAnnotationClass ??= _findRequired(jsHelperLibrary, 'Native'); |
| 1314 | 1314 |
| 1315 @override | 1315 @override |
| 1316 ResolutionDynamicType get dynamicType => const ResolutionDynamicType(); |
| 1317 |
| 1318 @override |
| 1316 ResolutionInterfaceType get objectType { | 1319 ResolutionInterfaceType get objectType { |
| 1317 objectClass.ensureResolved(resolution); | 1320 objectClass.ensureResolved(resolution); |
| 1318 return objectClass.rawType; | 1321 return objectClass.rawType; |
| 1319 } | 1322 } |
| 1320 | 1323 |
| 1321 @override | 1324 @override |
| 1322 ResolutionInterfaceType get boolType { | 1325 ResolutionInterfaceType get boolType { |
| 1323 boolClass.ensureResolved(resolution); | 1326 boolClass.ensureResolved(resolution); |
| 1324 return boolClass.rawType; | 1327 return boolClass.rawType; |
| 1325 } | 1328 } |
| (...skipping 904 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2230 _ElementScanner(this.scanner); | 2233 _ElementScanner(this.scanner); |
| 2231 void scanLibrary(LibraryElement library) => scanner.scanLibrary(library); | 2234 void scanLibrary(LibraryElement library) => scanner.scanLibrary(library); |
| 2232 void scanUnit(CompilationUnitElement unit) => scanner.scan(unit); | 2235 void scanUnit(CompilationUnitElement unit) => scanner.scan(unit); |
| 2233 } | 2236 } |
| 2234 | 2237 |
| 2235 class _EmptyEnvironment implements Environment { | 2238 class _EmptyEnvironment implements Environment { |
| 2236 const _EmptyEnvironment(); | 2239 const _EmptyEnvironment(); |
| 2237 | 2240 |
| 2238 String valueOf(String key) => null; | 2241 String valueOf(String key) => null; |
| 2239 } | 2242 } |
| OLD | NEW |