Lines Matching refs:Node
6 use PhpParser\Node; alias
7 use PhpParser\Node\Expr;
8 use PhpParser\Node\Name;
9 use PhpParser\Node\Stmt;
10 use PhpParser\Node\Stmt\Class_;
11 use PhpParser\Node\Stmt\Enum_;
12 use PhpParser\Node\Stmt\Interface_;
13 use PhpParser\Node\Stmt\Trait_;
214 public static function fromNode(Node $node): SimpleType {
215 if ($node instanceof Node\Name) {
234 if ($node instanceof Node\Identifier) {
552 public static function fromNode(Node $node): Type {
553 if ($node instanceof Node\UnionType || $node instanceof Node\IntersectionType) {
559 return new Type($types, ($node instanceof Node\IntersectionType));
562 if ($node instanceof Node\NullableType) {
572 if ($node instanceof Node\Identifier && $node->toLowerString() === "iterable") {
3194 Node\FunctionLike $func,
3376 Node\Const_ $const,
3423 ?Node $type,