Home
last modified time | relevance | path

Searched refs:Class_ (Results 1 – 25 of 28) sorted by relevance

12

/PHP-Parser/test/PhpParser/Node/Stmt/
H A DClassTest.php11 $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 DmodifierChange.test16 $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 DClassTest.php18 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 DNamespaceTest.php15 $stmt1 = new Stmt\Class_('SomeClass');
H A DTraitUseAdaptationTest.php8 use PhpParser\Node\Stmt\Class_; alias
/PHP-Parser/lib/PhpParser/Node/Scalar/MagicConst/
H A DClass_.php7 class Class_ extends MagicConst { class
/PHP-Parser/test/PhpParser/Node/Scalar/
H A DMagicConstTest.php15 [new MagicConst\Class_(), '__CLASS__'],
/PHP-Parser/lib/PhpParser/Builder/
H A DClass_.php12 class Class_ extends Declaration { class
143 return new Stmt\Class_($this->name, [
/PHP-Parser/lib/PhpParser/Node/Stmt/
H A DClass_.php8 class Class_ extends ClassLike { class
/PHP-Parser/
H A DUPGRADE-4.0.md29 * `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 DUPGRADE-5.0.md296Class_`, `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 DUPGRADE-1.0.md33 is now `PhpParser\Node\Stmt\Class_`. (But as usual, the old name is still available.)
H A DCHANGELOG.md255 * 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 DPrintableNewAnonClassNode.php55 assert($class instanceof Node\Stmt\Class_);
/PHP-Parser/test/PhpParser/
H A DBuilderHelpersTest.php5 use PhpParser\Builder\Class_; alias
14 $builder = new Class_('SomeClass');
26 $stmt = new Node\Stmt\Class_('Class');
H A DBuilderFactoryTest.php26 ['class', Builder\Class_::class],
/PHP-Parser/lib/PhpParser/
H A DBuilderFactory.php45 public function class(string $name): Builder\Class_ {
46 return new Builder\Class_($name);
H A DPrettyPrinterAbstract.php623 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 DParserAbstract.php23 use PhpParser\Node\Stmt\Class_; alias
1088 protected function checkClass(Class_ $node, int $namePos): void {
/PHP-Parser/test/PhpParser/NodeVisitor/
H A DNameResolverTest.php366 new Stmt\Class_('A'),
373 new Expr\New_(new Stmt\Class_(null)),
/PHP-Parser/doc/component/
H A DWalking_the_AST.markdown223 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 DLexer.markdown82 > the `$property->flags & Class_::VISIBILITY_MODIFIER_MASK) === 0` allows making this distinction w…
/PHP-Parser/lib/PhpParser/NodeVisitor/
H A DNameResolver.php66 } elseif ($node instanceof Stmt\Class_) {
/PHP-Parser/grammar/
H A Dphp.y482 …{ $$ = 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 DStandard.php97 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 {

Completed in 69 milliseconds

12