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

Function getTokenDesc

plugins/shopify/skills/shopify-partner/scripts/validate.mjs:3228–3231  ·  view source on GitHub ↗
(token)

Source from the content-addressed store, hash-verified

3226 };
3227 exports.Parser = Parser;
3228 function getTokenDesc(token) {
3229 const value = token.value;
3230 return getTokenKindDesc(token.kind) + (value != null ? ` "${value}"` : "");
3231 }
3232 function getTokenKindDesc(kind) {
3233 return (0, _lexer.isPunctuatorTokenKind)(kind) ? `"${kind}"` : kind;
3234 }

Callers 4

parseEnumValueNameMethod · 0.70
expectTokenMethod · 0.70
expectKeywordMethod · 0.70
unexpectedMethod · 0.70

Calls 1

getTokenKindDescFunction · 0.70

Tested by

no test coverage detected