Adapt to new signature of TokenStream constructor again *sigh*
This commit is contained in:
parent
ebb39d0d9e
commit
1b08ced5c5
1 changed files with 4 additions and 2 deletions
|
@ -22,6 +22,7 @@ import java.util.Vector;
|
||||||
import org.mozilla.javascript.TokenStream;
|
import org.mozilla.javascript.TokenStream;
|
||||||
import org.mozilla.javascript.Token;
|
import org.mozilla.javascript.Token;
|
||||||
import org.mozilla.javascript.Context;
|
import org.mozilla.javascript.Context;
|
||||||
|
import org.mozilla.javascript.CompilerEnvirons;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
|
@ -157,8 +158,9 @@ public class DocFunction extends DocFileElement {
|
||||||
}
|
}
|
||||||
String name = f.getName();
|
String name = f.getName();
|
||||||
int line = 0;
|
int line = 0;
|
||||||
return new TokenStream (Context.getCurrentContext(), reader, null, false, name,
|
CompilerEnvirons compilerEnv = new CompilerEnvirons();
|
||||||
line, null);
|
compilerEnv.initFromContext(Context.getCurrentContext(), null);
|
||||||
|
return new TokenStream (compilerEnv, reader, null, name, line);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue