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

The intention of this interface is that a struct implementing it can be embedded inside a LiteralNode in order to lazily obtain the text of a literal, or even parse it lazily. More...


Source file:
Inheritance diagram for Loyc.Syntax.ILiteralValueProvider:
Loyc.Syntax.LiteralValue Loyc.Syntax.UninterpretedLiteral

Remarks

The intention of this interface is that a struct implementing it can be embedded inside a LiteralNode in order to lazily obtain the text of a literal, or even parse it lazily.

Each method here is given the value of LNode.Range so that the provider has access to the original source code text.

Public Member Functions

object GetValue (SourceRange range)
 LNode.Value returns whatever this returns. More...
 
UString GetTextValue (SourceRange range)
 LNode.TextValue returns whatever this returns. More...
 
Symbol GetTypeMarker (SourceRange range)
 LNode.TypeMarker returns whatever this returns. More...
 

Member Function Documentation

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

LNode.TextValue returns whatever this returns.

Implemented in Loyc.Syntax.LiteralValue, and Loyc.Syntax.UninterpretedLiteral.

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

LNode.TypeMarker returns whatever this returns.

Implemented in Loyc.Syntax.LiteralValue, and Loyc.Syntax.UninterpretedLiteral.

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

LNode.Value returns whatever this returns.

Implemented in Loyc.Syntax.LiteralValue, and Loyc.Syntax.UninterpretedLiteral.