Enhanced C#
Language of your choice: library documentation
Public fields | Public Member Functions | List of all members
Loyc.Syntax.ParsedValue Struct Reference

This structure is intended to be stored in a LiteralNode, where it holds the value of a literal while being able to retrieve the original text of that value from the source code. This type is slightly smaller than LiteralValue because it doesn't hold a reference to the source text, because the LiteralNode provides access to that. More...


Source file:
Inheritance diagram for Loyc.Syntax.ParsedValue:
Loyc.Syntax.ILiteralValueProvider

Remarks

This structure is intended to be stored in a LiteralNode, where it holds the value of a literal while being able to retrieve the original text of that value from the source code. This type is slightly smaller than LiteralValue because it doesn't hold a reference to the source text, because the LiteralNode provides access to that.

In addition, this struct provides the ability to parse lazily.

Public fields

object _value
 
int _startIndex
 
int _length
 
Symbol _typeMarker
 

Public Member Functions

 ParsedValue (object value, int startIndex, int length, 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.