SourceLocation Structure

 

Specifies a location in a source file.

Namespace:   Microsoft.VisualStudio.GraphModel.CodeSchema
Assembly:  Microsoft.VisualStudio.GraphModel (in Microsoft.VisualStudio.GraphModel.dll)

[TypeConverterAttribute(typeof(SourceLocationTypeConverter))]
public struct SourceLocation : IEquatable<SourceLocation>

NameDescription
System_CAPS_pubmethodSourceLocation(String, Position)

Creates an instance of the SourceLocation with the given file name and position in the file.

System_CAPS_pubmethodSourceLocation(String, Position, Position)

Creates an instance of the SourceLocation with the given file name and start/end positions in the file.

System_CAPS_pubmethodSourceLocation(Uri, Position)

Creates an instance of the SourceLocation with the given file name URI and position in the file.

System_CAPS_pubmethodSourceLocation(Uri, Position, Position)

Creates an instance of the SourceLocation with the given file name URI and start/end positions in the file.

NameDescription
System_CAPS_pubpropertyEndPosition

Gets the end location in the file.

System_CAPS_pubpropertyFileName

Gets the file name this source location belongs to.

System_CAPS_pubpropertyIsValid

Gets true if the source location instance is valid.

System_CAPS_pubpropertyStartPosition

Gets the start location in the file.

NameDescription
System_CAPS_pubmethodCreateGraphNodeId()

Creates graph node ID for this source location, which includes the file name and positions as parts.

System_CAPS_pubmethodEquals(Object)

Compares this source location instance with another object for equality.(Overrides ValueType.Equals(Object).)

System_CAPS_pubmethodEquals(SourceLocation)

Compares this source location instance with another source location instance for equality.

System_CAPS_pubmethodGetHashCode()
System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodToString()

Represents this source location as a string.(Overrides ValueType.ToString().)

NameDescription
System_CAPS_puboperatorSystem_CAPS_staticEquality(SourceLocation, SourceLocation)

Compares this source location instance with another source location instance for equality.

System_CAPS_puboperatorSystem_CAPS_staticInequality(SourceLocation, SourceLocation)

Compares this source location instance with another source location instance for inequality.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: