@eagleoutice/flowr - v2.10.1
    Preparing search index...
    • Obtain the (dataflow) origin of a given node in the dfg.

      Parameters

      Returns Origin[] | undefined

      x <- 2
      if(u) {
      x <- 3
      }
      print(x)

      Requesting the origin of x in the print(x) node yields two SimpleOriginOrigin|variable origins for both definitions of x. Similarly, requesting the origin of print returns a BuiltInFunctionOrigin.

      This returns undefined only if there is no dataflow correspondence (e.g. in case of unevaluated non-standard eval).