Lines Matching refs:node
50 public function leaveNode(PhpParser\Node $node) { argument
52 if ($node instanceof Stmt\Nop) {
57 if ($node instanceof Expr\List_) {
58 while (!empty($node->items) && $node->items[count($node->items) - 1] === null) {
59 array_pop($node->items);
65 if ($node instanceof Scalar\Int_ && $node->value < 0) {
66 if ($node->value === \PHP_INT_MIN) {
72 return new Expr\UnaryMinus(new Scalar\Int_(-$node->value));
79 if ($node instanceof Expr\ConstFetch && $node->name->isUnqualified() &&
80 in_array($node->name->toLowerString(), self::CAST_NAMES)
88 if ($node instanceof Stmt\Use_ && $node->uses[0]->name->isUnqualified() &&
89 $this->tokens[$node->uses[0]->name->getStartTokenPos()]->is(\T_NAME_FULLY_QUALIFIED)
93 if ($node instanceof Stmt\GroupUse && $node->prefix->isUnqualified() &&
94 $this->tokens[$node->prefix->getStartTokenPos()]->is(\T_NAME_FULLY_QUALIFIED)