Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SONARPY-2346 Remove usage of old ProjectLevelSymbolTable#from using V1 symbols #2199

Merged
merged 4 commits into from
Dec 4, 2024

Conversation

ghislainpiot
Copy link
Contributor

@ghislainpiot ghislainpiot commented Dec 2, 2024

SONARPY-2394

  • SONARPY-2346 Remove usage of old ProjectLevelSymbolTable#from using V1 symbols
  • Cleanup DescriptorUtils

@hashicorp-vault-sonar-prod hashicorp-vault-sonar-prod bot changed the title SONARPY 2346 SONARPY-2394 SONARPY 2346 Dec 2, 2024
@ghislainpiot ghislainpiot changed the title SONARPY-2394 SONARPY 2346 SONARPY-2346 Remove usage of old ProjectLevelSymbolTable#from using V1 symbols Dec 2, 2024
@ghislainpiot ghislainpiot requested a review from Seppli11 December 2, 2024 13:10
Copy link
Contributor

@Seppli11 Seppli11 left a comment

Choose a reason for hiding this comment

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

Overall, it looks good to me. However, I had some questions during the review and left some nitpicks.

classASymbol.addSuperClass(new SymbolImpl("BaseException", "BaseException"));
Map<String, Set<Descriptor>> globalDescriptors = Collections.singletonMap("mod1",
Collections.singleton(
new ClassDescriptor("A", "mod1.A", Collections.singleton("BaseException"), Set.of(), false, null, false, false, null, false)));
FileInput tree = parse(
Copy link
Contributor

Choose a reason for hiding this comment

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

nitpick: Could a ClassDescriptorBuilder be used?

@ghislainpiot ghislainpiot requested a review from Seppli11 December 2, 2024 15:47
Copy link
Contributor

@Seppli11 Seppli11 left a comment

Choose a reason for hiding this comment

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

LGTM!

@ghislainpiot ghislainpiot merged commit 33ea204 into master Dec 4, 2024
12 checks passed
@ghislainpiot ghislainpiot deleted the SONARPY-2346 branch December 4, 2024 08:38
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.

2 participants