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

Issue 10984081: First step toward fixing cascades (issue 5062) (Closed)

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

Description

First step toward fixing cascades (issue 5062) Committed: https://code.google.com/p/dart/source/detail?r=13023

Patch Set 1 #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+193 lines, -22 lines) Patch
M compiler/java/com/google/dart/compiler/LibraryDepsVisitor.java View 1 chunk +3 lines, -0 lines 0 comments Download
M compiler/java/com/google/dart/compiler/ast/ASTVisitor.java View 1 chunk +4 lines, -0 lines 0 comments Download
M compiler/java/com/google/dart/compiler/ast/DartArrayAccess.java View 1 chunk +14 lines, -0 lines 0 comments Download
A compiler/java/com/google/dart/compiler/ast/DartCascadeExpression.java View 1 chunk +85 lines, -0 lines 2 comments Download
M compiler/java/com/google/dart/compiler/ast/DartFunctionObjectInvocation.java View 2 chunks +25 lines, -1 line 4 comments Download
M compiler/java/com/google/dart/compiler/ast/DartMethodInvocation.java View 1 chunk +14 lines, -0 lines 0 comments Download
M compiler/java/com/google/dart/compiler/ast/DartPropertyAccess.java View 1 chunk +14 lines, -0 lines 0 comments Download
M compiler/java/com/google/dart/compiler/ast/DartToSourceVisitor.java View 2 chunks +13 lines, -3 lines 0 comments Download
M compiler/java/com/google/dart/compiler/parser/DartParser.java View 4 chunks +10 lines, -9 lines 0 comments Download
M compiler/java/com/google/dart/compiler/resolver/Resolver.java View 5 chunks +8 lines, -6 lines 0 comments Download
M compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java View 1 chunk +1 line, -1 line 0 comments Download
M tests/language/language.status View 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
Brian Wilkerson
This doesn't fix 5146, but I wanted to get your feedback before going further.
8 years, 2 months ago (2012-09-27 22:25:02 UTC) #1
scheglov
lgtm http://codereview.chromium.org/10984081/diff/1/compiler/java/com/google/dart/compiler/ast/DartCascadeExpression.java File compiler/java/com/google/dart/compiler/ast/DartCascadeExpression.java (right): http://codereview.chromium.org/10984081/diff/1/compiler/java/com/google/dart/compiler/ast/DartCascadeExpression.java#newcode35 compiler/java/com/google/dart/compiler/ast/DartCascadeExpression.java:35: private NodeList<DartExpression> cascadeSections = new NodeList<DartExpression>(this); Just "sections"? ...
8 years, 2 months ago (2012-09-27 22:38:43 UTC) #2
Brian Wilkerson
8 years, 2 months ago (2012-09-28 15:54:39 UTC) #3
http://codereview.chromium.org/10984081/diff/1/compiler/java/com/google/dart/...
File compiler/java/com/google/dart/compiler/ast/DartCascadeExpression.java
(right):

http://codereview.chromium.org/10984081/diff/1/compiler/java/com/google/dart/...
compiler/java/com/google/dart/compiler/ast/DartCascadeExpression.java:35:
private NodeList<DartExpression> cascadeSections = new
NodeList<DartExpression>(this);
> Just "sections"?

I thought about that, but it seemed kind of generic. I really don't like either
name and think we should have better terminology, but that's how the grammar
refers to them. I can change it if you feel strongly about it.

http://codereview.chromium.org/10984081/diff/1/compiler/java/com/google/dart/...
File
compiler/java/com/google/dart/compiler/ast/DartFunctionObjectInvocation.java
(right):

http://codereview.chromium.org/10984081/diff/1/compiler/java/com/google/dart/...
compiler/java/com/google/dart/compiler/ast/DartFunctionObjectInvocation.java:15:
private boolean isCascade;
> Can you give example of cascade here?

Not off the top of my head. I'll double check and make sure that this is
necessary and back it out in a later CL if it isn't.

http://codereview.chromium.org/10984081/diff/1/compiler/java/com/google/dart/...
compiler/java/com/google/dart/compiler/ast/DartFunctionObjectInvocation.java:33:
public DartExpression getRealTarget() {
> We could put (at least implementation) into ASTNodes.

Let's discuss this off-line.

Powered by Google App Engine
This is Rietveld 408576698