@@ -157,7 +157,7 @@ public function toString(bool $showAlt): string
|
157 | 157 | $buf .= ',[' . $this->context . ']'; |
158 | 158 | } |
159 | 159 | |
160 | | -if ($this->semanticContext->equals(SemanticContext::none())) { |
| 160 | +if (!$this->semanticContext->equals(SemanticContext::none())) { |
161 | 161 | $buf .= ',' . $this->semanticContext; |
162 | 162 | } |
163 | 163 | |
@@ -177,9 +177,9 @@ public function __toString(): string
|
177 | 177 | $this->state, |
178 | 178 | $this->alt, |
179 | 179 | $this->context !== null ? ',[' . $this->context . ']' : '', |
180 | | -$this->semanticContext->equals(SemanticContext::none()) ? |
181 | | -',' . $this->semanticContext : |
182 | | -'', |
| 180 | +$this->semanticContext->equals(SemanticContext::none()) |
| 181 | +? '' |
| 182 | +: ',' . $this->semanticContext, |
183 | 183 | $this->reachesIntoOuterContext > 0 ? ',up=' . $this->reachesIntoOuterContext : '', |
184 | 184 | ); |
185 | 185 | } |
|