chore(doc-gen): fix when decorator has no argument list
This commit is contained in:
		
							parent
							
								
									35597a8349
								
							
						
					
					
						commit
						81d298dc6b
					
				| @ -250,7 +250,7 @@ module.exports = function readTypeScriptModules(tsParser, modules, getFileInfo, | |||||||
|     var decorators = declaration.decorators && declaration.decorators.map(function(decorator) { |     var decorators = declaration.decorators && declaration.decorators.map(function(decorator) { | ||||||
|       decorator = decorator.expression; |       decorator = decorator.expression; | ||||||
|       return { |       return { | ||||||
|         name: decorator.expression.text, |         name: decorator.expression ? decorator.expression.text : decorator.text, | ||||||
|         arguments: decorator.arguments && decorator.arguments.map(function(argument) { |         arguments: decorator.arguments && decorator.arguments.map(function(argument) { | ||||||
|           return getText(sourceFile, argument).trim(); |           return getText(sourceFile, argument).trim(); | ||||||
|         }) |         }) | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user