Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(708)

Issue 5066041: Fix issue where default and rest params where dropped on the floor by the ClassTransformer. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 8 months ago by arv
Modified:
12 years, 8 months ago
Reviewers:
slightlyoff, cburrows
CC:
traceur-compiler-reviews_google.com
Base URL:
https://traceur-compiler.googlecode.com/svn/trunk
Visibility:
Public.

Description

Fix issue where default and rest params where dropped on the floor by the ClassTransformer. BUG=http://code.google.com/p/traceur-compiler/issues/detail?id=39 TEST=test/feature/Classes/{Optional,Rest}Params.js Committed: http://code.google.com/p/traceur-compiler/source/detail?r=317

Patch Set 1 #

Patch Set 2 : Fix line endings #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+50 lines, -26 lines) Patch
M src/codegeneration/ClassTransformer.js View 5 chunks +7 lines, -5 lines 4 comments Download
M src/codegeneration/ParseTreeFactory.js View 2 chunks +0 lines, -21 lines 0 comments Download
A test/feature/Classes/OptionalParams.js View 1 chunk +23 lines, -0 lines 0 comments Download
A test/feature/Classes/RestParams.js View 1 chunk +18 lines, -0 lines 0 comments Download
M test/feature/feature_test.html View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 5
arv
12 years, 8 months ago (2011-09-19 05:14:26 UTC) #1
cburrows
I think the pattern is to use a method from ParseTreeFactory and not the constructor, ...
12 years, 8 months ago (2011-09-19 05:45:38 UTC) #2
arv
https://codereview.appspot.com/5066041/diff/1001/src/codegeneration/ClassTransformer.js File src/codegeneration/ClassTransformer.js (right): https://codereview.appspot.com/5066041/diff/1001/src/codegeneration/ClassTransformer.js#newcode287 src/codegeneration/ClassTransformer.js:287: new FormalParameterList(null, On 2011/09/19 05:45:38, cburrows wrote: > createParameterList(set.tree.parameter)? ...
12 years, 8 months ago (2011-09-19 16:27:16 UTC) #3
cburrows
https://codereview.appspot.com/5066041/diff/1001/src/codegeneration/ClassTransformer.js File src/codegeneration/ClassTransformer.js (right): https://codereview.appspot.com/5066041/diff/1001/src/codegeneration/ClassTransformer.js#newcode287 src/codegeneration/ClassTransformer.js:287: new FormalParameterList(null, On 2011/09/19 16:27:17, arv1 wrote: > On ...
12 years, 8 months ago (2011-09-19 16:41:16 UTC) #4
arv
12 years, 8 months ago (2011-09-19 16:54:55 UTC) #5
https://codereview.appspot.com/5066041/diff/1001/src/codegeneration/ClassTran...
File src/codegeneration/ClassTransformer.js (right):

https://codereview.appspot.com/5066041/diff/1001/src/codegeneration/ClassTran...
src/codegeneration/ClassTransformer.js:287: new FormalParameterList(null,
On 2011/09/19 16:41:16, cburrows wrote:
> On 2011/09/19 16:27:17, arv1 wrote:
> > On 2011/09/19 05:45:38, cburrows wrote:
> > > createParameterList(set.tree.parameter)?
> > 
> > The old one was busted and this was the only caller. I've also been moving
> away
> > from creating createFoo functions where the gain is minimal.
> 
> createParameterList (not createParameter, which you deleted) does what you're
> doing here.

It sure does. I'll reuse that instead. Thanks.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b