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

Holds a reference to a source file (ISourceFile<char>) and the beginning and end indices of a range in that file. More...


Source file:

Remarks

Holds a reference to a source file (ISourceFile<char>) and the beginning and end indices of a range in that file.

Public static fields

static readonly SourceRange Nowhere = new SourceRange(EmptySourceFile.Default, -1, 0)
 

Properties

ISourceFile Source [get]
 
int StartIndex [get]
 
int EndIndex [get]
 
int Length [get]
 
UString SourceText [get]
 
SourcePos Start [get]
 
SourcePos End [get]
 
char this[int subIndex] [get]
 

Public Member Functions

 SourceRange (ISourceFile source, int beginIndex=-1, int length=0)
 
 SourceRange (ISourceFile source, Lexing.Token token)
 
override bool Equals (object obj)
 
override int GetHashCode ()
 
override string ToString ()
 
bool Contains (SourceRange inner)
 

Static Public Member Functions

static bool operator== (SourceRange a, SourceRange b)
 
static bool operator!= (SourceRange a, SourceRange b)