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

Fix full name of known class #873

Merged
merged 1 commit into from
Mar 16, 2022
Merged

Fix full name of known class #873

merged 1 commit into from
Mar 16, 2022

Conversation

nobu
Copy link
Member

@nobu nobu commented Mar 16, 2022

Properly set the name of File::Constants, which is the only name with a namespace in RDoc::KNOWN_CLASSES, and fixes longstanding bug that File::Constants becomes File::File::Constants.

When it is generated by rb_file_const in dir.c, name is set to the qualified name as same as full_name, and generated in the normal way in file.c later, already set full_name is cleared and name will be constructed from the enclosing namespace and the name.
It will results in duplicated namespace, File::File::Constants.

Properly set the name of `File::Constants`, which is the only name
with a namespace in `RDoc::KNOWN_CLASSES`.  When it is generated
by `rb_file_const` in dir.c, `name` is set to the qualified name
as same as `full_name`, and generated in the normal way in file.c
later, already set `full_name` is cleared and `name` will be
constructed from the enclosing namespace and the `name`.  It will
results in duplicated namespace, `File::File::Constants`.
@nobu nobu merged commit 3a8d6df into ruby:master Mar 16, 2022
@nobu nobu deleted the fix-FConst branch March 16, 2022 06:06
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.

1 participant