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) |
Indicates whether the current object is equal to another object of the same type. |
Equals(Object) |
Determines whether the specified object is equal to the current object. |
GetHashCode() |
Serves as the default hash function. |
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. |