An origin that indicates that the definition is read, written, or simply a constant.
These origins only reference the 'direct' dependencies. There is no transitivity.
Example
x <- 2 print(x)
Requesting the origins for the use of x in print(x) returns a ReadVariableOrigin for the definition of x in the first line.
Asking for the origin of the 2 in x <- 2 returns a ConstantOrigin for itself.
Asking for the origin of x in x <- 2 returns a WriteVariableOrigin for the variable x.
An origin that indicates that the definition is read, written, or simply a constant. These origins only reference the 'direct' dependencies. There is no transitivity.
Example
x
inprint(x)
returns a ReadVariableOrigin for the definition ofx
in the first line.2
inx <- 2
returns a ConstantOrigin for itself.x
inx <- 2
returns a WriteVariableOrigin for the variablex
.