Method | Description | |
---|---|---|
__construct ( |
[__construct description] | |
afterTraverse ( array $nodes ) : array | Runs after all the nodes have been examined |
Method | Description | |
---|---|---|
createPlaceHolderNodeFromTags ( array $tags ) : PhpParser\Node\Stmt\InlineHTML | Create the placeholder nodes from the listed tags | |
findTagsInsideOfCondition ( PhpParser\Node\Stmt\If_ $node ) : array | Gets a list of tags inside of a condition | |
findTagsInsideOfLoop ( $node ) : array | Returns a list of tags inside of loop | |
findTagsInsideOfNode ( PhpParser\Node $node ) : array | Gets a list of tags inside of a node | |
findTagsInsideOfStmts ( array $stmts ) : array | Finds all the tags inside of stmts and also recursively modifies the AST putting placeholder tags all the way down in the tree (for nested loops and conditions) |
public __construct ( |
||
$DeviseParser |
public afterTraverse ( array $nodes ) : array | ||
$nodes | array | |
return | array |
protected createPlaceHolderNodeFromTags ( array $tags ) : PhpParser\Node\Stmt\InlineHTML | ||
$tags | array | |
return | PhpParser\Node\Stmt\InlineHTML |
protected findTagsInsideOfCondition ( PhpParser\Node\Stmt\If_ $node ) : array | ||
$node | PhpParser\Node\Stmt\If_ | |
return | array |
protected findTagsInsideOfLoop ( $node ) : array | ||
return | array |
protected findTagsInsideOfNode ( PhpParser\Node $node ) : array | ||
$node | PhpParser\Node | |
return | array |
protected findTagsInsideOfStmts ( array $stmts ) : array | ||
$stmts | array | |
return | array |