@@ -102,6 +102,10 @@ discard block |
||
102 | 102 | ); |
103 | 103 | } |
104 | 104 | } |
105 | + |
|
106 | + /** |
|
107 | + * @param string $content |
|
108 | + */ |
|
105 | 109 | public function createScopeForFile(File $file, $content, Index $index, $rewrite = true) |
106 | 110 | { |
107 | 111 | $startParser = microtime(1); |
@@ -114,6 +118,10 @@ discard block |
||
114 | 118 | $this->getLogger()->info("Parsing: [$end]s"); |
115 | 119 | return $scope; |
116 | 120 | } |
121 | + |
|
122 | + /** |
|
123 | + * @param string $hash |
|
124 | + */ |
|
117 | 125 | public function processFileScope(File $file, Index $index, FileScope $scope = null, $hash = null) |
118 | 126 | { |
119 | 127 | if (empty($scope)) { |
@@ -2,10 +2,7 @@ |
||
2 | 2 | |
3 | 3 | namespace Padawan\Framework\Generator; |
4 | 4 | |
5 | -use Padawan\Domain\Project\Node\ClassData; |
|
6 | -use Padawan\Domain\Project\Node\InterfaceData; |
|
7 | 5 | use Padawan\Domain\Event\IndexGenerationEvent; |
8 | -use Padawan\Framework\Domain\Project\InMemoryIndex; |
|
9 | 6 | use Padawan\Domain\Project; |
10 | 7 | use Padawan\Domain\Project\File; |
11 | 8 | use Padawan\Domain\Project\Index; |
@@ -88,6 +88,10 @@ |
||
88 | 88 | } |
89 | 89 | return $nodes; |
90 | 90 | } |
91 | + |
|
92 | + /** |
|
93 | + * @param \Padawan\Domain\Project\Index $index |
|
94 | + */ |
|
91 | 95 | public function setIndex($index) |
92 | 96 | { |
93 | 97 | foreach ($this->walkers as $walker) { |
@@ -4,7 +4,6 @@ |
||
4 | 4 | |
5 | 5 | use Padawan\Domain\Project\FQN; |
6 | 6 | use Padawan\Domain\Project\Node\Uses; |
7 | -use Padawan\Framework\Utils\PathResolver; |
|
8 | 7 | use PhpParser\ParserFactory; |
9 | 8 | use PhpParser\NodeTraverser as Traverser; |
10 | 9 | use Psr\Log\LoggerInterface; |