C# 클래스 Loyc.Syntax.StdTriviaNode

A simple call node with a single literal argument.
Essentially, this is a special kind of node with both a name and a value. Since there is no syntax (or LNodeKind) for a node that has both a Name and a Value, the node pretends that it is has a single argument, Args[0], which allows this node to be printed as if it were a normal call node. For example, if this node has Name=(Symbol)"PI" and Value=3.1415, it will be printed as PI(3.1415). The TriviaValue property returns this value (in this case, (object)3.1415). Please note that the normal LNode.Value is still NoValue.Value so that if the node is printed and reparsed, it doesn't behave differently. This node type is used to represent tokens and trivia nodes with values.
상속: CallNode
파일 보기 프로젝트 열기: qwertie/ecsharp

공개 메소드들

메소드 설명
Clone ( ) : LNode
HasSimpleHead ( ) : bool
HasSimpleHeadWithoutPAttrs ( ) : bool
StdTriviaNode ( Symbol name, object value, LNode ras ) : System
StdTriviaNode ( Symbol name, object value, SourceRange range, NodeStyle style = NodeStyle.Default ) : System
WithArgs ( VList args ) : CallNode
WithAttrs ( VList attrs ) : LNode
WithName ( Symbol name ) : LNode
cov_Clone ( ) : StdTriviaNode

메소드 상세

Clone() 공개 메소드

public Clone ( ) : LNode
리턴 LNode

HasSimpleHead() 공개 메소드

public HasSimpleHead ( ) : bool
리턴 bool

HasSimpleHeadWithoutPAttrs() 공개 메소드

public HasSimpleHeadWithoutPAttrs ( ) : bool
리턴 bool

StdTriviaNode() 공개 메소드

public StdTriviaNode ( Symbol name, object value, LNode ras ) : System
name Symbol
value object
ras LNode
리턴 System

StdTriviaNode() 공개 메소드

public StdTriviaNode ( Symbol name, object value, SourceRange range, NodeStyle style = NodeStyle.Default ) : System
name Symbol
value object
range SourceRange
style NodeStyle
리턴 System

WithArgs() 공개 메소드

public WithArgs ( VList args ) : CallNode
args VList
리턴 CallNode

WithAttrs() 공개 메소드

public WithAttrs ( VList attrs ) : LNode
attrs VList
리턴 LNode

WithName() 공개 메소드

public WithName ( Symbol name ) : LNode
name Symbol
리턴 LNode

cov_Clone() 공개 메소드

public cov_Clone ( ) : StdTriviaNode
리턴 StdTriviaNode