CodePosition Struct
Assembly: Topten.Cminor.Compiler.dll
Namespace: Topten.Cminor.Lexical
Represents a position within a StringSource with helpers to map back to the source itself and the line number and character offset
public struct CodePosition
Inheritance
CodePosition → ValueType → object
Constructors
| CodePosition(CodeFile, int, int) | Constructs a new SourcePosition |
Fields
| Length | The length of the position in characters |
| Position | The character offset into the file of the position |
| Source | The StringSource of this position |
Properties
| End | Get this end of this position |
| LinePosition | The start position as a line number/character offset |
| LinePositionEnd | The end position as a line number/character offset |
| Start | Get the start of this position (ie: remove the length component) |
Extension Methods
| Describe(this Nullable<CodePosition>) | Provides a textual description of a CodePosition |
