-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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(es/ast): Add definite
and is_override
to AutoAccessor
#8436
Conversation
crates/swc_ecma_codegen/src/lib.rs
Outdated
if n.accessibility != Some(Accessibility::Public) { | ||
self.emit_accessibility(n.accessibility)?; | ||
} | ||
self.emit_accessibility(n.accessibility)?; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will internally handle whether to emit the accessibility or not (it's better if we emit the AST as-is as it allows someone to add public keywords if they'd like to and this change aligns this node with the other nodes).
Edit: Oh, maybe I only thought it worked this way because the CI was actually failing on the dep check. Edit 2: Ah, this does sometimes still error asking for a bump comment. |
definite
to AutoAccessor
definite
and is_override
to AutoAccessor
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! I'll merge this along with other AST-breaking changes.
swc-bump:
- swc_ecma_ast --breaking
I'll merge this into a new branch named |
**Description:** Adds a `definite` and `is_override` property to `AutoAccessor` as they were missing. It also fixes codegen for `AutoAccessor` when emitting TypeScript (which is the main reason I need this PR). **BREAKING CHANGE:** Adds a `definite` and `is_override` property. **Related issue:** - Closes #8344
Description:
Adds a
definite
andis_override
property toAutoAccessor
as they were missing.Also fixes codegen for
AutoAccessor
when emitting TypeScript (which is the main reason I need this PR).BREAKING CHANGE:
Adds a
definite
andis_override
property.Related issue (if exists):
Closes #8344