File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
gen.js/src/main/java/com/github/gumtreediff/gen/js Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change 24
24
import com .github .gumtreediff .gen .SyntaxException ;
25
25
import com .github .gumtreediff .gen .TreeGenerator ;
26
26
import com .github .gumtreediff .tree .TreeContext ;
27
- import org .mozilla .javascript .CompilerEnvirons ;
28
- import org .mozilla .javascript .Context ;
29
- import org .mozilla .javascript .EvaluatorException ;
30
- import org .mozilla .javascript .Parser ;
27
+ import org .mozilla .javascript .*;
31
28
import org .mozilla .javascript .ast .AstRoot ;
32
29
33
30
import java .io .IOException ;
@@ -43,7 +40,7 @@ public TreeContext generate(Reader r) throws IOException {
43
40
env .setRecordingComments (true );
44
41
Parser p = new Parser (env );
45
42
try {
46
- AstRoot root = p .parse (r , null , 1 );
43
+ AstRoot root = p .parse (Kit . readReader ( r ) , null , 1 );
47
44
RhinoTreeVisitor visitor = new RhinoTreeVisitor (root );
48
45
root .visitAll (visitor );
49
46
return visitor .getTreeContext ();
You can’t perform that action at this time.
0 commit comments