MCPcopy Create free account
hub / github.com/Snapchat/Valdi / consumeWhitespaces

Method consumeWhitespaces

compiler/companion/src/utils/TextParser.ts:140–153  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

138 }
139
140 private consumeWhitespaces() {
141 for (;;) {
142 let code = this.text.charCodeAt(this.position);
143 if (code === CharCode.space) {
144 this.position++;
145 } else if (code === CharCode.newline) {
146 this.position++;
147 this.currentLine++;
148 this.currentLineGlobalPosition = this.position;
149 } else {
150 break;
151 }
152 }
153 }
154}

Callers 4

peekMethod · 0.95
tryParseMethod · 0.95
isAtIdentifierMethod · 0.95
parseIdentifierMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected