Skip to content

Commit

Permalink
Add graph fetch Reason "WALKABLE_GRAPH_OTHER" to indicate we need all…
Browse files Browse the repository at this point in the history
… node entry attributes for a walkable graph.

PiperOrigin-RevId: 378031048
  • Loading branch information
janakdr authored and copybara-github committed Jun 7, 2021
1 parent 070aa54 commit 149882a
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,9 @@ enum Reason {
/** The node is being looked up to service {@link WalkableGraph#getValueAndRdeps}. */
WALKABLE_GRAPH_VALUE_AND_RDEPS,

/** The node is being looked up to service another "graph lookup" function. */
WALKABLE_GRAPH_OTHER,

/** Some other reason than one of the above that needs the node's value and deps. */
OTHER_NEEDING_VALUE_AND_DEPS,

Expand All @@ -186,7 +189,8 @@ public boolean isWalkable() {
return this == WALKABLE_GRAPH_VALUE
|| this == WALKABLE_GRAPH_DEPS
|| this == WALKABLE_GRAPH_RDEPS
|| this == WALKABLE_GRAPH_VALUE_AND_RDEPS;
|| this == WALKABLE_GRAPH_VALUE_AND_RDEPS
|| this == WALKABLE_GRAPH_OTHER;
}
}

Expand Down

0 comments on commit 149882a

Please sign in to comment.