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(generators): Make scrub_ public #7940

Merged
merged 2 commits into from Mar 15, 2024
Merged

Conversation

cpcallen
Copy link
Contributor

The basics

The details

Resolves

Fixes #2156

Proposed Changes

Make remove protected access modifier from CodeGenerator.prototype.scrub_, making it public.

Reason for Changes

In PRs #7602, #7616, #7646, #7647 and #7654 the @protected access modifier on scrub_ overrides subclasse of CodeGenerator not transcribed to the new typescript signature. I was going to re-add it, but this breaks some of the procedure block generator functions which rely on it, and then @BeksOmega pointed out that this might be one of the CodeGenerator API functions which we had already decided should be public—and lo and behold I found #2156.

Per discussion amongst team, I am not renaming it to scrub at this time.

Test Coverage

Passes npm test.

Documentation

Documentation will need updating in the usual way.

Fixes google#2156.

In PRs google#7602, google#7616, google#7646, google#7647 and google#7654 the @Protected
access modifier on scrub_ on the CodeGenerator subclasses
was not transcribed to the new typescript signature.  I was
going to re-add it, but this breaks some of the procedure
block generator functions which rely on it, and then
@BeksOmega pointed out that this might be one of the
CodeGenerator API functions which we had already decided
should be public—and lo and behold I found google#2156.

Per discussion amongst team, I am not renaming it to
scrub at this time.
@cpcallen cpcallen requested a review from a team as a code owner March 15, 2024 21:37
@cpcallen cpcallen requested a review from maribethb March 15, 2024 21:37
@github-actions github-actions bot added PR: fix Fixes a bug and removed PR: fix Fixes a bug labels Mar 15, 2024
Copy link
Contributor

@maribethb maribethb left a comment

Choose a reason for hiding this comment

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

lgtm pending format

@cpcallen cpcallen merged commit a6208d7 into google:develop Mar 15, 2024
6 checks passed
@cpcallen cpcallen deleted the fix/scrub branch March 15, 2024 22:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make Generator.scrub_ public
2 participants