Skip to content

Remove unnecessary condition of RDoc::TokenStream.to_html #553

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

Merged
merged 2 commits into from
Nov 21, 2017

Conversation

aycabta
Copy link
Member

@aycabta aycabta commented Nov 10, 2017

RDoc::TokenStream.to_html checks that :on_op and EXPR_ARG token comes for treating it as identifier but the case never come because RDoc::RipperStateLex#get_op_tk set :on_ident and EXPR_ARG when :on_op as identifier before RDoc::TokenStream.to_html.

RDoc::TokenStream.to_html checks that :on_op and EXPR_ARG token comes
for treating it as identifier but the case never come because
RDoc::RipperStateLex#get_op_tk set :on_ident and EXPR_ARG when `:on_op`
as identifier before RDoc::TokenStream.to_html.
@hsbt hsbt merged commit fff6970 into ruby:master Nov 21, 2017
@hsbt
Copy link
Member

hsbt commented Nov 21, 2017

I confirmed to the same result with master branch applied to patch additional test of this branch.

@aycabta aycabta deleted the remove-unnecessary-condition branch November 21, 2017 10:05
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