MCPcopy
hub / github.com/compiler-explorer/compiler-explorer / handleWhitespace

Method handleWhitespace

shared/common-utils.ts:159–165  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

157 }
158
159 private handleWhitespace() {
160 const wsMatch = /^\s+/.exec(this.rest);
161 if (wsMatch) {
162 this.rest = this.rest.slice(wsMatch[0].length);
163 ++this.position;
164 }
165 }
166
167 private handleNonDoubleQuote(nextMatch: RegExpExecArray) {
168 this.addResult(this.rest.slice(0, nextMatch.index));

Callers 1

execMethod · 0.95

Calls 1

execMethod · 0.45

Tested by

no test coverage detected