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

x33g5p2x  于2022-01-25 转载在 JavaScript  
字(3.1k)|赞(0)|评价(0)|浏览(127)

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

Node.resetTargets_r介绍

暂无

代码示例

代码示例来源:origin: geogebra/geogebra

private void resetTargets_r()
{
  if (type == Token.TARGET || type == Token.YIELD) {
    labelId(-1);
  }
  Node child = first;
  while (child != null) {
    child.resetTargets_r();
    child = child.next;
  }
}

代码示例来源:origin: ro.isdc.wro4j/rhino

private void resetTargets_r()
{
  if (type == Token.TARGET || type == Token.YIELD) {
    labelId(-1);
  }
  Node child = first;
  while (child != null) {
    child.resetTargets_r();
    child = child.next;
  }
}

代码示例来源:origin: io.apigee/rhino

private void resetTargets_r()
{
  if (type == Token.TARGET || type == Token.YIELD) {
    labelId(-1);
  }
  Node child = first;
  while (child != null) {
    child.resetTargets_r();
    child = child.next;
  }
}

代码示例来源:origin: com.github.tntim96/rhino

private void resetTargets_r()
{
  if (type == Token.TARGET || type == Token.YIELD) {
    labelId(-1);
  }
  Node child = first;
  while (child != null) {
    child.resetTargets_r();
    child = child.next;
  }
}

代码示例来源:origin: ro.isdc.wro4j/rhino

/**
 * Recursively unlabel every TARGET or YIELD node in the tree.
 *
 * This is used and should only be used for inlining finally blocks where
 * jsr instructions used to be. It is somewhat hackish, but implementing
 * a clone() operation would take much, much more effort.
 *
 * This solution works for inlining finally blocks because you should never
 * be writing any given block to the class file simultaneously. Therefore,
 * an unlabeling will never occur in the middle of a block.
 */
public void resetTargets()
{
  if (type == Token.FINALLY) {
    resetTargets_r();
  } else {
    Kit.codeBug();
  }
}

代码示例来源:origin: geogebra/geogebra

/**
 * Recursively unlabel every TARGET or YIELD node in the tree.
 *
 * This is used and should only be used for inlining finally blocks where
 * jsr instructions used to be. It is somewhat hackish, but implementing
 * a clone() operation would take much, much more effort.
 *
 * This solution works for inlining finally blocks because you should never
 * be writing any given block to the class file simultaneously. Therefore,
 * an unlabeling will never occur in the middle of a block.
 */
public void resetTargets()
{
  if (type == Token.FINALLY) {
    resetTargets_r();
  } else {
    Kit.codeBug();
  }
}

代码示例来源:origin: io.apigee/rhino

/**
 * Recursively unlabel every TARGET or YIELD node in the tree.
 *
 * This is used and should only be used for inlining finally blocks where
 * jsr instructions used to be. It is somewhat hackish, but implementing
 * a clone() operation would take much, much more effort.
 *
 * This solution works for inlining finally blocks because you should never
 * be writing any given block to the class file simultaneously. Therefore,
 * an unlabeling will never occur in the middle of a block.
 */
public void resetTargets()
{
  if (type == Token.FINALLY) {
    resetTargets_r();
  } else {
    Kit.codeBug();
  }
}

代码示例来源:origin: com.github.tntim96/rhino

/**
 * Recursively unlabel every TARGET or YIELD node in the tree.
 *
 * This is used and should only be used for inlining finally blocks where
 * jsr instructions used to be. It is somewhat hackish, but implementing
 * a clone() operation would take much, much more effort.
 *
 * This solution works for inlining finally blocks because you should never
 * be writing any given block to the class file simultaneously. Therefore,
 * an unlabeling will never occur in the middle of a block.
 */
public void resetTargets()
{
  if (type == Token.FINALLY) {
    resetTargets_r();
  } else {
    Kit.codeBug();
  }
}

相关文章

微信公众号