Enhanced C#
Language of your choice: library documentation
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.IHasValue< object >

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.IHasValue< object >
Value [get]
 

Public Member Functions

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