Synced
DiagnosticLocation.Constructor
Section titled “DiagnosticLocation.Constructor”
- Creates a source location.
Required contracts
Section titled “Required contracts”API: engine
Project: Inno.Core.Diagnostics
Declaration
Section titled “Declaration”public Inno.Core.Diagnostics.DiagnosticLocation.DiagnosticLocation(string sourcePath, int line = 0, int column = 0)Parameters
Section titled “Parameters”Parameter sourcePath: The source path associated with the diagnostic.
Parameter line: The one-based line number, or zero when it is unavailable.
Parameter column: The one-based column number, or zero when it is unavailable.
Exceptions
Section titled “Exceptions”Exception T:System.ArgumentException: Thrown when sourcePath is empty or contains only whitespace.
Exception T:System.ArgumentOutOfRangeException: Thrown when line or column is negative.