ParseContext
data class ParseContext
Fields
Name | Description |
---|---|
val fileName: String
|
|
val lineNumber: Int
|
|
val column: Int
|
Constructors
<init>
constructor(fileName: String, lineNumber: Int, column: Int)
Reflects the current location within a text-based wasm module.
Primarily used in conjunction with ParseException.
Parameters
Name | Description |
---|---|
fileName: String
|
|
lineNumber: Int
|
|
column: Int
|
Methods
toString
fun toString(): String
ReturnValue
Name | Description |
---|---|
String
|
Extensions
shiftColumnBy
fun ParseContext?.shiftColumnBy(amount: Int): ParseContext?
Returns a new ParseContext with the ParseContext.column value shifted by the given amount,
or null
if the receiver is null.
Receiver
Name | Description |
---|---|
ParseContext?
|
Parameters
Name | Description |
---|---|
amount: Int
|
ReturnValue
Name | Description |
---|---|
ParseContext?
|
shiftLineNumberBy
fun ParseContext?.shiftLineNumberBy(amount: Int): ParseContext?
Returns a new ParseContext with the ParseContext.lineNumber value shifted by the given
amount or null
if the receiver is null.
Receiver
Name | Description |
---|---|
ParseContext?
|
Parameters
Name | Description |
---|---|
amount: Int
|
ReturnValue
Name | Description |
---|---|
ParseContext?
|
Reflects the current location within a text-based wasm module.
Primarily used in conjunction with ParseException.