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

feat(#24): parse struct method comments #34

Merged
merged 1 commit into from
Jan 6, 2024

Conversation

leorolland
Copy link
Collaborator

@leorolland leorolland commented Dec 31, 2023

closes #24

@leorolland leorolland force-pushed the parse-struct-methods-comments branch from 52f2739 to 92e9eae Compare December 31, 2023 13:28
@leorolland leorolland requested a review from Joffref December 31, 2023 13:30
@leorolland leorolland added the enhancement New feature or request label Dec 31, 2023
@Joffref
Copy link
Owner

Joffref commented Jan 4, 2024

Before reviewing this, why shouldn't we create a new method: parseMethodWithComment? Thus we won't have any nil arguments in the interface parser.

This method can wrap the call to parseMethod and the parseComments logic.

Would you have any thoughts on that? Feel free to ping me back to clarify 💯

@leorolland leorolland force-pushed the parse-struct-methods-comments branch from 92e9eae to 3dbe468 Compare January 5, 2024 17:01
internal/parser/methods.go Outdated Show resolved Hide resolved
internal/parser/struct.go Show resolved Hide resolved
@leorolland leorolland force-pushed the parse-struct-methods-comments branch from 3dbe468 to 7d4a917 Compare January 6, 2024 14:41
Copy link
Owner

@Joffref Joffref left a comment

Choose a reason for hiding this comment

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

LGTM

@Joffref Joffref merged commit 277ca20 into master Jan 6, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature]: parse methods comments
2 participants