sample-proxies/graphql-sample/graphql-proxy/apiproxy/resources/jsc/graphql.jsc.js
/**
     * DirectiveDefinition :
     *   - Description? directive @ Name ArgumentsDefinition? on DirectiveLocations
     */
DirectiveDefinition :
- Description. directive @ Name ArgumentsDefinition.
DirectiveDefinition : - Description . directive @ Name ArgumentsDefinition .
function parseDirectiveDefinition(lexer) {
      var start = lexer.token;
      var description = parseDescription(lexer);
      expectKeyword(lexer, 'directive');
      expect(lexer, TokenKind.AT);
      var name = parseName(lexer);
      var args = parseArgumentDefs(lexer);
      expectKeyword(lexer, 'on');
      var locations = parseDirectiveLocations(lexer);
      return {
        kind: Kind.DIRECTIVE_DEFINITION,
        description: description,
        name: name,
        arguments: args,
        locations: locations,
        loc: loc(lexer, start)
      };
    }
function parseDirectiveDefinition ( lexer ) { var start = lexer . token ; var description = parseDescription ( lexer ) ; expectKeyword ( lexer , 'directive' ) ; expect ( lexer , TokenKind . AT ) ; var name = parseName ( lexer ) ; var args = parseArgumentDefs ( lexer ) ; expectKeyword ( lexer , 'on' ) ; var locations = parseDirectiveLocations ( lexer ) ; return { kind : Kind . DIRECTIVE_DEFINITION , description : description , name : name , arguments : args , locations : locations , loc : loc ( lexer , start ) } ; }
DirectiveDefinition :
   - Description?
DirectiveDefinition : - Description?