-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FEATURE] Make Fully Qualified name available in members node. (#41)
* [FEATURE] Make Fully Qualified name available in members node. This is used to suggest a rst reference snippet in the render-guides. I can then offer the following code in the suggest wizzard: :php:method:`somemanual:\LibraryName\LibraryClassFinal::firstmethod` Instead of something like this: :php:method:`somemanual:libraryname-libraryclassfinal-firstmethod` * [TASK] Update integration test baseline Whitespace handling changed in the guides, therefore our integration tests need to be updated for whitespace.
- Loading branch information
Showing
7 changed files
with
66 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?php | ||
|
||
namespace T3Docs\GuidesPhpDomain\Directives\Php; | ||
|
||
use phpDocumentor\Guides\Nodes\CollectionNode; | ||
use T3Docs\GuidesPhpDomain\Nodes\PhpComponentNode; | ||
use T3Docs\GuidesPhpDomain\Nodes\PhpMemberNode; | ||
|
||
trait ComponentTrait | ||
{ | ||
private function setParentsForMembers(CollectionNode $collectionNode, PhpComponentNode $node): void | ||
{ | ||
foreach ($collectionNode->getChildren() as $child) { | ||
if (!$child instanceof PhpMemberNode) { | ||
continue; | ||
} | ||
$child->setParentComponent($node); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters