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

Issue 6709068: Simplify destructuring for single assignment and identifier cases. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 7 months ago by usrbincc
Modified:
13 years, 7 months ago
Reviewers:
slightlylate, arv
CC:
traceur-compiler-reviews_googlegroups.com
Base URL:
https://code.google.com/p/traceur-compiler/@master
Visibility:
Public.

Description

Simplify destructuring for single assignment and identifier cases. Also, tries not to use parens if not necessary. BUG=http://code.google.com/p/traceur-compiler/issues/detail?id=141 TEST=test/feature/Destructuring/Simplify.js

Patch Set 1 #

Total comments: 4

Patch Set 2 : Fix formatting issues, remove identifier optimization. #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+212 lines, -11 lines) Patch
M src/codegeneration/DestructuringTransformer.js View 1 3 chunks +50 lines, -11 lines 2 comments Download
A test/feature/Destructuring/Simplify.js View 1 chunk +162 lines, -0 lines 3 comments Download

Messages

Total messages: 5
usrbincc
I have some cases that will probably never be found in a destructuring, and I ...
13 years, 7 months ago (2012-10-22 18:57:03 UTC) #1
arv
https://codereview.appspot.com/6709068/diff/1/src/codegeneration/DestructuringTransformer.js File src/codegeneration/DestructuringTransformer.js (right): https://codereview.appspot.com/6709068/diff/1/src/codegeneration/DestructuringTransformer.js#newcode242 src/codegeneration/DestructuringTransformer.js:242: var tempIdent_assign = createAssignmentExpression(tempIdent, rvalue); no underscores... tempIdentAsign https://codereview.appspot.com/6709068/diff/1/src/codegeneration/DestructuringTransformer.js#newcode501 ...
13 years, 7 months ago (2012-10-22 20:34:05 UTC) #2
usrbincc
I didn't think about the global object's getters. No wonder it's so hard to statically ...
13 years, 7 months ago (2012-10-22 20:59:00 UTC) #3
arv
LGTM I'll clean up the style violations and commit this for you https://codereview.appspot.com/6709068/diff/4/src/codegeneration/DestructuringTransformer.js File src/codegeneration/DestructuringTransformer.js ...
13 years, 7 months ago (2012-10-23 14:41:25 UTC) #4
arv
13 years, 7 months ago (2012-10-23 14:57:14 UTC) #5

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