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

Issue 11316019: Move ParameterKind so it can be used in the element model (Closed)

Created:
8 years, 1 month ago by Brian Wilkerson
Modified:
8 years, 1 month ago
Reviewers:
messick, scheglov
CC:
reviews_dartlang.org, danrubel, pquitslund
Visibility:
Public.

Description

Move ParameterKind so it can be used in the element model Committed: https://code.google.com/p/dart/source/detail?r=14972

Patch Set 1 #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+90 lines, -67 lines) Patch
M editor/tools/plugins/com.google.dart.engine/META-INF/MANIFEST.MF View 1 chunk +1 line, -0 lines 2 comments Download
M editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/ast/DefaultFormalParameter.java View 1 chunk +1 line, -0 lines 0 comments Download
M editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/ast/FormalParameter.java View 2 chunks +2 lines, -34 lines 2 comments Download
M editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/ast/NormalFormalParameter.java View 1 chunk +2 lines, -0 lines 0 comments Download
M editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/ast/visitor/ToSourceVisitor.java View 2 chunks +2 lines, -1 line 0 comments Download
M editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/parser/Parser.java View 6 chunks +12 lines, -11 lines 0 comments Download
A editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/utilities/dart/ParameterKind.java View 1 chunk +48 lines, -0 lines 0 comments Download
M editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/ast/ASTFactory.java View 3 chunks +3 lines, -2 lines 0 comments Download
M editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/parser/SimpleParserTest.java View 11 chunks +19 lines, -19 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Brian Wilkerson
8 years, 1 month ago (2012-11-15 17:55:31 UTC) #1
messick
lgtm http://codereview.chromium.org/11316019/diff/1/editor/tools/plugins/com.google.dart.engine/META-INF/MANIFEST.MF File editor/tools/plugins/com.google.dart.engine/META-INF/MANIFEST.MF (right): http://codereview.chromium.org/11316019/diff/1/editor/tools/plugins/com.google.dart.engine/META-INF/MANIFEST.MF#newcode34 editor/tools/plugins/com.google.dart.engine/META-INF/MANIFEST.MF:34: com.google.dart.engine.utilities.dart, I've never been a fan of repeating ...
8 years, 1 month ago (2012-11-15 18:00:18 UTC) #2
Brian Wilkerson
http://codereview.chromium.org/11316019/diff/1/editor/tools/plugins/com.google.dart.engine/META-INF/MANIFEST.MF File editor/tools/plugins/com.google.dart.engine/META-INF/MANIFEST.MF (right): http://codereview.chromium.org/11316019/diff/1/editor/tools/plugins/com.google.dart.engine/META-INF/MANIFEST.MF#newcode34 editor/tools/plugins/com.google.dart.engine/META-INF/MANIFEST.MF:34: com.google.dart.engine.utilities.dart, > I've never been a fan of repeating ...
8 years, 1 month ago (2012-11-15 18:21:13 UTC) #3
scheglov
lgtm http://codereview.chromium.org/11316019/diff/1/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/ast/FormalParameter.java File editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/ast/FormalParameter.java (right): http://codereview.chromium.org/11316019/diff/1/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/ast/FormalParameter.java#newcode16 editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/ast/FormalParameter.java:16: import com.google.dart.engine.utilities.dart.ParameterKind; Hm... Can we keep all AST ...
8 years, 1 month ago (2012-11-16 03:25:25 UTC) #4
Brian Wilkerson
8 years, 1 month ago (2012-11-16 15:55:02 UTC) #5
http://codereview.chromium.org/11316019/diff/1/editor/tools/plugins/com.googl...
File
editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/ast/FormalParameter.java
(right):

http://codereview.chromium.org/11316019/diff/1/editor/tools/plugins/com.googl...
editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/ast/FormalParameter.java:16:
import com.google.dart.engine.utilities.dart.ParameterKind;
> Can we keep all AST parts in "ast" package and Element parts in "element"
> package?

Not without duplicating code, which I am loath to do.

> Leave ParameterKind in "ast" package, or create new ParameterKind in "element"
> package if we don't want to have references from "ast" to "element" or from
> "element" to "ast".

Steve and I discussed this at length. I'm open to changing the decision, but I
don't really like any of the alternatives: duplicating the code makes it easy
for the code to get out of sync (and yes, I expect this to need to be updated),
and there is no single choice of package that really feels right. I only put it
where it is because it seemed like the least bad of all the choices I could
think of.

Powered by Google App Engine
This is Rietveld 408576698