org.mozilla.javascript.Parser.popScope()方法的使用及代码示例

x33g5p2x  于2022-01-26 转载在 JavaScript  
字(3.5k)|赞(0)|评价(0)|浏览(235)

本文整理了Java中org.mozilla.javascript.Parser.popScope()方法的一些代码示例,展示了Parser.popScope()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Parser.popScope()方法的具体详情如下:
包路径:org.mozilla.javascript.Parser
类名称:Parser
方法名:popScope

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();

相关文章

Parser类方法