Lines Matching refs:this

31      * The ATN state associated with this configuration.
38 * What alt (or lexer rule) is predicted by this configuration.
46 * with this config. We track only those contexts pushed during
56 * no way to do this efficiently, we simply cannot evaluate
65 * is also backed by this field. Since the field is publicly accessible, the
67 * store this field. This choice minimizes the risk that code which only
68 * compares this value to 0 would be affected by the new purpose of the
92 $this->state = $state;
93 $this->alt = $alt ?? 0;
94 $this->context = $context;
95 $this->semanticContext = $semanticContext ?? SemanticContext::none();
97 $this->state = $state ?? $oldConfig->state;
98 $this->alt = $alt ?? $oldConfig->alt;
99 $this->context = $context ?? $oldConfig->context;
100 $this->semanticContext = $semanticContext ?? $oldConfig->semanticContext;
101 $this->reachesIntoOuterContext = $oldConfig->reachesIntoOuterContext;
112 return $this->reachesIntoOuterContext & ~self::SUPPRESS_PRECEDENCE_FILTER;
117 return ($this->reachesIntoOuterContext & self::SUPPRESS_PRECEDENCE_FILTER) !== 0;
123 $this->reachesIntoOuterContext |= self::SUPPRESS_PRECEDENCE_FILTER;
125 $this->reachesIntoOuterContext &= ~self::SUPPRESS_PRECEDENCE_FILTER;
135 if ($this === $other) {
140 && $this->alt === $other->alt
141 && $this->isPrecedenceFilterSuppressed() === $other->isPrecedenceFilterSuppressed()
142 && $this->semanticContext->equals($other->semanticContext)
143 && Equality::equals($this->state, $other->state)
144 && Equality::equals($this->context, $other->context);
150 $this->state->stateNumber,
151 $this->alt,
152 $this->context,
153 $this->semanticContext
159 $buf = '(' . $this->state;
162 $buf .= ',' . $this->alt;
165 if ($this->context !== null) {
166 $buf .= ',[' . $this->context . ']';
169 if ($this->semanticContext->equals(SemanticContext::none())) {
170 $buf .= ',' . $this->semanticContext;
173 if ($this->getOuterContextDepth() > 0) {
174 $buf .= ',up=' . $this->getOuterContextDepth();
186 $this->state,
187 $this->alt,
188 $this->context !== null ? ',[' . $this->context . ']' : '',
189 $this->semanticContext !== null && $this->semanticContext->equals(SemanticContext::none()) ?
190 ',' . $this->semanticContext :
192 $this->reachesIntoOuterContext > 0 ? ',up=' . $this->reachesIntoOuterContext : ''