getReferenceCycleOrNull

private fun getReferenceCycleOrNull(): List<Template>?(source)

Tries to find a recursive cycle of references within the current context starting at parent, returning null if there is no such cycle.