C# Класс Rhino.Ast.Yield

AST node for JavaScript 1.7 yield expression or statement. Node type is Rhino.Token.YIELD .

Yield : yield [no LineTerminator here] [non-paren Expression] ;
Наследование: AstNode
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
GetValue ( ) : AstNode

Returns yielded expression, null if none

SetValue ( AstNode expr ) : void

Sets yielded expression, and sets its parent to this node.

Sets yielded expression, and sets its parent to this node.

ToSource ( int depth ) : string
Visit ( NodeVisitor v ) : void

Visits this node, and if present, the yielded value.

Visits this node, and if present, the yielded value.

Yield ( ) : Rhino
Yield ( int pos ) : Rhino
Yield ( int pos, int len ) : Rhino
Yield ( int pos, int len, AstNode value ) : Rhino

Описание методов

GetValue() публичный Метод

Returns yielded expression, null if none
public GetValue ( ) : AstNode
Результат AstNode

SetValue() публичный Метод

Sets yielded expression, and sets its parent to this node.
Sets yielded expression, and sets its parent to this node.
public SetValue ( AstNode expr ) : void
expr AstNode /// the value to yield. Can be /// null /// . ///
Результат void

ToSource() публичный Метод

public ToSource ( int depth ) : string
depth int
Результат string

Visit() публичный Метод

Visits this node, and if present, the yielded value.
Visits this node, and if present, the yielded value.
public Visit ( NodeVisitor v ) : void
v NodeVisitor
Результат void

Yield() публичный Метод

public Yield ( ) : Rhino
Результат Rhino

Yield() публичный Метод

public Yield ( int pos ) : Rhino
pos int
Результат Rhino

Yield() публичный Метод

public Yield ( int pos, int len ) : Rhino
pos int
len int
Результат Rhino

Yield() публичный Метод

public Yield ( int pos, int len, AstNode value ) : Rhino
pos int
len int
value AstNode
Результат Rhino