MCPcopy Create free account
hub / github.com/openai/plugins / readName

Function readName

plugins/shopify/skills/shopify-admin/scripts/validate.mjs:1492–1511  ·  view source on GitHub ↗
(lexer, start)

Source from the content-addressed store, hash-verified

1490 );
1491 }
1492 function readName(lexer, start) {
1493 const body = lexer.source.body;
1494 const bodyLength = body.length;
1495 let position = start + 1;
1496 while (position < bodyLength) {
1497 const code = body.charCodeAt(position);
1498 if ((0, _characterClasses.isNameContinue)(code)) {
1499 ++position;
1500 } else {
1501 break;
1502 }
1503 }
1504 return createToken(
1505 lexer,
1506 _tokenKind.TokenKind.NAME,
1507 start,
1508 position,
1509 body.slice(start, position)
1510 );
1511 }
1512 }
1513});
1514

Callers 1

readNextTokenFunction · 0.70

Calls 1

createTokenFunction · 0.70

Tested by

no test coverage detected