Lines Matching refs:Stmt
11 use PhpParser\Node\Stmt; alias
56 if ($node instanceof Stmt\Namespace_) {
58 } elseif ($node instanceof Stmt\Use_) {
62 } elseif ($node instanceof Stmt\GroupUse) {
66 } elseif ($node instanceof Stmt\Class_) {
81 } elseif ($node instanceof Stmt\Interface_) {
88 } elseif ($node instanceof Stmt\Enum_) {
95 } elseif ($node instanceof Stmt\Trait_) {
98 } elseif ($node instanceof Stmt\Function_) {
102 } elseif ($node instanceof Stmt\ClassMethod
108 } elseif ($node instanceof Stmt\Property) {
119 } elseif ($node instanceof Stmt\Const_) {
123 } elseif ($node instanceof Stmt\ClassConst) {
128 } elseif ($node instanceof Stmt\EnumCase) {
139 } elseif ($node instanceof Stmt\Catch_) {
145 $node->name = $this->resolveName($node->name, Stmt\Use_::TYPE_FUNCTION);
148 $node->name = $this->resolveName($node->name, Stmt\Use_::TYPE_CONSTANT);
149 } elseif ($node instanceof Stmt\TraitUse) {
159 if ($adaptation instanceof Stmt\TraitUseAdaptation\Precedence) {
170 /** @param Stmt\Use_::TYPE_* $type */
182 /** @param Stmt\Function_|Stmt\ClassMethod|Expr\Closure|Expr\ArrowFunction $node */
217 * @param Stmt\Use_::TYPE_* $type One of Stmt\Use_::TYPE_*
253 return $this->resolveName($name, Stmt\Use_::TYPE_NORMAL);