12 references to IsValid
Microsoft.CodeAnalysis (8)
Diagnostic\DiagnosticFormatter.cs (2)
39
if (!span.
IsValid
|| !mappedSpan.
IsValid
)
Diagnostic\Location.cs (2)
69
/// Returns an invalid span (see <see cref="FileLinePositionSpan.
IsValid
"/>) if the information is not available.
84
/// or an invalid span (see <see cref="FileLinePositionSpan.
IsValid
"/>) if not available.
Diagnostic\SourceLocation.cs (2)
87
Debug.Assert(!result.
IsValid
);
101
Debug.Assert(!result.
IsValid
);
Syntax\LineMapping.cs (2)
30
/// If the line mapping directive marks hidden code <see cref="FileLinePositionSpan.
IsValid
"/> is false.
45
=> !MappedSpan.
IsValid
;
Microsoft.CodeAnalysis.CSharp.Test.Utilities (2)
DiagnosticTestUtilities.cs (2)
119
Line = lineSpan.
IsValid
? lineSpan.StartLinePosition.Line + 1 : 0,
120
Column = lineSpan.
IsValid
? lineSpan.StartLinePosition.Character + 1 : 0,
Microsoft.CodeAnalysis.VisualBasic (1)
Lowering\Instrumentation\CodeCoverageInstrumenter.vb (1)
94
Return syntax.GetLocation().GetMappedLineSpan().
IsValid
Microsoft.CodeAnalysis.Workspaces (1)
Diagnostics\DiagnosticData.cs (1)
169
if (!originalLineInfo.
IsValid
)