mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 20:29:18 +00:00
LibCpp: Fix positional information of Pointer types
This commit is contained in:
parent
1dfdfcf820
commit
9a31fb6673
Notes:
sideshowbarker
2024-07-18 10:30:13 +09:00
Author: https://github.com/itamar8910
Commit: 9a31fb6673
Pull-request: https://github.com/SerenityOS/serenity/pull/8403
Reviewed-by: https://github.com/awesomekling
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