Property | Type | Description | |
---|---|---|---|
$anonId | |||
$astParser | |||
$astTraverser | |||
$block | |||
$ctx | |||
$currentClass | |||
$currentNamespace | |||
$fileName | |||
$script |
Method | Description | |
---|---|---|
__construct ( PhpParser\Parser $astParser, |
||
parse ( string $code, string $fileName ) | ||
parseAst ( array $ast, string $fileName ) : |
||
parseNodes ( array $nodes, |
Method | Description | |
---|---|---|
parseArg ( PhpParser\Node\Arg $expr ) | ||
parseExprList ( array $expr, integer $readWrite = self::MODE_NONE ) : |
||
parseExprNode ( $expr ) | ||
parseExpr_Array ( PhpParser\Node\Expr\Array_ $expr ) | ||
parseExpr_ArrayDimFetch ( PhpParser\Node\Expr\ArrayDimFetch $expr ) | ||
parseExpr_Assign ( PhpParser\Node\Expr\Assign $expr ) | ||
parseExpr_AssignRef ( PhpParser\Node\Expr\AssignRef $expr ) | ||
parseExpr_BitwiseNot ( PhpParser\Node\Expr\BitwiseNot $expr ) | ||
parseExpr_BooleanNot ( PhpParser\Node\Expr\BooleanNot $expr ) | ||
parseExpr_ClassConstFetch ( PhpParser\Node\Expr\ClassConstFetch $expr ) | ||
parseExpr_Clone ( PhpParser\Node\Expr\Clone_ $expr ) | ||
parseExpr_Closure ( |
||
parseExpr_ConstFetch ( PhpParser\Node\Expr\ConstFetch $expr ) | ||
parseExpr_Empty ( PhpParser\Node\Expr\Empty_ $expr ) | ||
parseExpr_ErrorSuppress ( PhpParser\Node\Expr\ErrorSuppress $expr ) | ||
parseExpr_Eval ( PhpParser\Node\Expr\Eval_ $expr ) | ||
parseExpr_Exit ( PhpParser\Node\Expr\Exit_ $expr ) | ||
parseExpr_FuncCall ( PhpParser\Node\Expr\FuncCall $expr ) | ||
parseExpr_Include ( PhpParser\Node\Expr\Include_ $expr ) | ||
parseExpr_Instanceof ( PhpParser\Node\Expr\InstanceOf_ $expr ) | ||
parseExpr_Isset ( PhpParser\Node\Expr\Isset_ $expr ) | ||
parseExpr_MethodCall ( PhpParser\Node\Expr\MethodCall $expr ) | ||
parseExpr_New ( PhpParser\Node\Expr\New_ $expr ) | ||
parseExpr_PostDec ( PhpParser\Node\Expr\PostDec $expr ) | ||
parseExpr_PostInc ( PhpParser\Node\Expr\PostInc $expr ) | ||
parseExpr_PreDec ( PhpParser\Node\Expr\PreDec $expr ) | ||
parseExpr_PreInc ( PhpParser\Node\Expr\PreInc $expr ) | ||
parseExpr_Print ( PhpParser\Node\Expr\Print_ $expr ) | ||
parseExpr_PropertyFetch ( PhpParser\Node\Expr\PropertyFetch $expr ) | ||
parseExpr_ShellExec ( PhpParser\Node\Expr\ShellExec $expr ) | ||
parseExpr_StaticCall ( PhpParser\Node\Expr\StaticCall $expr ) | ||
parseExpr_StaticPropertyFetch ( PhpParser\Node\Expr\StaticPropertyFetch $expr ) | ||
parseExpr_Ternary ( PhpParser\Node\Expr\Ternary $expr ) | ||
parseExpr_UnaryMinus ( PhpParser\Node\Expr\UnaryMinus $expr ) | ||
parseExpr_UnaryPlus ( PhpParser\Node\Expr\UnaryPlus $expr ) | ||
parseExpr_Yield ( PhpParser\Node\Expr\Yield_ $expr ) | ||
parseFunc ( |
||
parseIf ( PhpParser\Node\Stmt\If_ | PhpParser\Node\Stmt\ElseIf_ $node, |
||
parseListAssignment ( |
||
parseNode ( PhpParser\Node $node ) | ||
parseStmt_Class ( |
||
parseStmt_ClassConst ( |
||
parseStmt_ClassMethod ( |
||
parseStmt_Const ( PhpParser\Node\Stmt\Const_ $node ) | ||
parseStmt_Declare ( |
||
parseStmt_Do ( PhpParser\Node\Stmt\Do_ $node ) | ||
parseStmt_Echo ( PhpParser\Node\Stmt\Echo_ $node ) | ||
parseStmt_For ( PhpParser\Node\Stmt\For_ $node ) | ||
parseStmt_Foreach ( PhpParser\Node\Stmt\Foreach_ $node ) | ||
parseStmt_Function ( |
||
parseStmt_Global ( PhpParser\Node\Stmt\Global_ $node ) | ||
parseStmt_Goto ( PhpParser\Node\Stmt\Goto_ $node ) | ||
parseStmt_HaltCompiler ( PhpParser\Node\Stmt\HaltCompiler $node ) | ||
parseStmt_If ( PhpParser\Node\Stmt\If_ $node ) | ||
parseStmt_InlineHTML ( PhpParser\Node\Stmt\InlineHTML $node ) | ||
parseStmt_Interface ( |
||
parseStmt_Label ( PhpParser\Node\Stmt\Label $node ) | ||
parseStmt_Namespace ( |
||
parseStmt_Nop ( PhpParser\Node\Stmt\Nop $node ) | ||
parseStmt_Property ( |
||
parseStmt_Return ( PhpParser\Node\Stmt\Return_ $node ) | ||
parseStmt_Static ( PhpParser\Node\Stmt\Static_ $node ) | ||
parseStmt_Switch ( PhpParser\Node\Stmt\Switch_ $node ) | ||
parseStmt_Throw ( PhpParser\Node\Stmt\Throw_ $node ) | ||
parseStmt_Trait ( |
||
parseStmt_TraitUse ( PhpParser\Node\Stmt\TraitUse $node ) | ||
parseStmt_TryCatch ( |
||
parseStmt_Unset ( PhpParser\Node\Stmt\Unset_ $node ) | ||
parseStmt_Use ( PhpParser\Node\Stmt\Use_ $node ) | ||
parseStmt_While ( PhpParser\Node\Stmt\While_ $node ) | ||
processAssertions ( |
||
readAssertion ( |
||
throwUndefinedLabelError ( ) |
Method | Description | |
---|---|---|
compileJumptableSwitch ( PhpParser\Node\Stmt\Switch_ $node ) | ||
getVariableName ( |
||
mapAttributes ( PhpParser\Node $expr ) | ||
parseParameterList ( |
||
parseScalarNode ( PhpParser\Node\Scalar $scalar ) | ||
parseShortCircuiting ( PhpParser\Node\Expr\BinaryOp $expr, $isOr ) | ||
readVariable ( |
||
readVariableName ( $name, |
||
readVariableRecursive ( $name, |
||
switchCanUseJumptable ( PhpParser\Node\Stmt\Switch_ $node ) | ||
writeVariable ( |
||
writeVariableName ( $name, |
public __construct ( PhpParser\Parser $astParser, |
||
$astParser | PhpParser\Parser | |
$astTraverser |
protected parseArg ( PhpParser\Node\Arg $expr ) | ||
$expr | PhpParser\Node\Arg |
protected parseExprList ( array $expr, integer $readWrite = self::MODE_NONE ) : |
||
$expr | array | |
$readWrite | integer | |
return |
protected parseExpr_Array ( PhpParser\Node\Expr\Array_ $expr ) | ||
$expr | PhpParser\Node\Expr\Array_ |
protected parseExpr_ArrayDimFetch ( PhpParser\Node\Expr\ArrayDimFetch $expr ) | ||
$expr | PhpParser\Node\Expr\ArrayDimFetch |
protected parseExpr_Assign ( PhpParser\Node\Expr\Assign $expr ) | ||
$expr | PhpParser\Node\Expr\Assign |
protected parseExpr_AssignRef ( PhpParser\Node\Expr\AssignRef $expr ) | ||
$expr | PhpParser\Node\Expr\AssignRef |
protected parseExpr_BitwiseNot ( PhpParser\Node\Expr\BitwiseNot $expr ) | ||
$expr | PhpParser\Node\Expr\BitwiseNot |
protected parseExpr_BooleanNot ( PhpParser\Node\Expr\BooleanNot $expr ) | ||
$expr | PhpParser\Node\Expr\BooleanNot |
protected parseExpr_ClassConstFetch ( PhpParser\Node\Expr\ClassConstFetch $expr ) | ||
$expr | PhpParser\Node\Expr\ClassConstFetch |
protected parseExpr_Clone ( PhpParser\Node\Expr\Clone_ $expr ) | ||
$expr | PhpParser\Node\Expr\Clone_ |
protected parseExpr_Closure ( |
||
$expr |
protected parseExpr_ConstFetch ( PhpParser\Node\Expr\ConstFetch $expr ) | ||
$expr | PhpParser\Node\Expr\ConstFetch |
protected parseExpr_Empty ( PhpParser\Node\Expr\Empty_ $expr ) | ||
$expr | PhpParser\Node\Expr\Empty_ |
protected parseExpr_ErrorSuppress ( PhpParser\Node\Expr\ErrorSuppress $expr ) | ||
$expr | PhpParser\Node\Expr\ErrorSuppress |
protected parseExpr_Eval ( PhpParser\Node\Expr\Eval_ $expr ) | ||
$expr | PhpParser\Node\Expr\Eval_ |
protected parseExpr_Exit ( PhpParser\Node\Expr\Exit_ $expr ) | ||
$expr | PhpParser\Node\Expr\Exit_ |
protected parseExpr_FuncCall ( PhpParser\Node\Expr\FuncCall $expr ) | ||
$expr | PhpParser\Node\Expr\FuncCall |
protected parseExpr_Include ( PhpParser\Node\Expr\Include_ $expr ) | ||
$expr | PhpParser\Node\Expr\Include_ |
protected parseExpr_Instanceof ( PhpParser\Node\Expr\InstanceOf_ $expr ) | ||
$expr | PhpParser\Node\Expr\InstanceOf_ |
protected parseExpr_Isset ( PhpParser\Node\Expr\Isset_ $expr ) | ||
$expr | PhpParser\Node\Expr\Isset_ |
protected parseExpr_MethodCall ( PhpParser\Node\Expr\MethodCall $expr ) | ||
$expr | PhpParser\Node\Expr\MethodCall |
protected parseExpr_New ( PhpParser\Node\Expr\New_ $expr ) | ||
$expr | PhpParser\Node\Expr\New_ |
protected parseExpr_PostDec ( PhpParser\Node\Expr\PostDec $expr ) | ||
$expr | PhpParser\Node\Expr\PostDec |
protected parseExpr_PostInc ( PhpParser\Node\Expr\PostInc $expr ) | ||
$expr | PhpParser\Node\Expr\PostInc |
protected parseExpr_PreDec ( PhpParser\Node\Expr\PreDec $expr ) | ||
$expr | PhpParser\Node\Expr\PreDec |
protected parseExpr_PreInc ( PhpParser\Node\Expr\PreInc $expr ) | ||
$expr | PhpParser\Node\Expr\PreInc |
protected parseExpr_Print ( PhpParser\Node\Expr\Print_ $expr ) | ||
$expr | PhpParser\Node\Expr\Print_ |
protected parseExpr_PropertyFetch ( PhpParser\Node\Expr\PropertyFetch $expr ) | ||
$expr | PhpParser\Node\Expr\PropertyFetch |
protected parseExpr_ShellExec ( PhpParser\Node\Expr\ShellExec $expr ) | ||
$expr | PhpParser\Node\Expr\ShellExec |
protected parseExpr_StaticCall ( PhpParser\Node\Expr\StaticCall $expr ) | ||
$expr | PhpParser\Node\Expr\StaticCall |
protected parseExpr_StaticPropertyFetch ( PhpParser\Node\Expr\StaticPropertyFetch $expr ) | ||
$expr | PhpParser\Node\Expr\StaticPropertyFetch |
protected parseExpr_Ternary ( PhpParser\Node\Expr\Ternary $expr ) | ||
$expr | PhpParser\Node\Expr\Ternary |
protected parseExpr_UnaryMinus ( PhpParser\Node\Expr\UnaryMinus $expr ) | ||
$expr | PhpParser\Node\Expr\UnaryMinus |
protected parseExpr_UnaryPlus ( PhpParser\Node\Expr\UnaryPlus $expr ) | ||
$expr | PhpParser\Node\Expr\UnaryPlus |
protected parseExpr_Yield ( PhpParser\Node\Expr\Yield_ $expr ) | ||
$expr | PhpParser\Node\Expr\Yield_ |
protected parseIf ( PhpParser\Node\Stmt\If_ | PhpParser\Node\Stmt\ElseIf_ $node, |
||
$node | PhpParser\Node\Stmt\If_ | PhpParser\Node\Stmt\ElseIf_ | |
$endBlock |
protected parseListAssignment ( |
||
$expr | ||
$rhs |
public parseNodes ( array $nodes, |
||
$nodes | array | |
$block |
protected parseStmt_Class ( |
||
$node |
protected parseStmt_ClassConst ( |
||
$node |
protected parseStmt_ClassMethod ( |
||
$node |
protected parseStmt_Const ( PhpParser\Node\Stmt\Const_ $node ) | ||
$node | PhpParser\Node\Stmt\Const_ |
protected parseStmt_Declare ( |
||
$node |
protected parseStmt_Do ( PhpParser\Node\Stmt\Do_ $node ) | ||
$node | PhpParser\Node\Stmt\Do_ |
protected parseStmt_Echo ( PhpParser\Node\Stmt\Echo_ $node ) | ||
$node | PhpParser\Node\Stmt\Echo_ |
protected parseStmt_For ( PhpParser\Node\Stmt\For_ $node ) | ||
$node | PhpParser\Node\Stmt\For_ |
protected parseStmt_Foreach ( PhpParser\Node\Stmt\Foreach_ $node ) | ||
$node | PhpParser\Node\Stmt\Foreach_ |
protected parseStmt_Function ( |
||
$node |
protected parseStmt_Global ( PhpParser\Node\Stmt\Global_ $node ) | ||
$node | PhpParser\Node\Stmt\Global_ |
protected parseStmt_Goto ( PhpParser\Node\Stmt\Goto_ $node ) | ||
$node | PhpParser\Node\Stmt\Goto_ |
protected parseStmt_HaltCompiler ( PhpParser\Node\Stmt\HaltCompiler $node ) | ||
$node | PhpParser\Node\Stmt\HaltCompiler |
protected parseStmt_If ( PhpParser\Node\Stmt\If_ $node ) | ||
$node | PhpParser\Node\Stmt\If_ |
protected parseStmt_InlineHTML ( PhpParser\Node\Stmt\InlineHTML $node ) | ||
$node | PhpParser\Node\Stmt\InlineHTML |
protected parseStmt_Interface ( |
||
$node |
protected parseStmt_Label ( PhpParser\Node\Stmt\Label $node ) | ||
$node | PhpParser\Node\Stmt\Label |
protected parseStmt_Namespace ( |
||
$node |
protected parseStmt_Nop ( PhpParser\Node\Stmt\Nop $node ) | ||
$node | PhpParser\Node\Stmt\Nop |
protected parseStmt_Property ( |
||
$node |
protected parseStmt_Return ( PhpParser\Node\Stmt\Return_ $node ) | ||
$node | PhpParser\Node\Stmt\Return_ |
protected parseStmt_Static ( PhpParser\Node\Stmt\Static_ $node ) | ||
$node | PhpParser\Node\Stmt\Static_ |
protected parseStmt_Switch ( PhpParser\Node\Stmt\Switch_ $node ) | ||
$node | PhpParser\Node\Stmt\Switch_ |
protected parseStmt_Throw ( PhpParser\Node\Stmt\Throw_ $node ) | ||
$node | PhpParser\Node\Stmt\Throw_ |
protected parseStmt_Trait ( |
||
$node |
protected parseStmt_TraitUse ( PhpParser\Node\Stmt\TraitUse $node ) | ||
$node | PhpParser\Node\Stmt\TraitUse |
protected parseStmt_TryCatch ( |
||
$node |
protected parseStmt_Unset ( PhpParser\Node\Stmt\Unset_ $node ) | ||
$node | PhpParser\Node\Stmt\Unset_ |
protected parseStmt_Use ( PhpParser\Node\Stmt\Use_ $node ) | ||
$node | PhpParser\Node\Stmt\Use_ |
protected parseStmt_While ( PhpParser\Node\Stmt\While_ $node ) | ||
$node | PhpParser\Node\Stmt\While_ |
protected processAssertions ( |
||
$op | ||
$if | ||
$else |
protected Literal,PHPCfg\Operand|null $currentClass | ||
return |