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

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

Issue 2927043002: Handle `new Object()` in compile_from_dill_test (Closed)
Patch Set: Created 3 years, 6 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) 2017, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2017, 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.resolution_strategy; 5 library dart2js.resolution_strategy;
6 6
7 import 'package:front_end/src/fasta/scanner.dart' show Token; 7 import 'package:front_end/src/fasta/scanner.dart' show Token;
8 8
9 import '../common.dart'; 9 import '../common.dart';
10 import '../common_elements.dart'; 10 import '../common_elements.dart';
(...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after
371 @override 371 @override
372 LibraryEntity get mainLibrary => _compiler.mainApp; 372 LibraryEntity get mainLibrary => _compiler.mainApp;
373 373
374 @override 374 @override
375 FunctionEntity get mainFunction => _compiler.mainFunction; 375 FunctionEntity get mainFunction => _compiler.mainFunction;
376 376
377 @override 377 @override
378 Iterable<LibraryEntity> get libraries => _compiler.libraryLoader.libraries; 378 Iterable<LibraryEntity> get libraries => _compiler.libraryLoader.libraries;
379 379
380 @override 380 @override
381 String getLibraryName(LibraryElement library) => library.libraryName;
382
383 @override
381 ResolutionInterfaceType getThisType(ClassElement cls) { 384 ResolutionInterfaceType getThisType(ClassElement cls) {
382 cls.ensureResolved(_resolution); 385 cls.ensureResolved(_resolution);
383 return cls.thisType; 386 return cls.thisType;
384 } 387 }
385 388
386 @override 389 @override
387 ResolutionInterfaceType getRawType(ClassElement cls) { 390 ResolutionInterfaceType getRawType(ClassElement cls) {
388 cls.ensureResolved(_resolution); 391 cls.ensureResolved(_resolution);
389 return cls.rawType; 392 return cls.rawType;
390 } 393 }
(...skipping 438 matching lines...) Expand 10 before | Expand all | Expand 10 after
829 @override 832 @override
830 WorkItem createWorkItem(MemberElement element) { 833 WorkItem createWorkItem(MemberElement element) {
831 assert(element.isDeclaration, failedAt(element)); 834 assert(element.isDeclaration, failedAt(element));
832 if (element.isMalformed) return null; 835 if (element.isMalformed) return null;
833 836
834 assert(element is AnalyzableElement, 837 assert(element is AnalyzableElement,
835 failedAt(element, 'Element $element is not analyzable.')); 838 failedAt(element, 'Element $element is not analyzable.'));
836 return _resolution.createWorkItem(element); 839 return _resolution.createWorkItem(element);
837 } 840 }
838 } 841 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/kernel/element_map_impl.dart ('k') | tests/compiler/dart2js/kernel/compile_from_dill_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698