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 lexer/token.rbs #161

Merged
merged 2 commits into from
Oct 27, 2023
Merged

add lexer/token.rbs #161

merged 2 commits into from
Oct 27, 2023

Conversation

Little-Rubyist
Copy link
Contributor

relation: #114


def to_s: () -> String
def referred_by?: (String string) -> bool
def ==: (Token other) -> bool
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm only worried about the argument type of the == method.

Copy link
Collaborator

Choose a reason for hiding this comment

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

The code can handle other type objects however I expect other is Token. Therefore let's try Token for the argument type.

@yui-knk yui-knk merged commit 9ec1aa6 into ruby:master Oct 27, 2023
@yui-knk
Copy link
Collaborator

yui-knk commented Oct 27, 2023

LGTM, thank you!

@Little-Rubyist Little-Rubyist deleted the add_token_rbs branch October 27, 2023 05:51
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