LineNumbers.ToLinePosition Method
Assembly: Topten.Cminor.Compiler.dll
Namespace: Topten.Cminor.Lexical
Declaring Type: LineNumbers
Convert a file offset to a line number and character offset
public LinePosition ToLinePosition(int fileOffset);
Parameters
int fileOffset | The zero based offset from the start of the file |
Returns
LinePosition | The line number and character offset as a LinePosition |