Skip to content

Commit

Permalink
chore(doc-gen): fix when decorator has no argument list
Browse files Browse the repository at this point in the history
  • Loading branch information
petebacondarwin committed Jul 28, 2015
1 parent 35597a8 commit 81d298d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ module.exports = function readTypeScriptModules(tsParser, modules, getFileInfo,
var decorators = declaration.decorators && declaration.decorators.map(function(decorator) {
decorator = decorator.expression;
return {
name: decorator.expression.text,
name: decorator.expression ? decorator.expression.text : decorator.text,
arguments: decorator.arguments && decorator.arguments.map(function(argument) {
return getText(sourceFile, argument).trim();
})
Expand Down

0 comments on commit 81d298d

Please sign in to comment.