Lines Matching refs:Stmt
7 use PhpParser\Node\Stmt; alias
41 Stmt\Use_::TYPE_NORMAL => [],
42 Stmt\Use_::TYPE_FUNCTION => [],
43 Stmt\Use_::TYPE_CONSTANT => [],
52 * @param Stmt\Use_::TYPE_* $type One of Stmt\Use_::TYPE_*
57 if ($type === Stmt\Use_::TYPE_CONSTANT) {
65 Stmt\Use_::TYPE_NORMAL => '',
66 Stmt\Use_::TYPE_FUNCTION => 'function ',
67 Stmt\Use_::TYPE_CONSTANT => 'const ',
97 * @param Stmt\Use_::TYPE_* $type One of Stmt\Use_::TYPE_{FUNCTION|CONSTANT}
103 if ($type === Stmt\Use_::TYPE_NORMAL && $name->isSpecialClassName()) {
123 if ($type !== Stmt\Use_::TYPE_NORMAL && $name->isUnqualified()) {
145 return $this->getResolvedName($name, Stmt\Use_::TYPE_NORMAL);
152 * @param Stmt\Use_::TYPE_* $type One of Stmt\Use_::TYPE_*
159 if ($type === Stmt\Use_::TYPE_NORMAL) {
178 foreach ($this->origAliases[Stmt\Use_::TYPE_NORMAL] as $alias => $orig) {
187 if ($type === Stmt\Use_::TYPE_CONSTANT) {
208 * @param Stmt\Use_::TYPE_* $type One of Stmt\Use_::TYPE_*
235 if (isset($this->aliases[Stmt\Use_::TYPE_NORMAL][$checkName])) {
236 $alias = $this->aliases[Stmt\Use_::TYPE_NORMAL][$checkName];
241 $checkName = $type === Stmt\Use_::TYPE_CONSTANT ? $firstPart : strtolower($firstPart);
257 if ($type === Stmt\Use_::TYPE_CONSTANT) {