Share via


FileLinePositionSpan Struct

Definition

Represents a span of text in a source code file in terms of file name, line number, and offset within line. However, the file is actually whatever was passed in when asked to parse; there may not really be a file.

public value class FileLinePositionSpan : IEquatable<Microsoft::CodeAnalysis::FileLinePositionSpan>
public struct FileLinePositionSpan : IEquatable<Microsoft.CodeAnalysis.FileLinePositionSpan>
public readonly struct FileLinePositionSpan : IEquatable<Microsoft.CodeAnalysis.FileLinePositionSpan>
[System.Runtime.Serialization.DataContract]
public readonly struct FileLinePositionSpan : IEquatable<Microsoft.CodeAnalysis.FileLinePositionSpan>
type FileLinePositionSpan = struct
[<System.Runtime.Serialization.DataContract>]
type FileLinePositionSpan = struct
Public Structure FileLinePositionSpan
Implements IEquatable(Of FileLinePositionSpan)
Inheritance
FileLinePositionSpan
Attributes
Implements

Constructors

FileLinePositionSpan(String, LinePosition, LinePosition)

Initializes the FileLinePositionSpan instance.

FileLinePositionSpan(String, LinePositionSpan)

Initializes the FileLinePositionSpan instance.

Properties

EndLinePosition

Gets the LinePosition of the end of the span.

HasMappedPath

True if the Path is a mapped path.

IsValid

Returns true if the span represents a valid location.

Path

Path, or null if the span represents an invalid value.

Span

Gets the span.

StartLinePosition

Gets the LinePosition of the start of the span.

Methods

Equals(FileLinePositionSpan)

Determines if two FileLinePositionSpan objects are equal.

Equals(Object)

Determines if two FileLinePositionSpan objects are equal.

GetHashCode()

Serves as a hash function for FileLinePositionSpan.

ToString()

Returns a String that represents FileLinePositionSpan.

Operators

Equality(FileLinePositionSpan, FileLinePositionSpan)
Inequality(FileLinePositionSpan, FileLinePositionSpan)

Applies to