in src/main/scala/com/twitter/stitch/Stitch.scala [2185:2198]
override def simplify(pending: Pending): Stitch[T] = {
self match {
case const: Const[T] => const
case _ =>
// letClear scope around the simplify call to the underlying Stitch and
// as a result any Stitches that Stitch contains
// i.e. this includes any `Stitch.Transform`, `Arrow.run`, etc
self = letter.letClear(self.simplify(pending))
self match {
case const: Const[T] => const
case _ => this
}
}
}