org.mozilla.javascript.ast.Yield类的使用及代码示例

x33g5p2x  于2022-02-05 转载在 JavaScript  
字(2.5k)|赞(0)|评价(0)|浏览(189)

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

Yield介绍

[英]AST node for JavaScript 1.7 yield expression or statement. Node type is Token#YIELD.

Yield : 
yield [no LineTerminator here] [non-paren Expression] ;

[中]

代码示例

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

private Node transformYield(Yield node) {
  decompiler.addToken(Token.YIELD);
  Node kid = node.getValue() == null ? null : transform(node.getValue());
  if (kid != null)
    return new Node(Token.YIELD, kid, node.getLineno());
  else
    return new Node(Token.YIELD, node.getLineno());
}

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

public Yield(int pos, int len, AstNode value) {
  super(pos, len);
  setValue(value);
}

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

reportError("msg.bad.yield");
endFlags |= Node.END_YIELDS;
ret = new Yield(pos, end - pos, e);
setRequiresActivation();
setIsGenerator();

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

reportError("msg.bad.yield");
endFlags |= Node.END_YIELDS;
ret = new Yield(pos, end - pos, e);
setRequiresActivation();
setIsGenerator();

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

private Node transformYield(Yield node) {
  decompiler.addToken(Token.YIELD);
  Node kid = node.getValue() == null ? null : transform(node.getValue());
  if (kid != null)
    return new Node(Token.YIELD, kid, node.getLineno());
  else
    return new Node(Token.YIELD, node.getLineno());
}

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

public Yield(int pos, int len, AstNode value) {
  super(pos, len);
  setValue(value);
}

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

reportError("msg.bad.yield");
endFlags |= Node.END_YIELDS;
ret = new Yield(pos, end - pos, e);
setRequiresActivation();
setIsGenerator();

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

private Node transformYield(Yield node) {
  decompiler.addToken(Token.YIELD);
  Node kid = node.getValue() == null ? null : transform(node.getValue());
  if (kid != null)
    return new Node(Token.YIELD, kid, node.getLineno());
  else
    return new Node(Token.YIELD, node.getLineno());
}

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

public Yield(int pos, int len, AstNode value) {
  super(pos, len);
  setValue(value);
}

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

reportError("msg.bad.yield");
endFlags |= Node.END_YIELDS;
ret = new Yield(pos, end - pos, e);
setRequiresActivation();
setIsGenerator();

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

private Node transformYield(Yield node) {
  decompiler.addToken(Token.YIELD);
  Node kid = node.getValue() == null ? null : transform(node.getValue());
  if (kid != null)
    return new Node(Token.YIELD, kid, node.getLineno());
  else
    return new Node(Token.YIELD, node.getLineno());
}

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

public Yield(int pos, int len, AstNode value) {
  super(pos, len);
  setValue(value);
}

相关文章