ericmckean / traceur-compiler

Automatically exported from code.google.com/p/traceur-compiler
Apache License 2.0
0 stars 0 forks source link

Clone a ParseTree #184

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
CloneTreeTransformer to support:

CloneTreeTransformer.cloneTree = function(tree) {
  return new CloneTreeTransformer().transformAny(tree);
};

Any ideas on how to test this? Ideally we'd have some code that used every 
feature, compile it, clone it, and compare the output of the original and the 
clone.

Original issue reported on code.google.com by johnjbar...@chromium.org on 19 Dec 2012 at 7:19

GoogleCodeExporter commented 9 years ago
Is the problem about finding trees that use all the different parse trees? The 
feature test script should be testing all kinds of trees we use.

Original comment by arv@chromium.org on 19 Dec 2012 at 8:14

GoogleCodeExporter commented 9 years ago
Thanks exactly what I needed.

https://codereview.appspot.com/6968048/

Original comment by johnjbar...@chromium.org on 19 Dec 2012 at 11:15

GoogleCodeExporter commented 9 years ago
https://code.google.com/p/traceur-compiler/source/detail?r=9912152b790e00334deff
0cec8524054ed5326bb

Original comment by johnjbar...@chromium.org on 23 Dec 2012 at 3:01