From 21ed76f9e0239b85ad39eb9b82dea7a48d9dad59 Mon Sep 17 00:00:00 2001 From: ernisto Date: Sun, 23 Mar 2025 23:11:09 -0300 Subject: [PATCH] fix(graph): avoid repeatedly child of the same parent --- src/graph.luau | 1 + 1 file changed, 1 insertion(+) 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