Skip to content

Commit a326149

Browse files
committed
JS: Stop dependeding on getPath() for toString()
1 parent 3e7c496 commit a326149

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

javascript/ql/lib/semmle/javascript/ApiGraphs.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -613,12 +613,12 @@ module API {
613613

614614
/** A node corresponding to a definition of an API component. */
615615
class Definition extends Node, Impl::TDef {
616-
override string toString() { result = "def " + this.getPath() }
616+
override string toString() { result = "def " + this.getInducingNode().toString() }
617617
}
618618

619619
/** A node corresponding to the use of an API component. */
620620
class Use extends Node, Impl::TUse {
621-
override string toString() { result = "use " + this.getPath() }
621+
override string toString() { result = "use " + this.getInducingNode().toString() }
622622
}
623623

624624
/** Gets the root node. */

0 commit comments

Comments
 (0)