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

Issue 9921015: Visit name of DartDeclaration, set Element for DartIdentifier (Closed)

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

Description

Visit name of DartDeclaration, set Element for DartIdentifier After this we could remove some of the workarounds in Editor. R=zundel@google.com,messick@google.com BUG= TEST= Committed: https://code.google.com/p/dart/source/detail?r=6037

Patch Set 1 #

Total comments: 4

Patch Set 2 : Visit more name-like nodes, tweaks for review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+287 lines, -147 lines) Patch
M compiler/java/com/google/dart/compiler/LibraryDepsVisitor.java View 1 chunk +7 lines, -6 lines 0 comments Download
M compiler/java/com/google/dart/compiler/ast/DartClass.java View 1 chunk +1 line, -0 lines 0 comments Download
M compiler/java/com/google/dart/compiler/ast/DartClassMember.java View 1 chunk +0 lines, -4 lines 0 comments Download
M compiler/java/com/google/dart/compiler/ast/DartDeclaration.java View 1 chunk +7 lines, -0 lines 0 comments Download
M compiler/java/com/google/dart/compiler/ast/DartFunctionExpression.java View 1 1 chunk +3 lines, -0 lines 0 comments Download
M compiler/java/com/google/dart/compiler/ast/DartFunctionTypeAlias.java View 1 1 chunk +1 line, -0 lines 0 comments Download
M compiler/java/com/google/dart/compiler/ast/DartLabel.java View 1 1 chunk +1 line, -0 lines 0 comments Download
M compiler/java/com/google/dart/compiler/ast/DartParameter.java View 1 chunk +1 line, -0 lines 0 comments Download
M compiler/java/com/google/dart/compiler/ast/DartTypeParameter.java View 3 chunks +7 lines, -0 lines 0 comments Download
M compiler/java/com/google/dart/compiler/ast/DartVariable.java View 1 chunk +1 line, -1 line 0 comments Download
M compiler/java/com/google/dart/compiler/resolver/CompileTimeConstantAnalyzer.java View 1 3 chunks +9 lines, -3 lines 0 comments Download
M compiler/java/com/google/dart/compiler/resolver/Elements.java View 2 chunks +2 lines, -2 lines 0 comments Download
M compiler/java/com/google/dart/compiler/resolver/MemberBuilder.java View 4 chunks +4 lines, -0 lines 0 comments Download
M compiler/java/com/google/dart/compiler/resolver/ResolveVisitor.java View 1 chunk +1 line, -0 lines 0 comments Download
M compiler/java/com/google/dart/compiler/resolver/Resolver.java View 1 5 chunks +9 lines, -1 line 0 comments Download
M compiler/java/com/google/dart/compiler/resolver/TopLevelElementBuilder.java View 1 1 chunk +1 line, -0 lines 0 comments Download
M compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java View 1 chunk +3 lines, -0 lines 0 comments Download
M compiler/javatests/com/google/dart/compiler/resolver/NegativeResolverTest.java View 1 1 chunk +1 line, -1 line 0 comments Download
M compiler/javatests/com/google/dart/compiler/resolver/ResolverCompilerTest.java View 1 2 chunks +139 lines, -0 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 +4 lines, -0 lines 0 comments Download
M editor/tools/plugins/com.google.dart.tools.core_test/src/com/google/dart/tools/core/utilities/ast/DartElementLocatorTest.java View 3 chunks +79 lines, -115 lines 0 comments Download
M editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/internal/corext/refactoring/rename/RenameLocalVariableProcessor.java View 5 chunks +6 lines, -14 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
scheglov
8 years, 8 months ago (2012-03-29 15:56:44 UTC) #1
messick
LGTM but I did not review the resolver changes; that's Eric's realm. Might be good ...
8 years, 8 months ago (2012-03-29 16:15:23 UTC) #2
Brian Wilkerson
LGTM. Does this negate the need for ChildVisitor? (If so we can remove uses incrementally ...
8 years, 8 months ago (2012-03-29 21:22:31 UTC) #3
zundel
lgtm, with a couple of questions https://chromiumcodereview.appspot.com/9921015/diff/1/compiler/java/com/google/dart/compiler/resolver/CompileTimeConstantAnalyzer.java File compiler/java/com/google/dart/compiler/resolver/CompileTimeConstantAnalyzer.java (right): https://chromiumcodereview.appspot.com/9921015/diff/1/compiler/java/com/google/dart/compiler/resolver/CompileTimeConstantAnalyzer.java#newcode314 compiler/java/com/google/dart/compiler/resolver/CompileTimeConstantAnalyzer.java:314: if (x.getParent() instanceof ...
8 years, 8 months ago (2012-03-29 23:20:06 UTC) #4
scheglov
https://chromiumcodereview.appspot.com/9921015/diff/1/compiler/java/com/google/dart/compiler/resolver/CompileTimeConstantAnalyzer.java File compiler/java/com/google/dart/compiler/resolver/CompileTimeConstantAnalyzer.java (right): https://chromiumcodereview.appspot.com/9921015/diff/1/compiler/java/com/google/dart/compiler/resolver/CompileTimeConstantAnalyzer.java#newcode314 compiler/java/com/google/dart/compiler/resolver/CompileTimeConstantAnalyzer.java:314: if (x.getParent() instanceof DartDeclaration<?> On 2012/03/29 23:20:06, zundel wrote: ...
8 years, 8 months ago (2012-03-30 01:25:26 UTC) #5
scheglov
@zundel PTAL
8 years, 8 months ago (2012-03-30 01:27:54 UTC) #6
zundel
8 years, 8 months ago (2012-03-30 02:56:39 UTC) #7
lgtm

Powered by Google App Engine
This is Rietveld 408576698