-
-
Notifications
You must be signed in to change notification settings - Fork 428
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(wasm): remove type defs for ArrayExpressionElement
and Elision
#6683
base: 10-19-refactor_ast_tools_use_spaces_not_tabs_in_ts_type_defs
Are you sure you want to change the base?
Conversation
Your org has enabled the Graphite merge queue for merging into mainAdd the label “0-merge” to the PR and Graphite will automatically add it to the merge queue when it’s ready to merge. Or use the label “hotfix” to add to the merge queue as a hot fix. You must have a Graphite account and log in to Graphite in order to use the merge queue. Sign up using this link. |
e1c7f40
to
af4c74e
Compare
8938d54
to
a798ae6
Compare
ArrayExpressionElement
ArrayExpressionElement
and Elision
a798ae6
to
13f22eb
Compare
@ottomated This is the most substantial change in this stack of PRs. The change is correct, but implementation is maybe a bit hacky. You may see a better way to achieve this. |
CodSpeed Performance ReportMerging #6683 will not alter performanceComparing Summary
|
let ts_type_def = quote! { | ||
#[wasm_bindgen::prelude::wasm_bindgen(typescript_custom_section)] | ||
const TS_APPEND_CONTENT: &'static str = #ts_type_def; | ||
let ts_type_def = if let Some(ts_type_def) = ts_type_def { |
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.
Maybe Option::map_or would make this easier to read? I think the implementation is fine especially since it'll be temporary.
af4c74e
to
e4e1deb
Compare
13f22eb
to
e865bb8
Compare
Follow-on after #6404.
ArrayExpressionElement
andElision
are not used in the TS types, becauseArrayExpression
has an override for the field it uses.oxc/crates/oxc_ast/src/ast/js.rs
Lines 293 to 302 in 002289b
Prevent these TS type defs being emitted by introducing a new
#[estree(custom_ts_def)]
attr, to go with#[estree(custom_serialize)]
.