Skip to content

Conversation

AnthonyLeonardoGracio
Copy link
Collaborator

No description provided.


function Is_End_Label (Node : Ada_Node) return Boolean
is
(not Node.Parent.Is_Null and then Node.Parent.Kind in Ada_End_Name);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the test needs to be improved a little bit for the case the first parent is a DottedName which is itself child of the EndName - for instance in end <package>.<subpackage>

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, I'll check this

And add a test case to make sure that we filter out child package end labels too.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants