-
Notifications
You must be signed in to change notification settings - Fork 57
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: correct interface properties and methods #213
Changes from all commits
ec86c34
ce1c350
9dcf778
2957f26
65dc6ec
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,6 +16,10 @@ lazy_static! { | |
static ref JS_DOC_RE: Regex = Regex::new(r#"\s*\* ?"#).unwrap(); | ||
} | ||
|
||
pub(crate) fn is_false(b: &bool) -> bool { | ||
!b | ||
} | ||
Comment on lines
+19
to
+21
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oof 🙈 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is there a better way? Just trying to strip out "useless" fields from the JSON serialization, as with large doc structures, it becomes a "problem". There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I feel like we should use this and stuff like There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
No, I think this is right. Still pretty funny though 😅 |
||
|
||
fn parse_js_doc(js_doc_comment: &Comment) -> JsDoc { | ||
let txt = js_doc_comment | ||
.text | ||
|
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.
No big deal, but this isn't really related to swc.
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.
There was no other good place to put it and I wasn't going to just create another module for it.