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

Function createToken

plugins/shopify/skills/shopify-admin/scripts/validate.mjs:976–980  ·  view source on GitHub ↗
(lexer, kind, start, end, value)

Source from the content-addressed store, hash-verified

974 return "U+" + code.toString(16).toUpperCase().padStart(4, "0");
975 }
976 function createToken(lexer, kind, start, end, value) {
977 const line = lexer.line;
978 const col = 1 + start - lexer.lineStart;
979 return new _ast.Token(kind, start, end, line, col, value);
980 }
981 function readNextToken(lexer, start) {
982 const body = lexer.source.body;
983 const bodyLength = body.length;

Callers 6

readNextTokenFunction · 0.70
readCommentFunction · 0.70
readNumberFunction · 0.70
readStringFunction · 0.70
readBlockStringFunction · 0.70
readNameFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected