LineNumbers.FromLinePosition Method
Assembly: Topten.Cminor.Compiler.dll
Namespace: Topten.Cminor.Lexical
Declaring Type: LineNumbers
Convert a line number and character position to a file offset
public int FromLinePosition(LinePosition position);
Parameters
LinePosition position | The line number and character offset to convert |
Returns
int | The position converted to an offset from the start of the file |