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

Issue 10413041: Propagate variable type in TypeAnalyzer (Closed)

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

Description

Propagate variable type in TypeAnalyzer Don't re-resolve in CompletionEngine to keep propagated types. R=brianwilkerson@google.com,messick@google.com BUG= TEST= Committed: https://code.google.com/p/dart/source/detail?r=7838

Patch Set 1 #

Total comments: 6

Patch Set 2 : Fixes for review comments #

Messages

Total messages: 6 (0 generated)
scheglov
8 years, 7 months ago (2012-05-21 22:29:59 UTC) #1
Brian Wilkerson
LGTM https://chromiumcodereview.appspot.com/10413041/diff/1/compiler/java/com/google/dart/compiler/ast/DartNode.java File compiler/java/com/google/dart/compiler/ast/DartNode.java (right): https://chromiumcodereview.appspot.com/10413041/diff/1/compiler/java/com/google/dart/compiler/ast/DartNode.java#newcode1 compiler/java/com/google/dart/compiler/ast/DartNode.java:1: // Copyright (c) 2011, the Dart project authors. ...
8 years, 7 months ago (2012-05-21 23:12:14 UTC) #2
messick
LGTM I like this change because it work globally instead of the purely local analysis ...
8 years, 7 months ago (2012-05-21 23:20:50 UTC) #3
Brian Wilkerson
https://chromiumcodereview.appspot.com/10413041/diff/1/compiler/java/com/google/dart/compiler/resolver/Resolver.java File compiler/java/com/google/dart/compiler/resolver/Resolver.java (right): https://chromiumcodereview.appspot.com/10413041/diff/1/compiler/java/com/google/dart/compiler/resolver/Resolver.java#newcode721 compiler/java/com/google/dart/compiler/resolver/Resolver.java:721: VariableElement variableElement = resolveVariable(variable, node.getModifiers()); > I found this ...
8 years, 7 months ago (2012-05-21 23:23:48 UTC) #4
scheglov
> I like this change because it work globally instead of the purely local analysis ...
8 years, 7 months ago (2012-05-22 00:59:10 UTC) #5
scheglov
8 years, 7 months ago (2012-05-22 00:59:32 UTC) #6
https://chromiumcodereview.appspot.com/10413041/diff/1/compiler/java/com/goog...
File compiler/java/com/google/dart/compiler/ast/DartNode.java (right):

https://chromiumcodereview.appspot.com/10413041/diff/1/compiler/java/com/goog...
compiler/java/com/google/dart/compiler/ast/DartNode.java:1: // Copyright (c)
2011, the Dart project authors.  Please see the AUTHORS file
On 2012/05/21 23:12:14, Brian Wilkerson wrote:
> nit: copyright year

Done.

https://chromiumcodereview.appspot.com/10413041/diff/1/compiler/java/com/goog...
File compiler/java/com/google/dart/compiler/resolver/Resolver.java (right):

https://chromiumcodereview.appspot.com/10413041/diff/1/compiler/java/com/goog...
compiler/java/com/google/dart/compiler/resolver/Resolver.java:721:
VariableElement variableElement = resolveVariable(variable,
node.getModifiers());
Yes, this is was part of initial hackish implementation, which I again forgot to
rollback. Fixed now.

Powered by Google App Engine
This is Rietveld 408576698