메소드 | 설명 | |
---|---|---|
__construct ( |
[__construct description] | |
afterTraverse ( array $nodes ) : array | Runs after all the nodes have been examined |
메소드 | 설명 | |
---|---|---|
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 | |
리턴 | array |
protected createPlaceHolderNodeFromTags ( array $tags ) : PhpParser\Node\Stmt\InlineHTML | ||
$tags | array | |
리턴 | PhpParser\Node\Stmt\InlineHTML |
protected findTagsInsideOfCondition ( PhpParser\Node\Stmt\If_ $node ) : array | ||
$node | PhpParser\Node\Stmt\If_ | |
리턴 | array |
protected findTagsInsideOfLoop ( $node ) : array | ||
리턴 | array |
protected findTagsInsideOfNode ( PhpParser\Node $node ) : array | ||
$node | PhpParser\Node | |
리턴 | array |
protected findTagsInsideOfStmts ( array $stmts ) : array | ||
$stmts | array | |
리턴 | array |