Click or drag to resize

CharLocation Class

Represents immutable location of the character.
Inheritance Hierarchy

Namespace:  Syntactik.DOM
Assembly:  Syntactik (in Syntactik.dll) Version: 0.3.0-beta1
Syntax
C#
public class CharLocation : IEquatable<CharLocation>, 
	IComparable<CharLocation>

The CharLocation type exposes the following members.

Constructors
  NameDescription
Public methodCharLocation(ICharStream)
Creates instance of the class.
Public methodCharLocation(Int32, Int32, Int32)
Creates instance of the class.
Top
Methods
  NameDescription
Public methodCompareTo
Compares the current object with another object of the same type.
Public methodEquals(Object)
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodEquals(CharLocation)
Indicates whether the current object is equal to another object of the same type.
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Overrides ObjectToString.)
Top
Fields
  NameDescription
Public fieldColumn
Column number (starts from 1).
Public fieldStatic memberEmpty
Singleton instance of CharLocation representing "Empty" value.
Public fieldIndex
Index of character in the file (starts from 0).
Public fieldLine
Line number (starts from 1).
Top
See Also