Skip to content

Add support for Ruby keyword arguments#3053

Merged
koesie10 merged 1 commit intomainfrom
koesie10/ruby-arguments
Nov 6, 2023
Merged

Add support for Ruby keyword arguments#3053
koesie10 merged 1 commit intomainfrom
koesie10/ruby-arguments

Conversation

@koesie10
Copy link
Copy Markdown
Member

@koesie10 koesie10 commented Nov 3, 2023

This adds support for Argument[key:] for Ruby. These are used for keyword arguments (in e.g. def method(key:).

The query will return keyword arguments as key:.

Based on #3052

Checklist

  • CHANGELOG.md has been updated to incorporate all user visible changes made by this pull request.
  • Issues have been created for any UI or other user-facing changes made by this pull request.
  • [Maintainers only] If this pull request makes user-facing changes that require documentation changes, open a corresponding docs pull request in the github/codeql repo and add the ready-for-doc-review label there.

Ruby keyword arguments are represented differently than positional
arguments in the MaD format: they are represented as `Method[key:]`. The
framework endpoints query also returns the name as `key:`, so we can
detect these and format them as such.
@koesie10 koesie10 force-pushed the koesie10/ruby-arguments branch from 37cc08a to 5f2a32a Compare November 3, 2023 13:35
@koesie10 koesie10 changed the title Add support for Ruby keyword and block arguments Add support for Ruby keyword arguments Nov 3, 2023
@koesie10 koesie10 marked this pull request as ready for review November 3, 2023 14:01
@koesie10 koesie10 requested a review from a team as a code owner November 3, 2023 14:01
Base automatically changed from koesie10/argument-self to main November 6, 2023 09:59
@koesie10 koesie10 merged commit 18d7fae into main Nov 6, 2023
@koesie10 koesie10 deleted the koesie10/ruby-arguments branch November 6, 2023 09:59
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