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 types for Regexp::Parser#parse in regexp_parser gem #453

Merged
merged 3 commits into from
Oct 28, 2023

Conversation

m11o
Copy link
Contributor

@m11o m11o commented Oct 15, 2023

Add RBS file for [email protected]
ref: https://github.com/ammar/regexp_parsers

I added only Regexp::Parser#parser method in this PR.
This gem has other many essential methods.
So, I'm going to split and open PRs including other essential methods in this gem.

Thanks.

@m11o m11o requested a review from pocke as a code owner October 15, 2023 16:16
class Regexp::Parser
def parse: (Regexp | String input, ?String? syntax, ?options: Integer?) { (Regexp::Expression::Root) -> untyped } -> untyped
| (Regexp | String input, ?String? syntax, ?options: Integer?) -> Regexp::Expression::Root
def self.parse: (Regexp | String input, ?String? syntax, ?options: Integer?) { (Regexp::Expression::Root) -> untyped } -> untyped
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@@ -0,0 +1,17 @@
class Regexp::Parser
def parse: (Regexp | String input, ?String? syntax, ?options: Integer?) { (Regexp::Expression::Root) -> untyped } -> untyped
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@pocke pocke enabled auto-merge (squash) October 28, 2023 04:25
@pocke pocke merged commit db87682 into ruby:main Oct 28, 2023
3 checks passed
@m11o m11o deleted the add-regexp-parser-types branch October 28, 2023 05:36
sw-square pushed a commit to sw-square/gem_rbs_collection that referenced this pull request Jan 22, 2024
* Add types for Regexp::Parser#parse in regexp_parser gem

Add RBS file for [email protected]
ref: https://github.com/ammar/regexp_parsers

* fix format

---------

Co-authored-by: Masataka Pocke Kuwabara <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants