C#: Update parameter modifiers test to include lambda expression from the new test file.

This commit is contained in:
Michael Nebel
2026-02-06 14:37:50 +01:00
parent 62a6b5985d
commit e550d4937c

View File

@@ -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, _, _) }