Closed seelchen closed 1 year ago
Thanks for catching that. I have actually never seen this strange UninitializedValue
expression. Seems to be a left over from some early days and should be removed.
Hi @oxisto ,
Could you have a plan to add the dataflow from the variable
(VariableDeclaration
) of ForEachStatement
to its DeclaredReferenceExpression
in ForEachStatement
. Now the dataflow from iterable
to variable(DeclarationStatement
) may has little significance.
Hi @oxisto , Could you have a plan to add the dataflow from the
variable
(VariableDeclaration
) ofForEachStatement
to itsDeclaredReferenceExpression
inForEachStatement
. Now the dataflow fromiterable
to variable(DeclarationStatement
) may has little significance.
I'll refer to the dataflow specialists @konradweiss and @KuechA :)
Good catch, I'll look into it
Unexpected behavior
When analyzing code with a for each loop, there is no dataflow from the
iterable
to thevariable
of theForEachStatement
. Thevariable
also hasUninitializedValue
asinitializer
which might be related to the missing dataflow.Example
Changes to the configuration