Skip to content

Commit

Permalink
fix(deps): function parameter undefined in Miscellaneous - Functions
Browse files Browse the repository at this point in the history
fix #389
  • Loading branch information
vogloblinsky committed Nov 28, 2017
1 parent a295357 commit e29a56c
Showing 1 changed file with 21 additions and 16 deletions.
37 changes: 21 additions & 16 deletions src/app/compiler/dependencies.ts
Original file line number Diff line number Diff line change
Expand Up @@ -753,22 +753,22 @@ export class Dependencies {

private mapType(type): string | undefined {
switch (type) {
case 94:
return 'Null';
case 118:
return 'Any';
case 121:
return 'Boolean';
case 129:
return 'Never';
case 132:
return 'Number';
case 134:
return 'String';
case 137:
return 'Undefined';
case 157:
return 'TypeReference';
case 95:
return 'null';
case 119:
return 'any';
case 122:
return 'boolean';
case 130:
return 'never';
case 133:
return 'number';
case 136:
return 'string';
case 139:
return 'undefined';
case 159:
return 'typeReference';
}
}

Expand Down Expand Up @@ -798,6 +798,11 @@ export class Dependencies {
result.jsdoctags = markedtags(jsdoctags[0].tags);
}
}
if (result.jsdoctags && result.jsdoctags.length > 0) {
result.jsdoctags = mergeTagsAndArgs(result.args, result.jsdoctags);
} else if (result.args.length > 0) {
result.jsdoctags = mergeTagsAndArgs(result.args);
}
return result;
}

Expand Down

0 comments on commit e29a56c

Please sign in to comment.