Skip to content
This repository was archived by the owner on Dec 26, 2025. It is now read-only.

feat: walk deeply nested selector expressions#3

Merged
kyoh86 merged 1 commit intokyoh86:mainfrom
kalexmills:nested-selector-expr
Nov 24, 2020
Merged

feat: walk deeply nested selector expressions#3
kyoh86 merged 1 commit intokyoh86:mainfrom
kalexmills:nested-selector-expr

Conversation

@kalexmills
Copy link
Contributor

Hello! I like this project a lot. I'm planning on using a fork of it for a data analysis project I'm running against go repositories on GitHub.

As part of the changes I'm making, I've enabled the analysis to search through arbitrarily nested SelectorExpr nodes. Please find the changes along with an additional test included as part of the PR.

Thanks for making a great tool!

return nil
}

func selectorRoot(selector *ast.SelectorExpr) *ast.Ident {
Copy link
Owner

Choose a reason for hiding this comment

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

💭 Maybe we can write them more simple

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Almost certainly. 😅 I'm looking forward to see how you edit it.

Copy link
Owner

@kyoh86 kyoh86 left a comment

Choose a reason for hiding this comment

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

@kalexmills thank you for your contribution.
It's looks good to me with nits.

@kyoh86 kyoh86 merged commit 40c4231 into kyoh86:main Nov 24, 2020
@kalexmills kalexmills deleted the nested-selector-expr branch November 24, 2020 00:18
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants