Enhanced C#
Loyc library documentation
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events Pages
Properties | Public Member Functions | List of all members
Loyc.Syntax.LiteralValue Struct Reference

Bundles the optional original text of a value with an optional in-memory form of it; see remarks at ILiteralValue. This struct can also be turned into an LNode by calling LNode.Literal{LiteralValue}(SourceRange, LiteralValue, NodeStyle). More...


Source file:
Inheritance diagram for Loyc.Syntax.LiteralValue:
Loyc.Syntax.ILiteralValue Loyc.Syntax.ILiteralValueProvider Loyc.Syntax.IUninterpretedLiteral Loyc.IValue< out T >

Remarks

Bundles the optional original text of a value with an optional in-memory form of it; see remarks at ILiteralValue. This struct can also be turned into an LNode by calling LNode.Literal{LiteralValue}(SourceRange, LiteralValue, NodeStyle).

Properties

object Value [get]
 
UString TextValue [get]
 
Symbol TypeMarker [get]
 
- Properties inherited from Loyc.Syntax.IUninterpretedLiteral
UString TextValue [get]
 Represents the serialized text of the value. More...
 
Symbol TypeMarker [get]
 Represents the type of the value. More...
 
- Properties inherited from Loyc.IValue< out T >
Value [get]
 

Public Member Functions

 LiteralValue (object value, Symbol typeMarker, UString textValue=default)
 
UString ILiteralValueProvider. GetTextValue (SourceRange range)
 LNode.TextValue returns whatever this returns. More...
 
Symbol ILiteralValueProvider. GetTypeMarker (SourceRange range)
 LNode.TypeMarker returns whatever this returns. More...
 
object ILiteralValueProvider. GetValue (SourceRange range)
 LNode.Value returns whatever this returns. More...
 

Member Function Documentation

UString ILiteralValueProvider. Loyc.Syntax.LiteralValue.GetTextValue ( SourceRange  range)

LNode.TextValue returns whatever this returns.

Implements Loyc.Syntax.ILiteralValueProvider.

Symbol ILiteralValueProvider. Loyc.Syntax.LiteralValue.GetTypeMarker ( SourceRange  range)

LNode.TypeMarker returns whatever this returns.

Implements Loyc.Syntax.ILiteralValueProvider.

object ILiteralValueProvider. Loyc.Syntax.LiteralValue.GetValue ( SourceRange  range)

LNode.Value returns whatever this returns.

Implements Loyc.Syntax.ILiteralValueProvider.