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

Function readCodePoint

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

Source from the content-addressed store, hash-verified

1249 // Read a string value, interpreting backslash-escapes.
1250
1251 readCodePoint(throwOnInvalid: boolean): number | null {
1252 const { code, pos } = readCodePoint(
1253 this.input,
1254 this.state.pos,
1255 this.state.lineStart,
1256 this.state.curLine,
1257 throwOnInvalid,
1258 this.errorHandlers_readCodePoint,
1259 );
1260 this.state.pos = pos;
1261 return code;
1262 }
1263
1264 readString(quote: number): void {
1265 const { str, pos, curLine, lineStart } = readStringContents(

Callers

nothing calls this directly

Calls 1

readCodePointFunction · 0.90

Tested by

no test coverage detected