mirror of
https://github.com/github/codeql.git
synced 2026-05-01 19:55:15 +02:00
Java: Add StringLiteral.isTextBlock().
This commit is contained in:
@@ -726,6 +726,9 @@ class StringLiteral extends Literal, @stringliteral {
|
||||
*/
|
||||
string getRepresentedString() { result = getValue() }
|
||||
|
||||
/** Holds if this string literal is a text block (`""" ... """`). */
|
||||
predicate isTextBlock() { getLiteral().matches("\"\"\"%") }
|
||||
|
||||
override string getAPrimaryQlClass() { result = "StringLiteral" }
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user