mirror of
https://github.com/github/codeql.git
synced 2025-12-18 01:33:15 +01:00
13 lines
216 B
Plaintext
13 lines
216 B
Plaintext
/**
|
|
* @name Test for literals
|
|
*/
|
|
|
|
import csharp
|
|
|
|
from Method m, StringLiteral l
|
|
where
|
|
m.hasName("MainLiterals") and
|
|
l.getEnclosingCallable() = m and
|
|
l.getValue().toUpperCase() = "TEST"
|
|
select l, l.getValue()
|