Class SourceCodeLocation
Represents a human-readable source-code location for diagnostics, display, and tooling.
public class SourceCodeLocation
- Inheritance
-
SourceCodeLocation
- Derived
- Inherited Members
- Extension Methods
Remarks
This contract requires a file path and 1-based line/column coordinates, but intentionally carries no absolute source offset. It must not be treated as equivalent to SourceLocation, which is a runtime/source-buffer coordinate contract.
Constructors
SourceCodeLocation(string, int, int)
Initializes a new instance of the SourceCodeLocation class.
public SourceCodeLocation(string filePath, int line, int column)
Parameters
filePathstringRequired source file path for diagnostics, display, or tooling.
lineint1-based human-readable line number.
columnint1-based human-readable column number.
Properties
Column
Gets the 1-based human-readable column number.
public int Column { get; }
Property Value
FilePath
Gets the required source file path for diagnostics, display, or tooling.
public string FilePath { get; }
Property Value
Line
Gets the 1-based human-readable line number.
public int Line { get; }
Property Value
Methods
ToString()
public override string ToString()