ReferenceLocation Struct

Definition

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

Properties

Alias

If the symbol was bound through an alias, then this is the alias that was used.

CandidateReason
Document

The document that the reference was found in.

IsCandidateLocation

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.

IsImplicit

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.

Methods

CompareTo(ReferenceLocation)
Equals(Object)
Equals(ReferenceLocation)
GetHashCode()
ToString()

Operators

Equality(ReferenceLocation, ReferenceLocation)
Inequality(ReferenceLocation, ReferenceLocation)

Applies to