Java: Add pragma[only_bind_out] to Top::toString() calls

This commit is contained in:
Chuan-kai Lin
2023-05-04 11:46:35 -07:00
parent e42bf2efd8
commit d968cee2c4
4 changed files with 19 additions and 9 deletions

View File

@@ -26,7 +26,7 @@ class Exception extends Element, @exception {
/** Holds if this exception has the specified `name`. */
override predicate hasName(string name) { this.getType().hasName(name) }
override string toString() { result = this.getType().toString() }
override string toString() { result = pragma[only_bind_out](this.getType()).toString() }
override string getAPrimaryQlClass() { result = "Exception" }
}