* some future reduction from a non-doomed StateNode. Because of
* this, we "garbage-collect" Nodes with doomed states if
* there are no more non-doomed Nodes which they could
- * affect (see Result, Reduction, and StateNode for details).
+ * affect (see ResultNode, Reduction, and StateNode for details).
*
* Without this optimization, many seemingly-innocuous uses
* of positive and negative conjuncts can trigger O(n^2)
if (t==null) for(Pos r : eofReductions) node.invoke(r, null, null);
else oreductions.invoke(t, node, null, null);
}
- void invokeReductions(Token t, StateNode node, Result b) {
- if (t==null) for(Pos r : eofReductions) node.invoke(r, b, null);
- else oreductions.invoke(t, node, b, null);
+ void invokeReductions(Token t, StateNode node, ResultNode only) {
+ if (t==null) for(Pos r : eofReductions) node.invoke(r, only, null);
+ else oreductions.invoke(t, node, only, null);
}
// Constructor //////////////////////////////////////////////////////////////////////////////