Skip to content

Commit

Permalink
fix(app): ts.getJSDocTags availability
Browse files Browse the repository at this point in the history
fix #104
  • Loading branch information
vogloblinsky committed Feb 7, 2017
1 parent 2f0b4f9 commit 4f035e7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/app/compiler/dependencies.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,12 +144,12 @@ export class Dependencies {

});

RouterParser.printModulesRoutes();
/*RouterParser.printModulesRoutes();
RouterParser.printRoutes();
RouterParser.linkModulesAndRoutes();
RouterParser.constructModulesTree();
RouterParser.constructRoutesTree();
RouterParser.constructRoutesTree();*/

return deps;
}
Expand Down
6 changes: 5 additions & 1 deletion src/utils/ts-internal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,9 @@ const tsany = ts as any;

// https://github.com/Microsoft/TypeScript/blob/2.1/src/compiler/utilities.ts#L1507
export function getJSDocs(node: ts.Node) {
return tsany.getJSDocs.apply(this, arguments);
if (tsany.getJSDocs) {
return tsany.getJSDocs.apply(this, arguments);
} else {
return [];
}
}

0 comments on commit 4f035e7

Please sign in to comment.