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

Method parseObjectField

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

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

(isConst)

Source from the content-addressed store, hash-verified

2365 * ObjectField[Const] : Name : Value[?Const]
2366 */
2367 parseObjectField(isConst) {
2368 const start = this._lexer.token;
2369 const name = this.parseName();
2370 this.expectToken(_tokenKind.TokenKind.COLON);
2371 return this.node(start, {
2372 kind: _kinds.Kind.OBJECT_FIELD,
2373 name,
2374 value: this.parseValueLiteral(isConst)
2375 });
2376 }
2377 // Implements the parsing rules in the Directives section.
2378 /**
2379 * Directives[Const] : Directive[?Const]+

Callers 1

itemMethod · 0.45

Calls 4

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

Tested by

no test coverage detected