add depends_on info to resolve trace
Matt S Trout [Sat, 3 Mar 2018 20:39:52 +0000 (20:39 +0000)]
lib/DX/Step/ResolveProposition.pm

index f2d2f27..1b4cd26 100644 (file)
@@ -72,6 +72,15 @@ sub apply_to {
             [ block => [ @{$self->actions} ] ],
           ] ]
         : ()),
+      [ statement => [
+        [ symbol => 'depends_on' ],
+        [ pairs => [
+          map [
+            (split '::', ${$_->[0]})[-1],
+            [ value_path => [ @{$_}[1..$#$_] ] ]
+          ], @{$self->depends_on}
+        ] ],
+      ] ],
     ] ]
   ] ];
   my $ns = do {