/PHP-Parser/lib/PhpParser/Builder/ |
H A D | Property.php | 17 protected int $flags = 0; variable in PhpParser\\Builder\\Property 44 $this->flags = BuilderHelpers::addModifier($this->flags, Modifiers::PUBLIC); 55 $this->flags = BuilderHelpers::addModifier($this->flags, Modifiers::PROTECTED); 66 $this->flags = BuilderHelpers::addModifier($this->flags, Modifiers::PRIVATE); 77 $this->flags = BuilderHelpers::addModifier($this->flags, Modifiers::STATIC); 88 $this->flags = BuilderHelpers::addModifier($this->flags, Modifiers::READONLY); 99 $this->flags = BuilderHelpers::addModifier($this->flags, Modifiers::ABSTRACT); 110 $this->flags = BuilderHelpers::addModifier($this->flags, Modifiers::FINAL); 121 $this->flags = BuilderHelpers::addModifier($this->flags, Modifiers::PRIVATE_SET); 132 $this->flags = BuilderHelpers::addModifier($this->flags, Modifiers::PROTECTED_SET); [all …]
|
H A D | Method.php | 14 protected int $flags = 0; variable in PhpParser\\Builder\\Method 37 $this->flags = BuilderHelpers::addModifier($this->flags, Modifiers::PUBLIC); 48 $this->flags = BuilderHelpers::addModifier($this->flags, Modifiers::PROTECTED); 59 $this->flags = BuilderHelpers::addModifier($this->flags, Modifiers::PRIVATE); 70 $this->flags = BuilderHelpers::addModifier($this->flags, Modifiers::STATIC); 85 $this->flags = BuilderHelpers::addModifier($this->flags, Modifiers::ABSTRACT); 97 $this->flags = BuilderHelpers::addModifier($this->flags, Modifiers::FINAL); 139 'flags' => $this->flags,
|
H A D | Param.php | 16 protected int $flags = 0; variable in PhpParser\\Builder\\Param 87 $this->flags = BuilderHelpers::addModifier($this->flags, Modifiers::PUBLIC); 98 $this->flags = BuilderHelpers::addModifier($this->flags, Modifiers::PROTECTED); 109 $this->flags = BuilderHelpers::addModifier($this->flags, Modifiers::PRIVATE); 120 $this->flags = BuilderHelpers::addModifier($this->flags, Modifiers::READONLY); 131 $this->flags = BuilderHelpers::addModifier($this->flags, Modifiers::PRIVATE_SET); 142 $this->flags = BuilderHelpers::addModifier($this->flags, Modifiers::PROTECTED_SET); 168 …$this->default, $this->type, $this->byRef, $this->variadic, [], $this->flags, $this->attributeGrou…
|
H A D | ClassConst.php | 16 protected int $flags = 0; variable in PhpParser\\Builder\\ClassConst 57 $this->flags = BuilderHelpers::addModifier($this->flags, Modifiers::PUBLIC); 68 $this->flags = BuilderHelpers::addModifier($this->flags, Modifiers::PROTECTED); 79 $this->flags = BuilderHelpers::addModifier($this->flags, Modifiers::PRIVATE); 90 $this->flags = BuilderHelpers::addModifier($this->flags, Modifiers::FINAL); 144 $this->flags,
|
H A D | Class_.php | 17 protected int $flags = 0; variable in PhpParser\\Builder\\Class_ 72 $this->flags = BuilderHelpers::addClassModifier($this->flags, Modifiers::ABSTRACT); 83 $this->flags = BuilderHelpers::addClassModifier($this->flags, Modifiers::FINAL); 94 $this->flags = BuilderHelpers::addClassModifier($this->flags, Modifiers::READONLY); 144 'flags' => $this->flags,
|
/PHP-Parser/lib/PhpParser/Node/Stmt/ |
H A D | Property.php | 14 public int $flags; variable in PhpParser\\Node\\Stmt\\Property 27 * @param int $flags Modifiers 36 $this->flags = $flags; 51 return ($this->flags & Modifiers::PUBLIC) !== 0 52 || ($this->flags & Modifiers::VISIBILITY_MASK) === 0; 59 return (bool) ($this->flags & Modifiers::PROTECTED); 66 return (bool) ($this->flags & Modifiers::PRIVATE); 73 return (bool) ($this->flags & Modifiers::STATIC); 80 return (bool) ($this->flags & Modifiers::READONLY); 87 return (bool) ($this->flags & Modifiers::PUBLIC_SET); [all …]
|
H A D | ClassConst.php | 10 public int $flags; variable in PhpParser\\Node\\Stmt\\ClassConst 22 * @param int $flags Modifiers 29 int $flags = 0, argument 35 $this->flags = $flags; 49 return ($this->flags & Modifiers::PUBLIC) !== 0 50 || ($this->flags & Modifiers::VISIBILITY_MASK) === 0; 57 return (bool) ($this->flags & Modifiers::PROTECTED); 64 return (bool) ($this->flags & Modifiers::PRIVATE); 71 return (bool) ($this->flags & Modifiers::FINAL);
|
H A D | ClassMethod.php | 11 public int $flags; variable in PhpParser\\Node\\Stmt\\ClassMethod 68 $this->flags = $subNodes['flags'] ?? $subNodes['type'] ?? 0; 105 return ($this->flags & Modifiers::PUBLIC) !== 0 106 || ($this->flags & Modifiers::VISIBILITY_MASK) === 0; 113 return (bool) ($this->flags & Modifiers::PROTECTED); 120 return (bool) ($this->flags & Modifiers::PRIVATE); 127 return (bool) ($this->flags & Modifiers::ABSTRACT); 134 return (bool) ($this->flags & Modifiers::FINAL); 141 return (bool) ($this->flags & Modifiers::STATIC);
|
H A D | Class_.php | 28 public int $flags; variable in PhpParser\\Node\\Stmt\\Class_ 54 $this->flags = $subNodes['flags'] ?? $subNodes['type'] ?? 0; 70 return (bool) ($this->flags & Modifiers::ABSTRACT); 77 return (bool) ($this->flags & Modifiers::FINAL); 81 return (bool) ($this->flags & Modifiers::READONLY);
|
/PHP-Parser/lib/PhpParser/Node/ |
H A D | Param.php | 21 public int $flags; variable in PhpParser\\Node\\Param 36 * @param int $flags Optional visibility flags 44 int $flags = 0, argument 54 $this->flags = $flags; 71 return $this->flags !== 0; 75 return (bool) ($this->flags & Modifiers::PUBLIC); 79 return (bool) ($this->flags & Modifiers::PROTECTED); 83 return (bool) ($this->flags & Modifiers::PRIVATE); 87 return (bool) ($this->flags & Modifiers::READONLY); 94 return (bool) ($this->flags & Modifiers::PUBLIC_SET); [all …]
|
/PHP-Parser/test/code/formatPreservation/ |
H A D | modifierChange.test | 16 $stmts[0]->flags = Stmt\Class_::MODIFIER_ABSTRACT; 17 $stmts[1]->flags = 0; 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; 46 $stmts[0]->params[1]->flags = 0; 47 $stmts[0]->params[2]->flags = Stmt\Class_::MODIFIER_PUBLIC; 63 $stmts[0]->expr->class->flags = Modifiers::READONLY; 64 $stmts[1]->expr->class->flags = 0;
|
/PHP-Parser/test/code/parser/stmt/class/ |
H A D | property_hooks.test | 27 flags: 0 38 flags: PUBLIC (1) 52 flags: 0 70 flags: 0 106 flags: 0 120 flags: 0 150 flags: 0 252 flags: 0 320 flags: 0 372 flags: 0 [all …]
|
H A D | implicitPublic.test | 19 flags: ABSTRACT (16) 30 flags: 0 46 flags: STATIC (8) 62 flags: ABSTRACT (16) 75 flags: FINAL (32) 89 flags: STATIC (8) 103 flags: STATIC | FINAL (40) 117 flags: 0
|
H A D | modifier_error.test | 10 flags: 0 21 flags: PUBLIC (1) 45 flags: 0 80 flags: 0 91 flags: READONLY (64) 115 flags: 0 147 flags: 0 158 flags: STATIC (8) 182 flags: 0 193 flags: FINAL (32) [all …]
|
H A D | staticMethod.test | 10 flags: 0 21 flags: STATIC (8) 43 flags: 0 54 flags: STATIC (8) 76 flags: 0 87 flags: STATIC (8) 109 flags: 0 120 flags: STATIC (8) 142 flags: 0 153 flags: STATIC (8) [all …]
|
H A D | property_promotion.test | 20 flags: 0 31 flags: PUBLIC (1) 40 flags: PUBLIC (1) 58 flags: PROTECTED (2) 77 flags: PRIVATE (4) 95 flags: PUBLIC | READONLY (65) 113 flags: PUBLIC (1) 125 flags: 0 141 flags: PUBLIC (1) 155 flags: 0
|
H A D | asymmetric_visibility.test | 21 flags: 0 32 flags: PROTECTED | PRIVATE_SET (514) 48 flags: PRIVATE | PUBLIC_SET (132) 64 flags: PROTECTED_SET (256) 80 flags: PUBLIC (1) 89 flags: PROTECTED | PRIVATE_SET (514) 103 flags: PRIVATE | PUBLIC_SET (132) 117 flags: PROTECTED_SET (256) 149 flags: 0 160 flags: PRIVATE_SET (512) [all …]
|
H A D | constModifiers.test | 17 flags: 0 28 flags: 0 44 flags: PUBLIC (1) 60 flags: PROTECTED (2) 76 flags: PRIVATE (4) 92 flags: FINAL (32)
|
H A D | simple.test | 23 flags: 0 42 flags: 0 66 flags: PUBLIC (1) 92 flags: PROTECTED (2) 108 flags: PRIVATE (4) 124 flags: PUBLIC (1) 138 flags: PUBLIC | STATIC (9) 147 flags: 0 166 flags: PUBLIC | FINAL (33) 182 flags: PROTECTED (2) [all …]
|
H A D | constModifierErrors.test | 13 flags: 0 24 flags: STATIC (8) 51 flags: 0 62 flags: ABSTRACT (16) 89 flags: 0 100 flags: READONLY (64) 127 flags: 0 138 flags: PUBLIC (1)
|
H A D | anonymous.test | 30 flags: 0 39 flags: PUBLIC (1) 61 flags: 0 86 flags: 0 95 flags: PUBLIC (1) 119 flags: 0 161 flags: 0 172 flags: PUBLIC (1) 186 flags: 0 197 flags: 0
|
H A D | property_modifiers.test | 15 flags: 0 26 flags: PUBLIC | FINAL (33) 42 flags: PROTECTED | ABSTRACT (18) 58 flags: READONLY (64) 74 flags: PRIVATE | STATIC (12)
|
/PHP-Parser/lib/PhpParser/Internal/ |
H A D | PrintableNewAnonClassNode.php | 22 public int $flags; variable in PhpParser\\Internal\\PrintableNewAnonClassNode 41 array $attrGroups, int $flags, array $args, ?Node\Name $extends, array $implements, argument 46 $this->flags = $flags; 59 $class->attrGroups, $class->flags, $newNode->args, $class->extends, $class->implements,
|
/PHP-Parser/test/code/parser/stmt/function/ |
H A D | typeVersions.test | 27 flags: 0 43 flags: 0 59 flags: 0 75 flags: 0 91 flags: 0 110 flags: 0 129 flags: 0 148 flags: 0 167 flags: 0 239 flags: 0 [all …]
|
H A D | builtinTypeDeclarations.test | 18 flags: 0 34 flags: 0 50 flags: 0 66 flags: 0 82 flags: 0 98 flags: 0 114 flags: 0
|