function parseNamedType() { $start = $this->lexer->token; return new NamedTypeNode(['name' => $this->parseName(), 'loc' => $this->loc($start)]); }