Skip to content

Conversation

@AdrienBoulanger
Copy link
Contributor

Add a test.

@AdrienBoulanger AdrienBoulanger force-pushed the topic/T713-012.completion.generic_package branch from a64e9f2 to a4b4917 Compare August 30, 2022 13:38
@AdrienBoulanger AdrienBoulanger changed the title T713-012: Completion for generic package paramater T713-012: Completion for generic package parameter Aug 31, 2022
Fix PP offset and adapt tests. Add tests.
@AdrienBoulanger AdrienBoulanger force-pushed the topic/T713-012.completion.generic_package branch from a4b4917 to 7783e47 Compare September 1, 2022 13:38
Column : out Langkit_Support.Slocs.Column_Number)
return Libadalang.Analysis.Ada_Node'Class;
-- Get the node needed to match Pretty_Print_Rule
-- Column represent the block indentation level
Copy link
Collaborator

Choose a reason for hiding this comment

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

Offset might be a better name then

Copy link
Contributor Author

@AdrienBoulanger AdrienBoulanger Sep 2, 2022

Choose a reason for hiding this comment

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

In this case Offset = Column - 1, so we are really manipulating Column and not Offset

Copy link
Collaborator

Choose a reason for hiding this comment

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

Then I suggest to rename the parameter to Offset and fill it with Column - 1, will be clearer in my case

@AdrienBoulanger AdrienBoulanger merged commit 8b33b93 into master Sep 2, 2022
@AdrienBoulanger AdrienBoulanger deleted the topic/T713-012.completion.generic_package branch September 2, 2022 13:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants