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

Unified Diff: pkg/compiler/lib/src/resolution/resolution_common.dart

Issue 1182563003: Handle most qualified sends. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Handle qualified access of ambiguous static members. Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/compiler/lib/src/resolution/members.dart ('k') | pkg/compiler/lib/src/resolution/send_resolver.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/resolution/resolution_common.dart
diff --git a/pkg/compiler/lib/src/resolution/resolution_common.dart b/pkg/compiler/lib/src/resolution/resolution_common.dart
index 5d3efcb717ec50ad0a56ccbf22a4ec89193afb79..cb045cf1c5a87774b25b87aef6d63abf20efa3f2 100644
--- a/pkg/compiler/lib/src/resolution/resolution_common.dart
+++ b/pkg/compiler/lib/src/resolution/resolution_common.dart
@@ -13,7 +13,13 @@ class ResolverTask extends CompilerTask {
WorldImpact resolve(Element element) {
return measure(() {
- if (Elements.isErroneous(element)) return null;
+ if (Elements.isErroneous(element)) {
+ // TODO(johnniwinther): Add a predicate for this.
+ assert(invariant(element, element is! ErroneousElement,
+ message: "Element $element expected to have parse errors."));
+ _ensureTreeElements(element);
+ return const WorldImpact();
+ }
WorldImpact processMetadata([WorldImpact result]) {
for (MetadataAnnotation metadata in element.metadata) {
« no previous file with comments | « pkg/compiler/lib/src/resolution/members.dart ('k') | pkg/compiler/lib/src/resolution/send_resolver.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698