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

Add "Add documentation" code action to stub out documentation for a function #1206

Merged
merged 3 commits into from
May 5, 2024

Commits on May 4, 2024

  1. Generalize SyntaxRefactoringCodeActionProvider to work with EditRefac…

    …toringProvider
    
    Rather than only adapt refactoring actions that conform to
    SyntaxRefactoringProvider, which takes a syntax node and produces a
    syntax node, adapt to the less-constraining EditRefactoringProvider,
    which takes a syntax node and produces edits. We can map edits over
    just as effectively.
    DougGregor committed May 4, 2024
    Configuration menu
    Copy the full SHA
    ab32186 View commit details
    Browse the repository at this point in the history
  2. Add "Add documentation" code action to stub out documentation for a f…

    …unction
    
    This code action takes an undocumented function declaration like
    
        func refactor(syntax: DeclSyntax, in context: Void) -> DeclSyntax?
    
    and adds stub documentation for the parameters / result / etc., like this:
    
        /// A description
        /// - Parameters:
        ///   - syntax:
        ///   - context:
        ///
        /// - Returns:
    DougGregor committed May 4, 2024
    Configuration menu
    Copy the full SHA
    b628738 View commit details
    Browse the repository at this point in the history

Commits on May 5, 2024

  1. Configuration menu
    Copy the full SHA
    c298626 View commit details
    Browse the repository at this point in the history