aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/guile/skribilo/resolve.scm12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/guile/skribilo/resolve.scm b/src/guile/skribilo/resolve.scm
index ba5af6a..94ab360 100644
--- a/src/guile/skribilo/resolve.scm
+++ b/src/guile/skribilo/resolve.scm
@@ -196,6 +196,18 @@
node)
+(define-method (do-resolve! (node <command>) engine env)
+ (with-debug 5 'do-resolve<command>
+ (debug-item "node=" node)
+ (let ((p (assq 'parent env)))
+ (slot-set! node 'parent (and (pair? p) (pair? (cdr p)) (cadr p))))
+ (for-each (lambda (n)
+ (do-resolve! n engine env))
+ (command-body node))
+ node))
+
+
+
;;;; ======================================================================
;;;;
;;;; RESOLVE-PARENT