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

Issue 10870089: Issue 4681. Resolve @metadata for all possible targets (Closed)

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

Description

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+60 lines, -8 lines) Patch
M compiler/java/com/google/dart/compiler/ast/ASTVisitor.java View 3 chunks +7 lines, -3 lines 0 comments Download
M compiler/java/com/google/dart/compiler/resolver/Resolver.java View 9 chunks +27 lines, -1 line 2 comments Download
M compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerCompilerTest.java View 5 chunks +26 lines, -4 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
scheglov
8 years, 4 months ago (2012-08-25 00:28:57 UTC) #1
Brian Wilkerson
LGTM, but I think metadata ought to be treated like any other child node. https://chromiumcodereview.appspot.com/10870089/diff/1/compiler/java/com/google/dart/compiler/resolver/Resolver.java ...
8 years, 4 months ago (2012-08-25 02:12:55 UTC) #2
scheglov
8 years, 4 months ago (2012-08-25 03:41:32 UTC) #3
https://chromiumcodereview.appspot.com/10870089/diff/1/compiler/java/com/goog...
File compiler/java/com/google/dart/compiler/resolver/Resolver.java (right):

https://chromiumcodereview.appspot.com/10870089/diff/1/compiler/java/com/goog...
compiler/java/com/google/dart/compiler/resolver/Resolver.java:240:
alias.getMetadata().accept(this);
On 2012/08/25 02:12:55, Brian Wilkerson wrote:
> Shouldn't this be added to the visitChildren method on nodes with metadata?

Unfortunately Resolver has its own visiting implementation, specific for each
type of node. As you can see, we don't call super() here, we manually visit each
child. So, we have to do the same with metadata.

Powered by Google App Engine
This is Rietveld 408576698