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

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

Issue 2925263002: A step towards handling `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 574 matching lines...) Expand 10 before | Expand all | Expand 10 after
585 return library; 585 return library;
586 } 586 }
587 587
588 @override 588 @override
589 bool isDeferredLoadLibraryGetter(MemberElement member) { 589 bool isDeferredLoadLibraryGetter(MemberElement member) {
590 return member.isDeferredLoaderGetter; 590 return member.isDeferredLoaderGetter;
591 } 591 }
592 592
593 @override 593 @override
594 ResolutionFunctionType getFunctionType(MethodElement method) { 594 ResolutionFunctionType getFunctionType(MethodElement method) {
595 if (method is ConstructorBodyElement) {
596 return method.constructor.type;
597 }
595 method.computeType(_resolution); 598 method.computeType(_resolution);
596 return method.type; 599 return method.type;
597 } 600 }
598 601
599 @override 602 @override
600 ResolutionFunctionType getLocalFunctionType(LocalFunctionElement function) { 603 ResolutionFunctionType getLocalFunctionType(LocalFunctionElement function) {
601 return function.type; 604 return function.type;
602 } 605 }
603 606
604 @override 607 @override
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
826 @override 829 @override
827 WorkItem createWorkItem(MemberElement element) { 830 WorkItem createWorkItem(MemberElement element) {
828 assert(element.isDeclaration, failedAt(element)); 831 assert(element.isDeclaration, failedAt(element));
829 if (element.isMalformed) return null; 832 if (element.isMalformed) return null;
830 833
831 assert(element is AnalyzableElement, 834 assert(element is AnalyzableElement,
832 failedAt(element, 'Element $element is not analyzable.')); 835 failedAt(element, 'Element $element is not analyzable.'));
833 return _resolution.createWorkItem(element); 836 return _resolution.createWorkItem(element);
834 } 837 }
835 } 838 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698