@param {string} thisCharacter
(thisCharacter, skipOverIt = true)
| 145 | } |
| 146 | /** @param {string} thisCharacter */ |
| 147 | static readUntil(thisCharacter, skipOverIt = true) { |
| 148 | let token = ''; |
| 149 | while (this.currentCharacter !== thisCharacter) { |
| 150 | if (this.isDone) |
| 151 | throw new Error(`Never reached character '${thisCharacter}'!`); |
| 152 | token += this.currentCharacter; |
| 153 | this.parserPosition++; |
| 154 | } |
| 155 | if (skipOverIt) this.parserPosition++; |
| 156 | return token; |
| 157 | } |
| 158 | |
| 159 | static readType() { |
| 160 | // Ignore [Const] and such annotations |
no outgoing calls
no test coverage detected