Show / Hide Table of Contents

Class Pos

Pos

Inheritance
object
Pos
Implements
IValidatableObject
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
Namespace: Pulumi.Esc.Sdk.Model
Assembly: Pulumi.Esc.Sdk.dll
Syntax
public class Pos : IValidatableObject

Constructors

View Source

Pos(int, int, int)

Initializes a new instance of the Pos class.

Declaration
[JsonConstructor]
public Pos(int @byte, int column, int line)
Parameters
Type Name Description
int byte

Byte is the byte offset into the file where the indicated position begins.

int column

Column is the source code column where this position points. Columns are counted in visual cells starting at 1, and are incremented roughly per grapheme cluster encountered.

int line

Line is the source code line where this position points. Lines are counted starting at 1 and incremented for each newline character encountered.

Properties

View Source

Byte

Byte is the byte offset into the file where the indicated position begins.

Declaration
[JsonPropertyName("byte")]
public int Byte { get; set; }
Property Value
Type Description
int

Byte is the byte offset into the file where the indicated position begins.

View Source

Column

Column is the source code column where this position points. Columns are counted in visual cells starting at 1, and are incremented roughly per grapheme cluster encountered.

Declaration
[JsonPropertyName("column")]
public int Column { get; set; }
Property Value
Type Description
int

Column is the source code column where this position points. Columns are counted in visual cells starting at 1, and are incremented roughly per grapheme cluster encountered.

View Source

Line

Line is the source code line where this position points. Lines are counted starting at 1 and incremented for each newline character encountered.

Declaration
[JsonPropertyName("line")]
public int Line { get; set; }
Property Value
Type Description
int

Line is the source code line where this position points. Lines are counted starting at 1 and incremented for each newline character encountered.

Methods

View Source

ToString()

Returns the string presentation of the object

Declaration
public override string ToString()
Returns
Type Description
string

String presentation of the object

Overrides
object.ToString()

Implements

IValidatableObject

Version 0.13.1

  • View Source
Back to top Copyright 2016-2023, Pulumi Corporation.