Completed
Push — master ( 598945...316866 )
by Kirill
09:09
created
src/Grammar/Analyzer.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
     /**
75 75
      * Build the analyzer of the rules (does not analyze the rules).
76 76
      *
77
-     * @return Rule[]|\Traversable
77
+     * @return \Generator
78 78
      * @throws GrammarException
79 79
      */
80 80
     public function analyze(): iterable
@@ -309,7 +309,7 @@  discard block
 block discarded – undo
309 309
      * Implementation of “simple”.
310 310
      *
311 311
      * @param LookaheadIterator $tokens
312
-     * @param int|string|null $pNodeId
312
+     * @param string|null $pNodeId
313 313
      * @return string|int|null
314 314
      * @throws GrammarException
315 315
      */
Please login to merge, or discard this patch.
src/Grammar/Delegate/RuleDelegate.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
     }
40 40
 
41 41
     /**
42
-     * @param RuleInterface|NodeInterface $rule
42
+     * @param null|NodeInterface $rule
43 43
      * @return \Traversable
44 44
      */
45 45
     private function getTokens(RuleInterface $rule): \Traversable
Please login to merge, or discard this patch.
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -18,9 +18,7 @@
 block discarded – undo
18 18
 use Railt\Parser\Ast\NodeInterface;
19 19
 use Railt\Parser\Ast\Rule;
20 20
 use Railt\Parser\Ast\RuleInterface;
21
-use Railt\Parser\Environment;
22 21
 use Railt\Parser\Grammar;
23
-use Railt\Parser\GrammarInterface;
24 22
 
25 23
 /**
26 24
  * Class RuleDelegate
Please login to merge, or discard this patch.
src/Grammar/Reader.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,6 @@
 block discarded – undo
15 15
 use Railt\Io\Readable;
16 16
 use Railt\Lexer\Driver\NativeRegex;
17 17
 use Railt\Lexer\LexerInterface;
18
-use Railt\Parser\Ast\RuleInterface;
19 18
 use Railt\Parser\Driver\Llk;
20 19
 use Railt\Parser\Grammar;
21 20
 use Railt\Parser\GrammarInterface;
Please login to merge, or discard this patch.