$identifier
$identifier :
Collects the MatchCandidates found during the token trie walk along with their token position. Positions for dynamic properties are also recorded for later use.
__construct( $identifier)
$identifier |
addMatchCandidates( $tokenPosition, $matchCandidates)
Store match candidates along with it's token position. The token position is used by the lookaround constraints.
$tokenPosition | ||
$matchCandidates |
addDynamicPropertyPosition( $component, $charPositionBeforeDynamicValue)
The component and character position are stored in a map with the component as the key as it will later be accessed.
If the same token appears multiple times in an BasicInput then only the last position will be stored with it. It may appear sensible to store all positions for a component to avoid losing the first position but it is more efficient to only store one position and to use rule constraints to prevent more than one of the same component being added.
$component | ||
$charPositionBeforeDynamicValue |
getDynamicPropertyPositions()
Warning: count(): Parameter must be an array or an object that implements Countable in /opt/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275 Warning: count(): Parameter must be an array or an object that implements Countable in /opt/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275
hasDynamicPropertyPositions()
Warning: count(): Parameter must be an array or an object that implements Countable in /opt/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275 Warning: count(): Parameter must be an array or an object that implements Countable in /opt/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275
getIdentifier()
Warning: count(): Parameter must be an array or an object that implements Countable in /opt/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275 Warning: count(): Parameter must be an array or an object that implements Countable in /opt/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275
getMatchCandidates()
Warning: count(): Parameter must be an array or an object that implements Countable in /opt/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275 Warning: count(): Parameter must be an array or an object that implements Countable in /opt/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275