Method: ArrayPredictionContext#initialzie
- Defined in:
- lib/antlr4/PredictionContext.rb
#initialzie(parents, returnStates) ⇒ Object
Parent can be null only if full ctx mode and we make an array
from {@link #EMPTY} and non-empty. We merge {@link #EMPTY} by using null parent and
returnState == {@link #EMPTY_RETURN_STATE}.
202 203 204 205 206 207 208 |
# File 'lib/antlr4/PredictionContext.rb', line 202 def initialzie(parents, returnStates) super(PredictionContext.calculateHashCode(parents, returnStates)) # assert parents is not None and len(parents)>0 # assert returnStates is not None and len(returnStates)>0 self.parents = parents self.returnStates = returnStates end |