Class LocationInfo
- Namespace
- Antithesis.SDK
- Assembly
- Antithesis.SDK.dll
An init-only data transfer object for metadata related to the source code location of an assertion.
You should not call this class directly; it is exclusively used by the Rosyln Analyzers contained in the
Antithesis.SDK.SourceGenerators package.
public class LocationInfo
- Inheritance
-
LocationInfo
- Inherited Members
Remarks
Default values are copied from the Antithesis Java SDK.
Properties
BeginColumn
The 1-indexed column number where the assertion begins.
[JsonPropertyName("begin_column")]
public int BeginColumn { get; init; }
Property Value
BeginLine
The 1-indexed line number where the assertion begins.
[JsonPropertyName("begin_line")]
public int BeginLine { get; init; }
Property Value
ClassName
The name of the class containing the assertion.
[JsonPropertyName("class")]
public string ClassName { get; init; }
Property Value
FilePath
The path of the file containing the assertion. Antithesis.SDK.SourceGenerator attempts to set this to the solution-relative file path; however, there are circumstances when this will be set to the absolute file path.
[JsonPropertyName("file")]
public string FilePath { get; init; }
Property Value
MethodName
The name of the method containing the assertion.
[JsonPropertyName("function")]
public string MethodName { get; init; }