Position

Class in Yarn.Compiler

Inherits from System.Object

Summary

Represents a position in a multi-line string.

public class Position

Constructors

NameDescription
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

NameDescription
InvalidPositionRepresents the default value for a Position.

Methods

Properties

NameDescription
CharacterGets or sets the zero-indexed character number of this position.
IsValidGets a value indicating whether this position has a zero or positive line and character number.
LineGets or sets the zero-indexed line of this position.

TYPENAME_UNKNOWN_PLURAL

NameDescription
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 .