MCPcopy Create free account
hub / github.com/babel/babel / readCodePoint

Function readCodePoint

packages/babel-parser/src/tokenizer/index.ts:1348–1359  ·  view source on GitHub ↗
(throwOnInvalid: boolean)

Source from the content-addressed store, hash-verified

1346 // Read a string value, interpreting backslash-escapes.
1347
1348 readCodePoint(throwOnInvalid: boolean): number | null {
1349 const { code, pos } = readCodePoint(
1350 this.input,
1351 this.state.pos,
1352 this.state.lineStart,
1353 this.state.curLine,
1354 throwOnInvalid,
1355 this.errorHandlers_readCodePoint,
1356 );
1357 this.state.pos = pos;
1358 return code;
1359 }
1360
1361 readString(quote: number): void {
1362 const { str, pos, curLine, lineStart } = readStringContents(

Callers

nothing calls this directly

Calls 1

readCodePointFunction · 0.90

Tested by

no test coverage detected