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
Показать файл Открыть проект

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

Метод Описание
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