Enhanced C#
Language of your choice: library documentation

Documentation moved to ecsharp.net

GitHub doesn't support HTTP redirects, so you'll be redirected in 3 seconds.

 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events Pages
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=-1)
 
 SourceRange (ISourceFile source, Lexing.Token token)
 
override bool Equals (object obj)
 
override int GetHashCode ()
 
override string ToString ()
 

Static Public Member Functions

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