You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
create a code 1 and scope 1 individually on the canvas.
drag code 1 into the scope 1. By now, everything works well.
create a larger scope 2, drag scope 1 into scope 2
Now, the level of code 1 and scope 1 are the same. To compare that clearly, create a code 2 and drag it into scope 1, see their background colors in the minimap, which are supposed to be the same as their parents are scope 1.
Solution
Therefore, I propose to update node.level in a pre-order DFS way to ensure all involved descendant nodes are in correct levels, or the rendering order and background colors are incorrect.