MCPcopy
hub / github.com/4ian/GDevelop / readUntil

Method readUntil

GDevelop.js/scripts/generate-dts.mjs:147–157  ·  view source on GitHub ↗

@param {string} thisCharacter

(thisCharacter, skipOverIt = true)

Source from the content-addressed store, hash-verified

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

Callers 2

readTypeMethod · 0.80
generate-dts.mjsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected