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

replace Dsymbol.comment with hash table #13769

Merged
merged 1 commit into from
Mar 7, 2022

Conversation

WalterBright
Copy link
Member

since according to #13762 it is 99.97% unused.

@WalterBright WalterBright added the Severity:Refactoring No semantic changes to code label Mar 5, 2022
@dlang-bot
Copy link
Contributor

Thanks for your pull request, @WalterBright!

Bugzilla references

Your PR doesn't reference any Bugzilla issue.

If your PR contains non-trivial changes, please reference a Bugzilla issue or create a manual changelog.

Testing this PR locally

If you don't have a local development environment setup, you can use Digger to test this PR:

dub run digger -- build "master + dmd#13769"

@WalterBright WalterBright force-pushed the DsymbolComment branch 2 times, most recently from e1295ac to 16f90c0 Compare March 5, 2022 23:53
Copy link
Contributor

@MoonlightSentinel MoonlightSentinel left a comment

Choose a reason for hiding this comment

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

The global state must be reset by dmd.frontend.deinitializeDMD

@WalterBright WalterBright force-pushed the DsymbolComment branch 3 times, most recently from 07920e8 to e4ca330 Compare March 6, 2022 02:05
@ibuclaw
Copy link
Member

ibuclaw commented Mar 6, 2022

since according to #13762 it is 99.97% unused.

How was this tested?

IIRC, comment is a dead field unless you are building ddoc. So that might dramatically swing the usage of it.

That is not to say however that default disabled behaviours should occupy space in the AST. I agree with the assessment that this is a superfluous field.

src/dmd/dsymbol.d Outdated Show resolved Hide resolved
@RazvanN7 RazvanN7 merged commit 5d405f1 into dlang:master Mar 7, 2022
@WalterBright WalterBright deleted the DsymbolComment branch March 8, 2022 06:37
@ibuclaw
Copy link
Member

ibuclaw commented Oct 1, 2023

This PR introduced a regression.

https://issues.dlang.org/show_bug.cgi?id=24171

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Severity:Refactoring No semantic changes to code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants