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.

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.
interface SimpleOrigin {
    id: NodeId;
    type: ReadVariableOrigin | WriteVariableOrigin | ConstantOrigin;
}

Properties

Properties

id: NodeId