mirror of
https://github.com/github/codeql.git
synced 2026-04-30 11:15:13 +02:00
Merge pull request #6749 from aschackmull/java/istextblock
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