CodeQL library for JavaScript/TypeScript
codeql/javascript-all 1.1.2-dev (changelog, source)
Search

Member predicate StringOps::ConcatenationRoot::getConstantStringParts

Returns the concatenation of all constant operands in this concatenation, ignoring the non-constant parts entirely.

For example, for the following concatenation

`Hello ${person}, how are you?`

the result is "Hello , how are you?"

string getConstantStringParts()