/PHP-Parser/test/PhpParser/Node/Stmt/ |
H A D | ClassTest.php | 11 $class = new Class_('Foo', ['type' => Modifiers::ABSTRACT]); 14 $class = new Class_('Foo'); 19 $class = new Class_('Foo', ['type' => Modifiers::FINAL]); 22 $class = new Class_('Foo'); 31 $class = new Class_('Foo', [ 48 $class = new Class_('Foo', [ 67 $class = new Class_('Foo', [ 84 $class = new Class_('Foo', [ 103 $class = new Class_('Foo', [ 125 $class = new Class_('Foo', [
|
/PHP-Parser/test/code/formatPreservation/ |
H A D | modifierChange.test | 16 $stmts[0]->flags = Stmt\Class_::MODIFIER_ABSTRACT; 18 $stmts[1]->stmts[0]->flags = Stmt\Class_::MODIFIER_PRIVATE; 19 $stmts[1]->stmts[1]->flags = Stmt\Class_::MODIFIER_PROTECTED; 20 $stmts[1]->stmts[2]->flags |= Stmt\Class_::MODIFIER_FINAL; 45 $stmts[0]->params[0]->flags = Stmt\Class_::MODIFIER_PRIVATE; 47 $stmts[0]->params[2]->flags = Stmt\Class_::MODIFIER_PUBLIC;
|
/PHP-Parser/test/PhpParser/Builder/ |
H A D | ClassTest.php | 18 return new Class_($class); 30 new Stmt\Class_('SomeLogger', [ 50 new Stmt\Class_('Test', [ 64 new Stmt\Class_('Test', [ 78 new Stmt\Class_('Test', [ 104 new Stmt\Class_('Test', [ 122 new Stmt\Class_('Test', [], [ 135 new Stmt\Class_('Test', [], [ 156 new Stmt\Class_('ATTR_GROUP', [
|
H A D | NamespaceTest.php | 15 $stmt1 = new Stmt\Class_('SomeClass');
|
H A D | TraitUseAdaptationTest.php | 8 use PhpParser\Node\Stmt\Class_; alias
|
/PHP-Parser/lib/PhpParser/Node/Scalar/MagicConst/ |
H A D | Class_.php | 7 class Class_ extends MagicConst { class
|
/PHP-Parser/test/PhpParser/Node/Scalar/ |
H A D | MagicConstTest.php | 15 [new MagicConst\Class_(), '__CLASS__'],
|
/PHP-Parser/lib/PhpParser/Builder/ |
H A D | Class_.php | 12 class Class_ extends Declaration { class 143 return new Stmt\Class_($this->name, [
|
/PHP-Parser/lib/PhpParser/Node/Stmt/ |
H A D | Class_.php | 8 class Class_ extends ClassLike { class
|
/PHP-Parser/ |
H A D | UPGRADE-4.0.md | 29 * `Stmt\Class_::$name` 65 * Removed `type` subnode on `Class_`, `ClassMethod` and `Property` nodes. Use `flags` instead. 71 * The misspelled `Class_::VISIBILITY_MODIFER_MASK` constant has been dropped in favor of 72 `Class_::VISIBILITY_MODIFIER_MASK`.
|
H A D | UPGRADE-5.0.md | 296 …Class_`, `ClassMethod`, `Property`, etc.) are now available as class constants on a separate `PhpP… 299 PhpParser\Node\Stmt\Class_::MODIFIER_PUBLIC -> PhpParser\Modifiers::PUBLIC 300 PhpParser\Node\Stmt\Class_::MODIFIER_PROTECTED -> PhpParser\Modifiers::PROTECTED 301 PhpParser\Node\Stmt\Class_::MODIFIER_PRIVATE -> PhpParser\Modifiers::PRIVATE 302 PhpParser\Node\Stmt\Class_::MODIFIER_STATIC -> PhpParser\Modifiers::STATIC 303 PhpParser\Node\Stmt\Class_::MODIFIER_ABSTRACT -> PhpParser\Modifiers::ABSTRACT 304 PhpParser\Node\Stmt\Class_::MODIFIER_FINAL -> PhpParser\Modifiers::FINAL 305 PhpParser\Node\Stmt\Class_::MODIFIER_READONLY -> PhpParser\Modifiers::READONLY 306 PhpParser\Node\Stmt\Class_::VISIBILITY_MODIFIER_MASK -> PhpParser\Modifiers::VISIBILITY_MASK
|
H A D | UPGRADE-1.0.md | 33 is now `PhpParser\Node\Stmt\Class_`. (But as usual, the old name is still available.)
|
H A D | CHANGELOG.md | 255 * Added a `Modifiers` class, as a replacement for `Stmt\Class_::MODIFIER_*`. 360 builders that accept attributes, such as `Builder\Class_`. 435 support attributes, i.e. `Stmt\Class_`, `Stmt\Trait_`, `Stmt\Interface_`, `Stmt\Function_`, 819 * The misspelled `Class_::VISIBILITY_MODIFER_MASK` constant has been dropped in favor of 820 `Class_::VISIBILITY_MODIFIER_MASK`. 893 * Fixed the spelling of `Class_::VISIBILITY_MODIFIER_MASK`. The previous spelling of 894 `Class_::VISIBILITY_MODIFER_MASK` is preserved for backwards compatibility.
|
/PHP-Parser/lib/PhpParser/Internal/ |
H A D | PrintableNewAnonClassNode.php | 55 assert($class instanceof Node\Stmt\Class_);
|
/PHP-Parser/test/PhpParser/ |
H A D | BuilderHelpersTest.php | 5 use PhpParser\Builder\Class_; alias 14 $builder = new Class_('SomeClass'); 26 $stmt = new Node\Stmt\Class_('Class');
|
H A D | BuilderFactoryTest.php | 26 ['class', Builder\Class_::class],
|
/PHP-Parser/lib/PhpParser/ |
H A D | BuilderFactory.php | 45 public function class(string $name): Builder\Class_ { 46 return new Builder\Class_($name);
|
H A D | PrettyPrinterAbstract.php | 623 if ($node instanceof Expr\New_ && $node->class instanceof Stmt\Class_) { 1529 Stmt\Class_::class . '->implements' => ', ', 1557 Stmt\Class_::class . '->stmts' => "\n", 1576 Stmt\Class_::class . '->attrGroups' => "\n", 1623 Stmt\Class_::class . '->implements' => [null, ' implements ', ''], 1629 Stmt\Class_::class . '->attrGroups' => [null, '', "\n"], 1677 Stmt\Class_::class . '->flags' => ['pModifiers', \T_CLASS],
|
H A D | ParserAbstract.php | 23 use PhpParser\Node\Stmt\Class_; alias 1088 protected function checkClass(Class_ $node, int $namePos): void {
|
/PHP-Parser/test/PhpParser/NodeVisitor/ |
H A D | NameResolverTest.php | 366 new Stmt\Class_('A'), 373 new Expr\New_(new Stmt\Class_(null)),
|
/PHP-Parser/doc/component/ |
H A D | Walking_the_AST.markdown | 223 if ($node instanceof Node\Stmt\Class_) { 241 if ($node instanceof Node\Stmt\Class_ && 333 $classes = $nodeFinder->findInstanceOf($stmts, Node\Stmt\Class_::class); 337 return $node instanceof Node\Stmt\Class_ 342 $class = $nodeFinder->findFirstInstanceOf($stmts, Node\Stmt\Class_::class); 346 return $node instanceof Node\Stmt\Class_
|
H A D | Lexer.markdown | 82 > the `$property->flags & Class_::VISIBILITY_MODIFIER_MASK) === 0` allows making this distinction w…
|
/PHP-Parser/lib/PhpParser/NodeVisitor/ |
H A D | NameResolver.php | 66 } elseif ($node instanceof Stmt\Class_) {
|
/PHP-Parser/grammar/ |
H A D | php.y | 482 …{ $$ = Stmt\Class_[$2, ['type' => $1, 'extends' => $3, 'implements' => $4, 'stmts' => $6, 'attrGro… 485 …{ $$ = Stmt\Class_[$3, ['type' => $2, 'extends' => $4, 'implements' => $5, 'stmts' => $7, 'attrGro… 1114 …{ $$ = array(Stmt\Class_[null, ['type' => $2, 'extends' => $4, 'implements' => $5, 'stmts' => $7, … 1204 | T_CLASS_C { $$ = Scalar\MagicConst\Class_[]; }
|
/PHP-Parser/lib/PhpParser/PrettyPrinter/ |
H A D | Standard.php | 97 protected function pScalar_MagicConst_Class(MagicConst\Class_ $node): string { 702 if ($node->class instanceof Stmt\Class_) { 794 protected function pStmt_Class(Stmt\Class_ $node): string { 1032 protected function pClassCommon(Stmt\Class_ $node, string $afterClassToken): string {
|