Adds childForDebugging parameter to NodeEntry.signalDep method.

PiperOrigin-RevId: 215994280
diff --git a/src/main/java/com/google/devtools/build/skyframe/InMemoryNodeEntry.java b/src/main/java/com/google/devtools/build/skyframe/InMemoryNodeEntry.java
index fcc1d3b..b5627a5 100644
--- a/src/main/java/com/google/devtools/build/skyframe/InMemoryNodeEntry.java
+++ b/src/main/java/com/google/devtools/build/skyframe/InMemoryNodeEntry.java
@@ -453,17 +453,19 @@
 
   @Override
   public synchronized boolean signalDep() {
-    return signalDep(/*childVersion=*/ IntVersion.of(Long.MAX_VALUE));
+    return signalDep(/*childVersion=*/ IntVersion.of(Long.MAX_VALUE), /*childForDebugging=*/ null);
   }
 
   @Override
-  public synchronized boolean signalDep(Version childVersion) {
-    Preconditions.checkState(!isDone(), "Value must not be done in signalDep %s", this);
-    Preconditions.checkState(isEvaluating(), this);
+  public synchronized boolean signalDep(Version childVersion, @Nullable SkyKey childForDebugging) {
+    Preconditions.checkState(
+        !isDone(), "Value must not be done in signalDep %s child=%s", this, childForDebugging);
+    Preconditions.checkState(isEvaluating(), "%s %s", this, childForDebugging);
     signaledDeps++;
     if (isDirty()) {
       dirtyBuildingState.signalDepInternal(
-          childCausesReevaluation(lastEvaluatedVersion, childVersion), isReady());
+          childCausesReevaluation(lastEvaluatedVersion, childVersion, childForDebugging),
+          isReady());
     }
     return isReady();
   }
@@ -655,7 +657,10 @@
   }
 
   /** True if the child should cause re-evaluation of this node. */
-  protected boolean childCausesReevaluation(Version lastEvaluatedVersion, Version childVersion) {
+  protected boolean childCausesReevaluation(
+      Version lastEvaluatedVersion,
+      Version childVersion,
+      @Nullable SkyKey unusedChildForDebugging) {
     // childVersion > lastEvaluatedVersion
     return !childVersion.atMost(lastEvaluatedVersion);
   }