We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a031b2a commit 854f2a0Copy full SHA for 854f2a0
java/ql/lib/semmle/code/java/Expr.qll
@@ -726,6 +726,9 @@ class StringLiteral extends Literal, @stringliteral {
726
*/
727
string getRepresentedString() { result = getValue() }
728
729
+ /** Holds if this string literal is a text block (`""" ... """`). */
730
+ predicate isTextBlock() { getLiteral().matches("\"\"\"%") }
731
+
732
override string getAPrimaryQlClass() { result = "StringLiteral" }
733
}
734
0 commit comments