mirror of
https://github.com/github/codeql.git
synced 2025-12-17 17:23:36 +01:00
14 lines
379 B
Plaintext
14 lines
379 B
Plaintext
import csharp
|
|
|
|
private predicate inSpecificSource(Expr expr) {
|
|
expr.getFile().getBaseName() = "ConstInterpolatedString.cs"
|
|
}
|
|
|
|
query predicate inserts(InterpolatedStringExpr expr, Expr e) {
|
|
expr.getAnInsert() = e and inSpecificSource(expr)
|
|
}
|
|
|
|
query predicate texts(InterpolatedStringExpr expr, StringLiteral literal) {
|
|
expr.getAText() = literal and inSpecificSource(expr)
|
|
}
|