Python: Force read- and store steps to add nodes.

This gives muche nicer path explanations on some snapshots.
It is achieved by making stepped-to nodes `CastNode`s.
This seems somewhat reasonable as types then to change, when we move
between content and container.
We could probably refine it, though.
This commit is contained in:
Rasmus Lerchedahl Petersen
2020-11-27 11:54:59 +01:00
parent 2b54c33904
commit 5b51a3461d
2 changed files with 13 additions and 5 deletions

View File

@@ -819,7 +819,7 @@ class DataFlowType extends TDataFlowType {
/** A node that performs a type cast. */
class CastNode extends Node {
CastNode() { none() }
CastNode() { readStep(_, _, this) or storeStep(_, _, this) }
}
/**