@@ -488,9 +488,17 @@ public Stream<LoadOption> children() {
488
488
@ Override
489
489
public void dotGraphEdge (LoadOption from , PrintWriter dotGraph ) {
490
490
dotGraph .printf ("\t %s->%s [label=\" Breaks\" , dir=both, color=red];\n " , from .hashCode (), breaks .hashCode ());
491
- if (rule .unless != null ) {
492
- for (LoadOption option : rule .unless .getNodesTo ()) {
493
- dotGraph .printf ("\t %s->%s [label=\" Unless\" , color=blue];\n " , from .hashCode (), option .hashCode ());
491
+ if (rule .unless != null ) {
492
+ if (rule .unless instanceof QuiltRuleDepOnly ) {
493
+ for (LoadOption option : rule .unless .getNodesTo ()) {
494
+ dotGraph .printf ("\t %s->%s [label=\" Unless\" , color=blue];\n " , from .hashCode (), option .hashCode ());
495
+ }
496
+ } else if (rule .unless instanceof QuiltRuleDepAny ) {
497
+ for (QuiltRuleDepOnly only : ((QuiltRuleDepAny ) rule .unless ).options ) {
498
+ for (LoadOption option : only .getNodesTo ()) {
499
+ dotGraph .printf ("\t %s->%s [label=\" Unless\" , color=blue];\n " , from .hashCode (), option .hashCode ());
500
+ }
501
+ }
494
502
}
495
503
}
496
504
}
@@ -654,10 +662,10 @@ public Stream<LoadOption> children() {
654
662
655
663
@ Override
656
664
public void dotGraphEdge (LoadOption from , PrintWriter dotGraph ) {
657
- dotGraph .printf ("\t %s->%s [label=\" Depends\" ];\n " , from .hashCode (), depends .hashCode ());
658
- dotGraph .printf ("\t %s [label=\" Any Of\" , shape=\" invtriangle\" ];\n " , depends .hashCode ());
665
+ dotGraph .printf ("\t %s->%s [label=\" Depends\" ];\n " , from .hashCode (), depends .hashCode () + 31 );
666
+ dotGraph .printf ("\t %s [label=\" Any Of\" , shape=\" invtriangle\" ];\n " , depends .hashCode () + 31 );
659
667
for (LoadOption b : depends ) {
660
- dotGraph .printf ("\t %s->%s [label=\" Depends\" ];\n " , depends .hashCode (), b .hashCode ());
668
+ dotGraph .printf ("\t %s->%s [label=\" Depends\" ];\n " , depends .hashCode () + 31 , b .hashCode ());
661
669
}
662
670
}
663
671
0 commit comments