C#: Restrict ExplicitParameterNode to those that belong to unbound callables

This commit is contained in:
Tom Hvitved
2021-12-10 10:30:40 +01:00
parent 4a331814a2
commit e47e824e16

View File

@@ -691,7 +691,7 @@ private module Cached {
not def.(Ssa::ExplicitDefinition).getADefinition() instanceof
AssignableDefinitions::ImplicitParameterDefinition
} or
TExplicitParameterNode(DotNet::Parameter p) { p.isUnboundDeclaration() } or
TExplicitParameterNode(DotNet::Parameter p) { p = any(DataFlowCallable c).getAParameter() } or
TInstanceParameterNode(Callable c) {
c.isUnboundDeclaration() and not c.(Modifiable).isStatic()
} or