Skip to content

Conversation

@fstxz
Copy link
Contributor

@fstxz fstxz commented Nov 14, 2025

Fixes #173

When class_name_statement is annotated and extends_statement is on the same line as class_name_statement, then extends_statement node is the third child, not second as was described in a comment. This would prevent GdTree::move_extends_statement method from finding the extends_statement node and moving it.

This PR adds a function that searches for a child node with a specific grammar name instead of accessing the node by index.

@NathanLovato NathanLovato merged commit ad80396 into GDQuest:main Nov 14, 2025
1 check passed
@NathanLovato
Copy link
Contributor

Thank you very much!

@fstxz fstxz deleted the extends-annotation branch November 14, 2025 17:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Error occurs on @abstract class_name and extends keyword is in the same line

2 participants