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

Issue 9700019: Use NodeElement to access Node in Resolver (Closed)

Created:
8 years, 9 months ago by scheglov
Modified:
8 years, 9 months ago
Reviewers:
zundel
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Use NodeElement to access Node in Resolver Note, that such access it type safe, because we return NodeElement from corresponding Node subclasses, return other NodeElements from NodeElement accessors, etc. R=zundel@google.com BUG= TEST= Committed: https://code.google.com/p/dart/source/detail?r=5471

Patch Set 1 #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+99 lines, -98 lines) Patch
M compiler/java/com/google/dart/compiler/ast/DartMethodDefinition.java View 3 chunks +4 lines, -4 lines 0 comments Download
M compiler/java/com/google/dart/compiler/resolver/ClassElement.java View 1 chunk +1 line, -1 line 0 comments Download
M compiler/java/com/google/dart/compiler/resolver/ClassElementImplementation.java View 8 chunks +11 lines, -13 lines 0 comments Download
M compiler/java/com/google/dart/compiler/resolver/ClassNodeElement.java View 1 chunk +4 lines, -0 lines 0 comments Download
M compiler/java/com/google/dart/compiler/resolver/ConstructorElementImplementation.java View 1 chunk +1 line, -1 line 0 comments Download
A + compiler/java/com/google/dart/compiler/resolver/ConstructorNodeElement.java View 1 chunk +5 lines, -6 lines 2 comments Download
M compiler/java/com/google/dart/compiler/resolver/ElementMap.java View 10 chunks +23 lines, -23 lines 0 comments Download
M compiler/java/com/google/dart/compiler/resolver/Elements.java View 3 chunks +5 lines, -6 lines 0 comments Download
M compiler/java/com/google/dart/compiler/resolver/EnclosingElement.java View 1 chunk +1 line, -1 line 0 comments Download
M compiler/java/com/google/dart/compiler/resolver/FieldElementImplementation.java View 2 chunks +6 lines, -6 lines 0 comments Download
M compiler/java/com/google/dart/compiler/resolver/FieldNodeElement.java View 1 chunk +4 lines, -0 lines 0 comments Download
M compiler/java/com/google/dart/compiler/resolver/MemberBuilder.java View 6 chunks +10 lines, -10 lines 0 comments Download
M compiler/java/com/google/dart/compiler/resolver/MethodElementImplementation.java View 1 chunk +1 line, -1 line 0 comments Download
A + compiler/java/com/google/dart/compiler/resolver/MethodNodeElement.java View 1 chunk +5 lines, -6 lines 2 comments Download
M compiler/java/com/google/dart/compiler/resolver/Resolver.java View 8 chunks +13 lines, -15 lines 0 comments Download
M compiler/javatests/com/google/dart/compiler/resolver/ElementMapTest.java View 1 chunk +1 line, -1 line 0 comments Download
M compiler/javatests/com/google/dart/compiler/type/TypeTestCase.java View 2 chunks +2 lines, -2 lines 0 comments Download
M editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/completion/CompletionEngine.java View 1 chunk +1 line, -1 line 0 comments Download
M editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/utilities/bindings/BindingUtils.java View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 3 (0 generated)
scheglov
8 years, 9 months ago (2012-03-14 14:43:20 UTC) #1
zundel
lgtm, only nits https://chromiumcodereview.appspot.com/9700019/diff/1/compiler/java/com/google/dart/compiler/resolver/ConstructorNodeElement.java File compiler/java/com/google/dart/compiler/resolver/ConstructorNodeElement.java (right): https://chromiumcodereview.appspot.com/9700019/diff/1/compiler/java/com/google/dart/compiler/resolver/ConstructorNodeElement.java#newcode9 compiler/java/com/google/dart/compiler/resolver/ConstructorNodeElement.java:9: * Extension of {@link MethodElement} which ...
8 years, 9 months ago (2012-03-14 14:57:27 UTC) #2
scheglov
8 years, 9 months ago (2012-03-14 15:20:50 UTC) #3
https://chromiumcodereview.appspot.com/9700019/diff/1/compiler/java/com/googl...
File compiler/java/com/google/dart/compiler/resolver/ConstructorNodeElement.java
(right):

https://chromiumcodereview.appspot.com/9700019/diff/1/compiler/java/com/googl...
compiler/java/com/google/dart/compiler/resolver/ConstructorNodeElement.java:9: *
Extension of {@link MethodElement} which is base of {@link DartNode}.
On 2012/03/14 14:57:27, zundel wrote:
> (Did you mean {@link ConstructorElement} ? this seems redundant with the class
> declaration 

Done.

https://chromiumcodereview.appspot.com/9700019/diff/1/compiler/java/com/googl...
File compiler/java/com/google/dart/compiler/resolver/MethodNodeElement.java
(right):

https://chromiumcodereview.appspot.com/9700019/diff/1/compiler/java/com/googl...
compiler/java/com/google/dart/compiler/resolver/MethodNodeElement.java:9: *
Extension of {@link MethodElement} which is base of {@link DartNode}.
On 2012/03/14 14:57:27, zundel wrote:
> this comment seems redundant with the class declaration.

I still prefer to have some comment, just because everything should have
comment.

Powered by Google App Engine
This is Rietveld 408576698