LineNumbers Class
Assembly: Topten.Cminor.Compiler.dll
Namespace: Topten.Cminor.Lexical
Helper utility for converting file offsets to line numbers and line offsets
public class LineNumbers
Inheritance
LineNumbers → object
Constructors
LineNumbers(string) | Constructs a new LineNumbers class |
Methods
FromLinePosition(LinePosition) | Convert a line number and character position to a file offset |
ToLinePosition(int) | Convert a file offset to a line number and character offset |