SingletonPredictionContext constructor

SingletonPredictionContext(
  1. PredictionContext? parent,
  2. int returnState
)

Implementation

SingletonPredictionContext(this.parent, this.returnState)
    : super(parent != null
          ? PredictionContext.calculateHashCode([parent], [returnState])
          : PredictionContext.calculateEmptyHashCode()) {
  assert(returnState != ATNState.INVALID_STATE_NUMBER);
}