File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -441,14 +441,14 @@ namespace ts {
441
441
/* @internal */
442
442
export function parseIsolatedJSDocComment ( content : string , start ?: number , length ?: number ) {
443
443
const result = Parser . JSDocParser . parseIsolatedJSDocComment ( content , start , length ) ;
444
- if ( result . jsDocComment ) {
444
+ if ( result && result . jsDocComment ) {
445
445
// because the jsDocComment was parsed out of the source file, it might
446
446
// not be covered by the fixupParentReferences.
447
447
let parentNode : Node = result . jsDocComment ;
448
448
forEachChild ( result . jsDocComment , visitNode ) ;
449
449
450
450
function visitNode ( n : Node ) : void {
451
- if ( n . parent !== parentNode ) {
451
+ if ( n . parent === undefined ) {
452
452
n . parent = parentNode ;
453
453
454
454
const saveParent = parentNode ;
You can’t perform that action at this time.
0 commit comments