Class Pos
Pos
Implements
Inherited Members
Namespace: Pulumi.Esc.Sdk.Model
Assembly: Pulumi.Esc.Sdk.dll
Syntax
public class Pos : IValidatableObject
Constructors
View SourcePos(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 SourceByte
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. |
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. |
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 SourceToString()
Returns the string presentation of the object
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| string | String presentation of the object |