Skip to content

Commit d77136f

Browse files
committed
JS: Name ClassInstance nodes differently
1 parent f7ec06a commit d77136f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -616,6 +616,11 @@ module API {
616616
override string toString() { result = "def " + this.getInducingNode().toString() }
617617
}
618618

619+
/** A node corresponding to a definition of an API component. */
620+
class ClassInstanceNode extends Definition, Impl::MkClassInstance {
621+
override string toString() { result = "instance of " + this.getInducingNode().toString() }
622+
}
623+
619624
/** A node corresponding to the use of an API component. */
620625
class Use extends Node, Impl::TUse {
621626
override string toString() { result = "use " + this.getInducingNode().toString() }

0 commit comments

Comments
 (0)