本文整理了Java中org.mozilla.javascript.Parser.popScope()
方法的一些代码示例,展示了Parser.popScope()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Parser.popScope()
方法的具体详情如下:
包路径:org.mozilla.javascript.Parser
类名称:Parser
方法名:popScope
暂无
代码示例来源:origin: ro.isdc.wro4j/rhino
private void exitLoop() {
Loop loop = loopSet.remove(loopSet.size() - 1);
loopAndSwitchSet.remove(loopAndSwitchSet.size() - 1);
if (loop.getParent() != null) { // see comment in enterLoop
loop.setRelative(loop.getParent().getPosition());
}
popScope();
}
代码示例来源:origin: rhino/js
private void exitLoop(boolean doPopScope)
{
loopSet.pop();
loopAndSwitchSet.pop();
if (doPopScope) {
popScope();
}
}
代码示例来源:origin: geogebra/geogebra
private void exitLoop() {
Loop loop = loopSet.remove(loopSet.size() - 1);
loopAndSwitchSet.remove(loopAndSwitchSet.size() - 1);
if (loop.getParent() != null) { // see comment in enterLoop
loop.setRelative(loop.getParent().getPosition());
}
popScope();
}
代码示例来源:origin: com.github.tntim96/rhino
private void exitLoop() {
Loop loop = loopSet.remove(loopSet.size() - 1);
loopAndSwitchSet.remove(loopAndSwitchSet.size() - 1);
if (loop.getParent() != null) { // see comment in enterLoop
loop.setRelative(loop.getParent().getPosition());
}
popScope();
}
代码示例来源:origin: io.apigee/rhino
private void exitLoop() {
Loop loop = loopSet.remove(loopSet.size() - 1);
loopAndSwitchSet.remove(loopAndSwitchSet.size() - 1);
if (loop.getParent() != null) { // see comment in enterLoop
loop.setRelative(loop.getParent().getPosition());
}
popScope();
}
代码示例来源:origin: com.github.tntim96/rhino
private AstNode block()
throws IOException
{
if (currentToken != Token.LC) codeBug();
consumeToken();
int pos = ts.tokenBeg;
Scope block = new Scope(pos);
block.setLineno(ts.lineno);
pushScope(block);
try {
statements(block);
mustMatchToken(Token.RC, "msg.no.brace.block");
block.setLength(ts.tokenEnd - pos);
return block;
} finally {
popScope();
}
}
代码示例来源:origin: geogebra/geogebra
private AstNode block()
throws IOException
{
if (currentToken != Token.LC) codeBug();
consumeToken();
int pos = ts.tokenBeg;
Scope block = new Scope(pos);
block.setLineno(ts.lineno);
pushScope(block);
try {
statements(block);
mustMatchToken(Token.RC, "msg.no.brace.block");
block.setLength(ts.tokenEnd - pos);
return block;
} finally {
popScope();
}
}
代码示例来源:origin: io.apigee/rhino
private AstNode block()
throws IOException
{
if (currentToken != Token.LC) codeBug();
consumeToken();
int pos = ts.tokenBeg;
Scope block = new Scope(pos);
block.setLineno(ts.lineno);
pushScope(block);
try {
statements(block);
mustMatchToken(Token.RC, "msg.no.brace.block");
block.setLength(ts.tokenEnd - pos);
return block;
} finally {
popScope();
}
}
代码示例来源:origin: ro.isdc.wro4j/rhino
private AstNode block()
throws IOException
{
if (currentToken != Token.LC) codeBug();
consumeToken();
int pos = ts.tokenBeg;
Scope block = new Scope(pos);
block.setLineno(ts.lineno);
pushScope(block);
try {
statements(block);
mustMatchToken(Token.RC, "msg.no.brace.block");
block.setLength(ts.tokenEnd - pos);
return block;
} finally {
popScope();
}
}
代码示例来源:origin: com.github.tntim96/rhino
defineSymbol(Token.LET, tempName, true);
} finally {
popScope();
代码示例来源:origin: geogebra/geogebra
defineSymbol(Token.LET, tempName, true);
} finally {
popScope();
代码示例来源:origin: io.apigee/rhino
defineSymbol(Token.LET, tempName, true);
} finally {
popScope();
代码示例来源:origin: rhino/js
popScope();
代码示例来源:origin: geogebra/geogebra
return pn;
} finally {
popScope();
代码示例来源:origin: com.github.tntim96/rhino
return pn;
} finally {
popScope();
代码示例来源:origin: io.apigee/rhino
return pn;
} finally {
popScope();
代码示例来源:origin: io.apigee/rhino
popScope();
代码示例来源:origin: ro.isdc.wro4j/rhino
popScope();
代码示例来源:origin: com.github.tntim96/rhino
popScope();
代码示例来源:origin: geogebra/geogebra
popScope();
内容来源于网络,如有侵权,请联系作者删除!