Table of Contents

Class SourceCodeLocation

Namespace
Utils.Parser.Source
Assembly
Utils.Parser.Source.dll

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

filePath string

Required source file path for diagnostics, display, or tooling.

line int

1-based human-readable line number.

column int

1-based human-readable column number.

Properties

Column

Gets the 1-based human-readable column number.

public int Column { get; }

Property Value

int

FilePath

Gets the required source file path for diagnostics, display, or tooling.

public string FilePath { get; }

Property Value

string

Line

Gets the 1-based human-readable line number.

public int Line { get; }

Property Value

int

Methods

ToString()

public override string ToString()

Returns

string