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

Method parseDirective

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

* ``` * Directive[Const] : @ Name Arguments[?Const]? * ```

(isConst)

Source from the content-addressed store, hash-verified

2394 * ```
2395 */
2396 parseDirective(isConst) {
2397 const start = this._lexer.token;
2398 this.expectToken(_tokenKind.TokenKind.AT);
2399 return this.node(start, {
2400 kind: _kinds.Kind.DIRECTIVE,
2401 name: this.parseName(),
2402 arguments: this.parseArguments(isConst)
2403 });
2404 }
2405 // Implements the parsing rules in the Types section.
2406 /**
2407 * Type :

Callers 1

parseDirectivesMethod · 0.45

Calls 4

expectTokenMethod · 0.45
nodeMethod · 0.45
parseNameMethod · 0.45
parseArgumentsMethod · 0.45

Tested by

no test coverage detected