diff --git a/src/graph.luau b/src/graph.luau index 68329c0..cdc00cc 100644 --- a/src/graph.luau +++ b/src/graph.luau @@ -72,6 +72,7 @@ local function assert_stable_scope(): Node end local function push_child(parent: SourceNode, child: Node) + if table.find(child.parents, parent) then return end table.insert(parent, child) table.insert(child.parents, parent) end