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 {
296
296
.getType ( )
297
297
.getAnUnderlyingType ( )
298
298
.( JSDocNamedTypeExpr )
299
- .getName ( ) )
299
+ .getRawName ( ) )
300
300
)
301
301
}
302
302
Original file line number Diff line number Diff line change @@ -400,8 +400,8 @@ class ConstructorTag extends JSDocTag {
400
400
abstract private class NamedTypeReferent extends JSDocTag {
401
401
/** Gets the name of the type to which this tag refers. */
402
402
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 ( )
405
405
}
406
406
407
407
/**
@@ -423,7 +423,7 @@ abstract private class NamedTypeReferent extends JSDocTag {
423
423
* Gets the source declaration of the type to which `tp` refers, if any.
424
424
*/
425
425
private ExternalType sourceDecl ( JSDocTypeExpr tp ) {
426
- result .getQualifiedName ( ) = tp .( JSDocNamedTypeExpr ) .getName ( ) or
426
+ result .getQualifiedName ( ) = tp .( JSDocNamedTypeExpr ) .getRawName ( ) or
427
427
result = sourceDecl ( tp .( JSDocAppliedTypeExpr ) .getHead ( ) ) or
428
428
result = sourceDecl ( tp .( JSDocNullableTypeExpr ) .getTypeExpr ( ) ) or
429
429
result = sourceDecl ( tp .( JSDocNonNullableTypeExpr ) .getTypeExpr ( ) ) or
You can’t perform that action at this time.
0 commit comments