Delen via


LineMapping Struct

Definition

Represents a line mapping defined by a single line mapping directive (#line in C# or #ExternalSource in VB).

public readonly struct LineMapping : IEquatable<Microsoft.CodeAnalysis.LineMapping>
type LineMapping = struct
Public Structure LineMapping
Implements IEquatable(Of LineMapping)
Inheritance
LineMapping
Implements

Constructors

LineMapping(LinePositionSpan, Nullable<Int32>, FileLinePositionSpan)

Properties

CharacterOffset

The optional offset in the syntax tree for the line immediately following an enhanced #line directive in C#.

IsHidden

True if the line mapping marks hidden code.

MappedSpan

If the line mapping directive maps the span into an explicitly specified file the HasMappedPath is true. If the path is not mapped Path is empty and HasMappedPath is false. If the line mapping directive marks hidden code IsValid is false.

Span

The span in the syntax tree containing the line mapping directive.

Methods

Equals(LineMapping)
Equals(Object)
GetHashCode()
ToString()

Operators

Equality(LineMapping, LineMapping)
Inequality(LineMapping, LineMapping)

Applies to