mirror of
https://github.com/github/codeql.git
synced 2026-02-11 20:51:06 +01:00
C#: Update parameter modifiers test to include lambda expression from the new test file.
This commit is contained in:
@@ -1,7 +1,12 @@
|
||||
import csharp
|
||||
|
||||
class TestParameter extends Parameter {
|
||||
TestParameter() { this.getFile().getBaseName() = "ParameterModifiers.cs" }
|
||||
TestParameter() {
|
||||
this.getFile().getBaseName() = "ParameterModifiers.cs"
|
||||
or
|
||||
this.getFile().getBaseName() = "LambdaParameterModifiers.cs" and
|
||||
this.getCallable() instanceof LambdaExpr
|
||||
}
|
||||
}
|
||||
|
||||
query predicate parameterModifier(TestParameter p, int kind) { params(p, _, _, _, kind, _, _) }
|
||||
|
||||
Reference in New Issue
Block a user