JS: Make CaptureNode.toString() more explicit

This commit is contained in:
Asger F
2024-05-06 13:51:35 +02:00
parent 536c115c1c
commit f43a189f06

View File

@@ -55,7 +55,7 @@ class CaptureNode extends DataFlow::Node, TSynthCaptureNode {
override StmtContainer getContainer() { result = this.getNode().getEnclosingCallable() }
cached
private string toStringInternal() { result = this.getNode().toString() }
private string toStringInternal() { result = this.getNode().toString() + " [capture node]" }
override string toString() { result = this.toStringInternal() } // cached in parent class