File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
javascript/ql/lib/semmle/javascript Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -296,7 +296,7 @@ module DOM {
296296 .getType ( )
297297 .getAnUnderlyingType ( )
298298 .( JSDocNamedTypeExpr )
299- .getName ( ) )
299+ .getRawName ( ) )
300300 )
301301 }
302302
Original file line number Diff line number Diff line change @@ -400,8 +400,8 @@ class ConstructorTag extends JSDocTag {
400400abstract private class NamedTypeReferent extends JSDocTag {
401401 /** Gets the name of the type to which this tag refers. */
402402 string getTarget ( ) {
403- result = this .getType ( ) .( JSDocNamedTypeExpr ) .getName ( ) or
404- result = this .getType ( ) .( JSDocAppliedTypeExpr ) .getHead ( ) .( JSDocNamedTypeExpr ) .getName ( )
403+ result = this .getType ( ) .( JSDocNamedTypeExpr ) .getRawName ( ) or
404+ result = this .getType ( ) .( JSDocAppliedTypeExpr ) .getHead ( ) .( JSDocNamedTypeExpr ) .getRawName ( )
405405 }
406406
407407 /**
@@ -423,7 +423,7 @@ abstract private class NamedTypeReferent extends JSDocTag {
423423 * Gets the source declaration of the type to which `tp` refers, if any.
424424 */
425425private ExternalType sourceDecl ( JSDocTypeExpr tp ) {
426- result .getQualifiedName ( ) = tp .( JSDocNamedTypeExpr ) .getName ( ) or
426+ result .getQualifiedName ( ) = tp .( JSDocNamedTypeExpr ) .getRawName ( ) or
427427 result = sourceDecl ( tp .( JSDocAppliedTypeExpr ) .getHead ( ) ) or
428428 result = sourceDecl ( tp .( JSDocNullableTypeExpr ) .getTypeExpr ( ) ) or
429429 result = sourceDecl ( tp .( JSDocNonNullableTypeExpr ) .getTypeExpr ( ) ) or
You can’t perform that action at this time.
0 commit comments