Enhanced C#
Language of your choice: library documentation
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.
 
UString GetTextValue (SourceRange range)
 LNode.TextValue returns whatever this returns.
 
Symbol GetTypeMarker (SourceRange range)
 LNode.TypeMarker returns whatever this returns.