public function inlineModifierPass(MacroTokens $tokens)
{
$result = new MacroTokens();
while ($tokens->nextToken()) {
if ($tokens->isCurrent('(', '[')) {
$result->tokens = array_merge($result->tokens, $this->inlineModifierInner($tokens));
} else {
$result->append($tokens->currentToken());
}
}
return $result;
}