@@ -1933,10 +1933,10 @@ impl<'a> Context<'a> {
1933
1933
let docs = format_doc_comments ( & export. comments , Some ( raw_docs) ) ;
1934
1934
match export. kind {
1935
1935
AuxExportKind :: Getter { .. } => {
1936
- exported. push_field ( name, & js, Some ( & ret_ty) , true ) ;
1936
+ exported. push_field ( & docs , name, & js, Some ( & ret_ty) , true ) ;
1937
1937
}
1938
1938
AuxExportKind :: Setter { .. } => {
1939
- exported. push_field ( name, & js, None , false ) ;
1939
+ exported. push_field ( & docs , name, & js, None , false ) ;
1940
1940
}
1941
1941
AuxExportKind :: StaticFunction { .. } => {
1942
1942
exported. push ( & docs, name, "static " , & js, & ts) ;
@@ -2187,7 +2187,8 @@ impl ExportedClass {
2187
2187
/// Note that the `ts` is optional and it's expected to just be the field
2188
2188
/// type, not the full signature. It's currently only available on getters,
2189
2189
/// but there currently has to always be at least a getter.
2190
- fn push_field ( & mut self , field : & str , js : & str , ts : Option < & str > , getter : bool ) {
2190
+ fn push_field ( & mut self , docs : & str , field : & str , js : & str , ts : Option < & str > , getter : bool ) {
2191
+ self . contents . push_str ( docs) ;
2191
2192
if getter {
2192
2193
self . contents . push_str ( "get " ) ;
2193
2194
} else {
0 commit comments