Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(432)

Side by Side Diff: pkg/compiler/lib/src/compiler.dart

Issue 2620023002: Use elements/types in constants/values (Closed)
Patch Set: Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « no previous file | pkg/compiler/lib/src/constant_system_dart.dart » ('j') | pkg/compiler/lib/src/helpers/debug_collection.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698