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

Issue 6711049: Remove the initial empty string from quasi-literals, if possible. (Closed)

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

Description

Remove the initial empty string from quasi-literals, if possible. `${x} + ${y}` ==> (x + " + " + y) `${x}${y}++` ==> ("" + x + y + "++") "Default template string can be simplified" BUG=http://code.google.com/p/traceur-compiler/issues/detail?id=133

Patch Set 1 #

Patch Set 2 : Clean up the control flow a bit. #

Total comments: 2

Patch Set 3 : Fix formatting, add more tests. #

Patch Set 4 : Merge in master again because the tree is changing a lot. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+37 lines, -3 lines) Patch
M src/codegeneration/QuasiLiteralTransformer.js View 1 2 3 2 chunks +6 lines, -3 lines 0 comments Download
M test/feature/QuasiLiterals/Default.js View 1 2 1 chunk +31 lines, -0 lines 0 comments Download

Messages

Total messages: 6
usrbincc
For convenience: #--cut-- build/build cat > quasi-133.js <<END `${x} + ${y}`; // (x + " ...
13 years, 8 months ago (2012-10-17 18:04:06 UTC) #1
arv
I think this one can use some more tests. var x = 1, y = ...
13 years, 8 months ago (2012-10-17 18:55:10 UTC) #2
arv
I forgot to say that this is awesome. I didn't realize we could also remove ...
13 years, 8 months ago (2012-10-17 19:08:14 UTC) #3
slightlylate
Love this. Would love to approve this once it's rebased and the nits are fixed.
13 years, 8 months ago (2012-10-18 10:53:50 UTC) #4
usrbincc
Sorry for taking so long to pop the stack to this point. I can't take ...
13 years, 8 months ago (2012-10-22 18:38:30 UTC) #5
arv
13 years, 8 months ago (2012-10-22 20:24:09 UTC) #6

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