Position
Class in Yarn.Compiler
Inherits from System.Object
Summary
Represents a position in a multi-line string.
public class PositionConstructors
| Name | Description |
|---|---|
| Position() | Initialises a new instance of the Position class. |
| Position(int,int) | Initialises a new instance of the Position class with the specified line and character. |
Fields
| Name | Description |
|---|---|
| InvalidPosition | Represents the default value for a Position. |
Methods
| Name | Description |
|---|---|
| Equals(object) | |
| GetHashCode() | |
| ToString() |
Properties
| Name | Description |
|---|---|
| Character | Gets or sets the zero-indexed character number of this position. |
| IsValid | Gets a value indicating whether this position has a zero or positive line and character number. |
| Line | Gets or sets the zero-indexed line of this position. |
TYPENAME_UNKNOWN_PLURAL
| Name | Description |
|---|---|
| M:Yarn.Compiler.Position.op_Addition(Yarn.Compiler.Position,Yarn.Compiler.Position) | Adds two positions by component and returns the result. |
| M:Yarn.Compiler.Position.op_GreaterThanOrEqual(Yarn.Compiler.Position,Yarn.Compiler.Position) | Compares two positions and returns true if a is equal to or after b . |
| M:Yarn.Compiler.Position.op_LessThanOrEqual(Yarn.Compiler.Position,Yarn.Compiler.Position) | Compares two positions and returns true if a is equal to or before b . |