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

Method parseArgument

plugins/shopify/skills/shopify-admin/scripts/validate.mjs:2157–2166  ·  view source on GitHub ↗

* Argument[Const] : Name : Value[?Const]

(isConst = false)

Source from the content-addressed store, hash-verified

2155 * Argument[Const] : Name : Value[?Const]
2156 */
2157 parseArgument(isConst = false) {
2158 const start = this._lexer.token;
2159 const name = this.parseName();
2160 this.expectToken(_tokenKind.TokenKind.COLON);
2161 return this.node(start, {
2162 kind: _kinds.Kind.ARGUMENT,
2163 name,
2164 value: this.parseValueLiteral(isConst)
2165 });
2166 }
2167 parseConstArgument() {
2168 return this.parseArgument(true);
2169 }

Callers 1

parseConstArgumentMethod · 0.45

Calls 4

parseNameMethod · 0.45
expectTokenMethod · 0.45
nodeMethod · 0.45
parseValueLiteralMethod · 0.45

Tested by

no test coverage detected