Mercurial > hg > cmmr2012-drupal-site
comparison vendor/nikic/php-parser/lib/PhpParser/NodeVisitor/NameResolver.php @ 4:a9cd425dd02b
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:11:55 +0000 |
parents | c75dbcec494b |
children |
comparison
equal
deleted
inserted
replaced
3:307d7a7fd348 | 4:a9cd425dd02b |
---|---|
1 <?php declare(strict_types=1); | 1 <?php declare(strict_types=1); |
2 | 2 |
3 namespace PhpParser\NodeVisitor; | 3 namespace PhpParser\NodeVisitor; |
4 | 4 |
5 use PhpParser\Error; | |
6 use PhpParser\ErrorHandler; | 5 use PhpParser\ErrorHandler; |
7 use PhpParser\NameContext; | 6 use PhpParser\NameContext; |
8 use PhpParser\Node; | 7 use PhpParser\Node; |
9 use PhpParser\Node\Expr; | 8 use PhpParser\Node\Expr; |
10 use PhpParser\Node\Name; | 9 use PhpParser\Node\Name; |
92 $this->resolveSignature($node); | 91 $this->resolveSignature($node); |
93 } elseif ($node instanceof Stmt\ClassMethod | 92 } elseif ($node instanceof Stmt\ClassMethod |
94 || $node instanceof Expr\Closure | 93 || $node instanceof Expr\Closure |
95 ) { | 94 ) { |
96 $this->resolveSignature($node); | 95 $this->resolveSignature($node); |
96 } elseif ($node instanceof Stmt\Property) { | |
97 if (null !== $node->type) { | |
98 $node->type = $this->resolveType($node->type); | |
99 } | |
97 } elseif ($node instanceof Stmt\Const_) { | 100 } elseif ($node instanceof Stmt\Const_) { |
98 foreach ($node->consts as $const) { | 101 foreach ($node->consts as $const) { |
99 $this->addNamespacedName($const); | 102 $this->addNamespacedName($const); |
100 } | 103 } |
101 } elseif ($node instanceof Expr\StaticCall | 104 } elseif ($node instanceof Expr\StaticCall |