-
-
Notifications
You must be signed in to change notification settings - Fork 525
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(parser): export_named_type should parse default as normal #4903
Conversation
f0b123b
to
293ba94
Compare
CodSpeed Performance ReportMerging #4903 will not alter performanceComparing Summary
|
This comment was marked as resolved.
This comment was marked as resolved.
@@ -0,0 +1,13 @@ | |||
--- | |||
biome_js_parser: patch |
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.
You must add the cli
package too. Please read the contribution guide regarding the changesets
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.
done, thanks for the reminder.
a6af0c9
to
339feb4
Compare
it seems the ci not stable... |
339feb4
to
5dbc643
Compare
crates/biome_analyze/src/lib.rs
Outdated
@@ -2,7 +2,6 @@ | |||
|
|||
use biome_console::markup; | |||
use biome_parser::AnyParse; | |||
use std::cmp::Ordering; |
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.
I think you made a mistake and added a commit/change from the other PR
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.
sorry, my git broken, i fix this
5dbc643
to
e0efc89
Compare
@@ -954,6 +954,7 @@ where | |||
// { type as } // name: `as` type-export: `true` | |||
// { type as as } // name: `type` type-export: `false` (aliased to `as`) | |||
// { type as as as } // name: `as` type-export: `true`, aliased to `as` | |||
// { type default as as } // name: 'as' type-export: `true`, aliased to `as` |
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.
We don't use inline tests anymore. They were left there after we moved to a new testing infrastructure, so there's no need to add new comments like this one
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.
done
e0efc89
to
176d6f2
Compare
closes: #4765
Summary
The following code:
it should be parsed without error.
I just add a simple judge when parser meet
T![default]
, and deal this to type alias, so it can be parsed successfully.Test Plan
i add test case.