Skip to content

Commit 385f80b

Browse files
author
Robert Masen
committed
working
1 parent 25181aa commit 385f80b

File tree

1 file changed

+3
-3
lines changed
  • crates/cli-support/src/js

1 file changed

+3
-3
lines changed

crates/cli-support/src/js/mod.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ pub struct ExportedClass {
4343
}
4444

4545
struct ClassField {
46-
comments: String,
46+
comments: Vec<String>,
4747
name: String,
4848
readonly: bool,
4949
}
@@ -568,7 +568,7 @@ impl<'a> Context<'a> {
568568
if !dst.ends_with("\n") {
569569
dst.push_str("\n");
570570
}
571-
dst.push_str(&field.comments);
571+
dst.push_str(&format_doc_comments(&field.comments, Some(js_doc)));
572572
dst.push_str("get ");
573573
dst.push_str(&field.name);
574574
dst.push_str(&get);
@@ -1622,7 +1622,7 @@ impl<'a, 'b> SubContext<'a, 'b> {
16221622
class.fields.extend(s.fields.iter().map(|f| ClassField {
16231623
name: f.name.clone(),
16241624
readonly: f.readonly,
1625-
comments: format_doc_comments(&f.comments, None),
1625+
comments: f.comments.clone(),
16261626
}));
16271627
}
16281628

0 commit comments

Comments
 (0)