Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion src/generators/legacy-json/utils/parseList.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,14 @@ export function parseList(section, nodes) {

// Update the section based on its type and parsed values
switch (section.type) {
case 'ctor':
case 'ctor': {
const signature = parseSignature(section.textRaw, values);

Object.keys(signature).forEach(key => (section[key] ??= signature[key]));

Comment thread
avivkeller marked this conversation as resolved.
Outdated
break;
}
Comment thread
avivkeller marked this conversation as resolved.
Outdated

case 'classMethod':
case 'method':
// For methods and constructors, parse and attach signatures
Expand Down
Loading