mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 04:48:14 +00:00
LibCpp: Fix positional information of Pointer types
This commit is contained in:
parent
1dfdfcf820
commit
9a31fb6673
3 changed files with 8 additions and 8 deletions
|
@ -1189,7 +1189,7 @@ NonnullRefPtr<Type> Parser::parse_type(ASTNode& parent)
|
|||
while (!eof() && peek().type() == Token::Type::Asterisk) {
|
||||
type->set_end(position());
|
||||
auto asterisk = consume();
|
||||
auto ptr = create_ast_node<Pointer>(parent, asterisk.start(), asterisk.end());
|
||||
auto ptr = create_ast_node<Pointer>(parent, type->start(), asterisk.end());
|
||||
type->set_parent(*ptr);
|
||||
ptr->m_pointee = type;
|
||||
ptr->set_end(position());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue