src/Language/Parser.php
private function parseArgumentDefs()
    {
        if (! $this->peek(Token::PAREN_L)) {
            return new NodeList([]);
        }

        return $this->many(
            Token::PAREN_L,
            function () {
                return $this->parseInputValueDef();
            },
            Token::PAREN_R
        );
    }
private function parseArgumentDefs()
    {
        if (! $this->peek(Token::PAREN_L)) {
            return new NodeList([]);
        }

        return $this->many(
            Token::PAREN_L,
            function () {
                return $this->parseInputValueDef();
            },
            Token::PAREN_R
        );
    }
private function parseArgumentDefs ( ) { if ( ! $ this -> peek ( Token :: PAREN_L ) ) { return new NodeList ( [ ] ) ; } return $ this -> many ( Token :: PAREN_L , function ( ) { return $ this -> parseInputValueDef ( ) ; } , Token :: PAREN_R ) ; }
@return InputValueDefinitionNode[]|NodeList

@throws SyntaxError
@return InputValueDefinitionNode [] |NodeList