Skip to content

Commit

Permalink
TASK: Rename Afx Parsing Node to AfxNode
Browse files Browse the repository at this point in the history
This will make it easier to import the correct Neos CR Node - which you will want to use 100% of the time instead.

Resolves partially #4341
  • Loading branch information
mhsdesign committed Sep 18, 2023
1 parent 96e4257 commit 017e7f3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,7 @@
use Neos\Fusion\Afx\Parser\AfxParserException;
use Neos\Fusion\Afx\Parser\Lexer;

/**
* Class Node
* @package Neos\Fusion\Afx\Parser\Expression
*/
class Node
class AfxNode
{
/**
* @param Lexer $lexer
Expand Down Expand Up @@ -85,7 +81,7 @@ public static function parse(Lexer $lexer): array
throw new AfxParserException(sprintf('Tag "%s" did not end with closing bracket.', $identifier), 1557860573);
}

$children = NodeList::parse($lexer);
$children = AfxNodeList::parse($lexer);

if ($lexer->isOpeningBracket()) {
$lexer->consume();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,7 @@
use Neos\Fusion\Afx\Parser\AfxParserException;
use Neos\Fusion\Afx\Parser\Lexer;

/**
* Class NodeList
* @package Neos\Fusion\Afx\Parser\Expression
*/
class NodeList
class AfxNodeList
{
/**
* @param Lexer $lexer
Expand Down Expand Up @@ -56,7 +52,7 @@ public static function parse(Lexer $lexer): array
$lexer->rewind();
$contents[] = [
'type' => 'node',
'payload' => Node::parse($lexer)
'payload' => AfxNode::parse($lexer)
];
$currentText = '';
continue;
Expand Down
2 changes: 1 addition & 1 deletion Neos.Fusion.Afx/Classes/Parser/Parser.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,6 @@ public function __construct($string)
*/
public function parse(): array
{
return Expression\NodeList::parse($this->lexer);
return Expression\AfxNodeList::parse($this->lexer);
}
}

0 comments on commit 017e7f3

Please sign in to comment.