本文整理了Java中org.mozilla.javascript.ast.Yield
类的一些代码示例,展示了Yield
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Yield
类的具体详情如下:
包路径:org.mozilla.javascript.ast.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);
}
内容来源于网络,如有侵权,请联系作者删除!