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

Issue 10947006: element.isMember does not imply element.enclosingElement.isClass? can we fix that? (Closed)

Created:
8 years, 3 months ago by ngeoffray
Modified:
8 years, 3 months ago
Reviewers:
Johnni Winther
CC:
reviews_dartlang.org
Visibility:
Public.

Description

element.isMember does not imply element.enclosingElement.isClass? can we fix that? Committed: https://code.google.com/p/dart/source/detail?r=12478

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -3 lines) Patch
M lib/compiler/implementation/closure.dart View 1 chunk +2 lines, -3 lines 0 comments Download

Messages

Total messages: 2 (0 generated)
ngeoffray
TBR to unbreak the build.
8 years, 3 months ago (2012-09-18 09:08:50 UTC) #1
Johnni Winther
8 years, 3 months ago (2012-09-18 20:02:24 UTC) #2
LGTM

The problem is VariableElement which is always a child of VariableListElement.
This is need to handle multiple variable declarations like

  int a, b, c;

Here VariableListElement holds the common type and there is a VariableElement
for each of a, b, and c. 

I think we should rewrite most of are predicates in Element so that this anomaly
is handle by VariableElement itself.

Powered by Google App Engine
This is Rietveld 408576698