ReferenceLocation Struct
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Information about a reference to a symbol.
public value class ReferenceLocation : IComparable<Microsoft::CodeAnalysis::FindSymbols::ReferenceLocation>, IEquatable<Microsoft::CodeAnalysis::FindSymbols::ReferenceLocation>
[System.Diagnostics.DebuggerDisplay("{GetDebuggerDisplay(),nq}")]
public struct ReferenceLocation : IComparable<Microsoft.CodeAnalysis.FindSymbols.ReferenceLocation>, IEquatable<Microsoft.CodeAnalysis.FindSymbols.ReferenceLocation>
[System.Diagnostics.DebuggerDisplay("{GetDebuggerDisplay(),nq}")]
public readonly struct ReferenceLocation : IComparable<Microsoft.CodeAnalysis.FindSymbols.ReferenceLocation>, IEquatable<Microsoft.CodeAnalysis.FindSymbols.ReferenceLocation>
[<System.Diagnostics.DebuggerDisplay("{GetDebuggerDisplay(),nq}")>]
type ReferenceLocation = struct
Public Structure ReferenceLocation
Implements IComparable(Of ReferenceLocation), IEquatable(Of ReferenceLocation)
- Inheritance
-
ReferenceLocation
- Attributes
- Implements
Alias |
If the symbol was bound through an alias, then this is the alias that was used. |
Candidate |
|
Document |
The document that the reference was found in. |
Is |
Indicates if this was not an exact reference to a location, but was instead a possible location that was found through error tolerance. For example, a call to a method like "Goo()" could show up as an error tolerance location to a method "Goo(int i)" if no actual "Goo()" method existed. |
Is |
Indicates if this is an implicit reference to the definition. i.e. the definition wasn't explicitly stated in the source code at this position, but it was still referenced. For example, this can happen with special methods like GetEnumerator that are used implicitly by a 'for each' statement. |
Location |
The actual source location for a given symbol. |
Product | Versions |
---|---|
Roslyn | 4.2.0, 4.3.0, 4.4.0, 4.5.0, 4.6.0, 4.7.0, 4.8.0, 4.9.2, 3.0.0, 3.1.0, 3.2.0, 3.2.1, 3.3.1, 3.4.0, 3.5.0, 3.6.0, 3.7.0, 3.8.0, 3.9.0, 3.10.0, 3.11.0, 4.0.1, 4.1.0, 4.12.2, 4.13.0 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: