isEmpty property

  1. @override
bool isEmpty
override

This means only the {@link #EMPTY} (wildcard? not sure) context is in set.

Implementation

@override
bool get isEmpty {
  // since EMPTY_RETURN_STATE can only appear in the last position, we
  // don't need to verify that size==1
  return returnStates[0] == PredictionContext.EMPTY_RETURN_STATE;
}