Lines Matching refs:Node
6 use PhpParser\Node; alias
7 use PhpParser\Node\AttributeGroup;
8 use PhpParser\Node\Expr;
9 use PhpParser\Node\Name;
10 use PhpParser\Node\Stmt;
11 use PhpParser\Node\Stmt\Class_;
12 use PhpParser\Node\Stmt\Enum_;
13 use PhpParser\Node\Stmt\Interface_;
14 use PhpParser\Node\Stmt\Trait_;
216 public static function fromNode(Node $node): SimpleType {
217 if ($node instanceof Node\Name) {
231 if ($node instanceof Node\Identifier) {
549 public static function fromNode(Node $node): Type {
550 if ($node instanceof Node\UnionType || $node instanceof Node\IntersectionType) {
556 return new Type($types, ($node instanceof Node\IntersectionType));
559 if ($node instanceof Node\NullableType) {
569 if ($node instanceof Node\Identifier && $node->toLowerString() === "iterable") {
1625 /** @return Node|null */
1626 public function enterNode(Node $expr)
1702 $cConstName === null ? $expr : new Expr\ConstFetch(new Node\Name($cConstName)),
1710 … return new self(null, SimpleType::null(), new Expr\ConstFetch(new Node\Name('null')), [], false);
3380 Node\FunctionLike $func,
3560 Node\Const_ $const,
3562 ?Node $type,
3614 ?Node $type,