Closed Ellpeck closed 1 month ago
So the problem is plain and simple:
environment: defaultEnv().pushEnv().defineParameter('g', '10', '11').defineVariable('f', '14', '16')
is wrong as it expects f
to be defined in the nested environment albeit <<-
causes it to be defined in the super environment so:
environment: defaultEnv().defineVariable('f', '14', '16').pushEnv().defineParameter('g', '10', '11')
fixes this issue. The parents refer to the parent ids of the respective environment (indicating the lexicographic scoping), yet to address this issue (which i presume is part of #800) i update the diffing information - yet again re-assigning the test-impl to #800.
This test, without any changes, produces the report
Removing the
f
node from the subflow environment yields the new reportSuddenly, an environment size of 0 is expected? After removing a single definition?
(Side note: The numbers noted as "parents" here seem... random? What do they refer to? Maybe there's room for improvement in the report here, though this might just be my lack of knowledge as well.)
Removing
g
instead off
from the subflow environment yields the reportNow, the
got
graph apparently has a definition forf
, but the definition isundefined
?Is this a bug in the dataflow analysis, or is the report inconsistent and/or the phrasing simply confusing?