Skip to content

Conversation

jakebailey
Copy link
Member

Found in #717.

@Copilot Copilot AI review requested due to automatic review settings May 23, 2025 16:23
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR fixes a missing early return in GetRootSymbols, ensuring that once root symbols are collected recursively, the result is immediately returned instead of falling through to the default case.

  • Added return result inside the recursion branch of GetRootSymbols
Comments suppressed due to low confidence (1)

internal/checker/services.go:344

  • Add unit tests for GetRootSymbols covering cases where symbols have multiple levels of roots to ensure the new return path produces the correct flattened list.
return result

Copy link
Member

@gabritto gabritto left a comment

Choose a reason for hiding this comment

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

Oops! Thanks for fixing this.

@jakebailey jakebailey added this pull request to the merge queue May 23, 2025
Merged via the queue into main with commit 0a11b9f May 23, 2025
23 checks passed
@jakebailey jakebailey deleted the jabaile/fix-GetRootSymbols branch May 23, 2025 16:56
zshannon pushed a commit to zshannon/typescript-go that referenced this pull request Oct 6, 2025
zshannon pushed a commit to zshannon/typescript-go that referenced this pull request Oct 6, 2025
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