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

Added suport for parsing comments inside of function bodies #1824

Merged
merged 2 commits into from
Jun 21, 2024

Commits on May 11, 2024

  1. (changed) README.md

    - added documentation for --parseFuncBody flag
    
    (changed) main.go
    - added --parseFuncBody flag flag
    
    (changed) gen.go
    - added ParseFuncBody to  Config struct
    
    (changed) parser_test.go
    - added tests for ParseRouterAPIInfo changes to parse comments inside of functions
    
    (changed) parser.go
    - added ParseFuncBody to Parser struct
    - modified ParseRouterAPIInfo to parse comments from AstFileInfo.File.Comments instead of from AstFileInfo..File.Decls[].Doc.List if parser.ParseFuncBody set to true
    - moved logic for comment parsing from ParseRouterAPIInfo to parseRouterAPIInfoComment
    - moved fileInfo.ParseFlag & ParseOperations checks to top of function with early return
    j-d-ha committed May 11, 2024
    Configuration menu
    Copy the full SHA
    92e690b View commit details
    Browse the repository at this point in the history

Commits on May 13, 2024

  1. removed not needed tests

    j-d-ha committed May 13, 2024
    Configuration menu
    Copy the full SHA
    ca316df View commit details
    Browse the repository at this point in the history