Files
codeql/csharp/ql/test/library-tests/csharp11/strings.ql

14 lines
426 B
Plaintext

import csharp
query predicate interpolatedstrings(InterpolatedStringExpr se, Expr e) {
se.getFile().getStem() = "Strings" and
(e = se.getAText() or e = se.getAnInsert())
}
query predicate stringliterals(StringLiteral s, string qlclass, string type) {
s.getFile().getStem() = "Strings" and
s.getEnclosingCallable().getName() = ["M2", "M3"] and
qlclass = s.getAPrimaryQlClass() and
type = s.getType().toString()
}