C# Class 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.
Inheritance: CallNode
Afficher le fichier Open project: qwertie/ecsharp

Méthodes publiques

Méthode Description
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

Method Details

Clone() public méthode

public Clone ( ) : LNode
Résultat LNode

HasSimpleHead() public méthode

public HasSimpleHead ( ) : bool
Résultat bool

HasSimpleHeadWithoutPAttrs() public méthode

public HasSimpleHeadWithoutPAttrs ( ) : bool
Résultat bool

StdTriviaNode() public méthode

public StdTriviaNode ( Symbol name, object value, LNode ras ) : System
name Symbol
value object
ras LNode
Résultat System

StdTriviaNode() public méthode

public StdTriviaNode ( Symbol name, object value, SourceRange range, NodeStyle style = NodeStyle.Default ) : System
name Symbol
value object
range SourceRange
style NodeStyle
Résultat System

WithArgs() public méthode

public WithArgs ( VList args ) : CallNode
args VList
Résultat CallNode

WithAttrs() public méthode

public WithAttrs ( VList attrs ) : LNode
attrs VList
Résultat LNode

WithName() public méthode

public WithName ( Symbol name ) : LNode
name Symbol
Résultat LNode

cov_Clone() public méthode

public cov_Clone ( ) : StdTriviaNode
Résultat StdTriviaNode