Click or drag to resize

FileLinePositionSpan Class



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.
Inheritance Hierarchy
SystemValueType
  Microsoft.CodeAnalysisFileLinePositionSpan

Namespace:  Microsoft.CodeAnalysis
Assembly:  Microsoft.CodeAnalysis (in Microsoft.CodeAnalysis.dll) Version: 2.3.0-dev-56735-00. Commit Hash: <developer build>
Syntax
public sealed class FileLinePositionSpan : ValueType, 
	IEquatable

The FileLinePositionSpan type exposes the following members.

Constructors
  NameDescription
Public methodFileLinePositionSpan(String, LinePositionSpan)
Initializes the FileLinePositionSpan instance.
Public methodFileLinePositionSpan(String, LinePosition, LinePosition)
Initializes the FileLinePositionSpan instance.
Top
Properties
  NameDescription
Public propertyEndLinePosition
Gets the LinePosition of the end of the span.
Public propertyHasMappedPath
True if the Path is a mapped path.
Public propertyIsValid
Returns true if the span represents a valid location.
Public propertyPath
Path, or null if the span represents an invalid value.
Public propertySpan
Gets the span.
Public propertyStartLinePosition
Gets the LinePosition of the start of the span.
Top
Methods
  NameDescription
Public methodEquals(Object)
Determines if two FileLinePositionSpan objects are equal.
Public methodEquals(FileLinePositionSpan)
Determines if two FileLinePositionSpan objects are equal.
Public methodGetHashCode
Serves as a hash function for FileLinePositionSpan.
Public methodCode exampleToString
Returns a String that represents FileLinePositionSpan.
Top
See Also