MrKWatkins.Ast Help

SourcePosition Class

Definition

A position in source code.

public abstract class SourcePosition : IEquatable<SourcePosition>, IEqualityOperators<SourcePosition, SourcePosition, Boolean>

Constructors

Name

Description

SourcePosition()

Fields

Name

Description

None

Represents no source position, e.g. the parent node was generated programmatically.

Methods

Name

Description

Combine(SourcePosition)

Combines two SourcePositions to give a new SourcePosition that includes both this position and the other along any source in-between the two.

CreateZeroWidthPrefix()

Create a new SourcePosition with zero width at the start of this SourcePosition.

Equals(SourcePosition)

Equals(Object)

GetHashCode()

Operators

Name

Description

op_Addition(SourcePosition, SourcePosition)

Combines two SourcePositions to give a new SourcePosition that includes both x and y along with any source in-between the two.

op_Equality(SourcePosition, SourcePosition)

Determines whether two specified SourceFiles have the same value.

op_Inequality(SourcePosition, SourcePosition)

Determines whether two specified SourceFiles have different values.

Last modified: 22 November 2024