Files
codeql/csharp/ql/test/library-tests/dataflow/ssa/SsaCapturedVariableDef.ql
2019-01-11 13:55:28 +01:00

11 lines
370 B
Plaintext

import csharp
from string inout, Ssa::ExplicitDefinition def, Ssa::Definition targetDef, Call c
where
inout = "in" and def.isCapturedVariableDefinitionFlowIn(targetDef, c)
or
inout = "out" and
def.isCapturedVariableDefinitionFlowOut(targetDef) and
targetDef.(Ssa::ImplicitCallDefinition).getCall() = c
select inout, def.getSourceVariable(), def, targetDef, c