Skip to content

Commit 50202d5

Browse files
committed
JS: Update some deprecated calls to getName()
1 parent c8817d9 commit 50202d5

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

javascript/ql/lib/semmle/javascript/DOM.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ module DOM {
296296
.getType()
297297
.getAnUnderlyingType()
298298
.(JSDocNamedTypeExpr)
299-
.getName())
299+
.getRawName())
300300
)
301301
}
302302

javascript/ql/lib/semmle/javascript/Externs.qll

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -400,8 +400,8 @@ class ConstructorTag extends JSDocTag {
400400
abstract 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
*/
425425
private 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

0 commit comments

Comments
 (0)