TypeScriptAST icon indicating copy to clipboard operation
TypeScriptAST copied to clipboard

JsDoc Comment is null

Open Sellorio opened this issue 6 years ago • 0 comments

When the following code:

/**
 * Property-based callback for X event
 * @param payload: the x payload payload
 */
@Input() public onX: (payload: XPayload) => void;

is navigated to via TypeScriptAST, the property's JsDoc contains a single entry. That entry's Comment property is null. I can't find any way to get the actual comment text without using property.GetTextWithComments() and manually parsing it.

Similarly, the parameter tag's comment is also not set - it is an empty string.

Sellorio avatar Sep 09 '19 23:09 Sellorio