1734 |
int lastLine; ///< The last line number of this code block within the script. |
int lastLine; ///< The last line number of this code block within the script. |
1735 |
int firstColumn; ///< The first column of this code block within the script (indexed with 1 being the very first column). |
int firstColumn; ///< The first column of this code block within the script (indexed with 1 being the very first column). |
1736 |
int lastColumn; ///< The last column of this code block within the script. |
int lastColumn; ///< The last column of this code block within the script. |
1737 |
|
int firstByte; ///< The first byte of this code block within the script. |
1738 |
|
int lengthBytes; ///< Length of this code block within the script (in bytes). |
1739 |
}; |
}; |
1740 |
|
|
1741 |
/** |
/** |
1913 |
// position of token in script |
// position of token in script |
1914 |
int firstLine() const; ///< First line this source token is located at in script source code (indexed with 0 being the very first line). Most source code tokens are not spanning over multiple lines, the only current exception are comments, in the latter case you need to process text() to get the last line and last column for the comment. |
int firstLine() const; ///< First line this source token is located at in script source code (indexed with 0 being the very first line). Most source code tokens are not spanning over multiple lines, the only current exception are comments, in the latter case you need to process text() to get the last line and last column for the comment. |
1915 |
int firstColumn() const; ///< First column on the first line this source token is located at in script source code (indexed with 0 being the very first column). To get the length of this token use text().length(). |
int firstColumn() const; ///< First column on the first line this source token is located at in script source code (indexed with 0 being the very first column). To get the length of this token use text().length(). |
1916 |
|
int firstByte() const; ///< First raw byte position of this source token in script source code. |
1917 |
|
int lengthBytes() const; ///< Raw byte length of this source token (in bytes). |
1918 |
|
|
1919 |
// base types |
// base types |
1920 |
bool isEOF() const; ///< Returns true in case this source token represents the end of the source code file. |
bool isEOF() const; ///< Returns true in case this source token represents the end of the source code file. |