Table of Contents

Struct SourceLocation

Namespace
DotCompute.Abstractions.Ports
Assembly
DotCompute.Abstractions.dll

Location in source code.

public readonly record struct SourceLocation : IEquatable<SourceLocation>
Implements
Inherited Members

Constructors

SourceLocation(int, int, string?)

Location in source code.

public SourceLocation(int Line, int Column, string? FilePath = null)

Parameters

Line int

Line number (1-based).

Column int

Column number (1-based).

FilePath string

Optional file path.

Properties

Column

Column number (1-based).

public int Column { get; init; }

Property Value

int

FilePath

Optional file path.

public string? FilePath { get; init; }

Property Value

string

Line

Line number (1-based).

public int Line { get; init; }

Property Value

int