function parseDirective() { $start = $this->lexer->token; $this->expect(Token::AT); return new DirectiveNode(['name' => $this->parseName(), 'arguments' => $this->parseArguments(), 'loc' => $this->loc($start)]); }