Quantcast

Move debugging code for OvaleCompile into OvaleCompile module.

Johnny C. Lam [03-12-13 - 04:46]
Move debugging code for OvaleCompile into OvaleCompile module.

git-svn-id: svn://svn.curseforge.net/wow/ovale/mainline/trunk@754 d5049fe3-3747-40f7-a4b5-f36d6801af5f
Filename
Ovale.lua
OvaleCompile.lua
diff --git a/Ovale.lua b/Ovale.lua
index 8350763..bc946b6 100644
--- a/Ovale.lua
+++ b/Ovale.lua
@@ -62,10 +62,6 @@ function Ovale:debugPrint(flag, ...)
 	end
 end

-function Ovale:Debug()
-	self:Print(OvaleCompile:DebugNode(OvaleCompile.masterNodes[1]))
-end
-
 -- Print the auras matching the filter on the target in alphabetical order.
 function Ovale:DebugListAura(target, filter)
 	local i = 1
diff --git a/OvaleCompile.lua b/OvaleCompile.lua
index acdfd4e..9c70a2b 100644
--- a/OvaleCompile.lua
+++ b/OvaleCompile.lua
@@ -689,6 +689,10 @@ function OvaleCompile:Compile()
 	Ovale:UpdateFrame()
 end

+function OvaleCompile:Debug()
+	Ovale:Print(self:DebugNode(self.masterNodes[1]))
+end
+
 function OvaleCompile:DebugNode(node)
 	local text
 	if (not node) then