@@ -128,6 +128,7 @@ discard block |
||
128 | 128 | * @uses Context::getNamespace() to determine with what to prefix the type name. |
129 | 129 | * |
130 | 130 | * @param string $type The relative or absolute type. |
131 | + * @param Context $context |
|
131 | 132 | */ |
132 | 133 | public function resolve(string $type, ?Context $context = null) : Type |
133 | 134 | { |
@@ -408,6 +409,7 @@ discard block |
||
408 | 409 | * Resolves the given FQSEN string into an FQSEN object. |
409 | 410 | * |
410 | 411 | * @psalm-pure |
412 | + * @param Context $context |
|
411 | 413 | */ |
412 | 414 | private function resolveTypedObject(string $type, ?Context $context = null) : Object_ |
413 | 415 | { |
@@ -536,6 +538,7 @@ discard block |
||
536 | 538 | |
537 | 539 | /** |
538 | 540 | * @psalm-pure |
541 | + * @param Type $keyType |
|
539 | 542 | */ |
540 | 543 | private function makeCollectionFromObject(Object_ $object, Type $valueType, ?Type $keyType = null) : Collection |
541 | 544 | { |
@@ -409,13 +409,24 @@ discard block |
||
409 | 409 | throw new RuntimeException('Invalid $classType provided'); |
410 | 410 | } |
411 | 411 | |
412 | + /** |
|
413 | + * @param integer $symbol |
|
414 | + */ |
|
412 | 415 | protected function traceNewState($state, $symbol) { |
413 | 416 | echo '% State ' . $state |
414 | 417 | . ', Lookahead ' . ($symbol == self::SYMBOL_NONE ? '--none--' : $this->symbolToName[$symbol]) . "\n"; |
415 | 418 | } |
419 | + |
|
420 | + /** |
|
421 | + * @param integer $symbol |
|
422 | + */ |
|
416 | 423 | protected function traceRead($symbol) { |
417 | 424 | echo '% Reading ' . $this->symbolToName[$symbol] . "\n"; |
418 | 425 | } |
426 | + |
|
427 | + /** |
|
428 | + * @param integer $symbol |
|
429 | + */ |
|
419 | 430 | protected function traceShift($symbol) { |
420 | 431 | echo '% Shift ' . $this->symbolToName[$symbol] . "\n"; |
421 | 432 | } |
@@ -428,6 +439,10 @@ discard block |
||
428 | 439 | protected function tracePop($state) { |
429 | 440 | echo '% Recovering, uncovered state ' . $state . "\n"; |
430 | 441 | } |
442 | + |
|
443 | + /** |
|
444 | + * @param integer $symbol |
|
445 | + */ |
|
431 | 446 | protected function traceDiscard($symbol) { |
432 | 447 | echo '% Discard ' . $this->symbolToName[$symbol] . "\n"; |
433 | 448 | } |