Home
last modified time | relevance | path

Searched refs:flags (Results 1 – 25 of 77) sorted by relevance

1234

/PHP-Parser/lib/PhpParser/Builder/
H A DProperty.php17 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 DMethod.php14 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 DParam.php16 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 DClassConst.php16 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 DClass_.php17 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 DProperty.php14 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 DClassConst.php10 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 DClassMethod.php11 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 DClass_.php28 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 DParam.php21 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 DmodifierChange.test16 $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 Dproperty_hooks.test27 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 DimplicitPublic.test19 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 Dmodifier_error.test10 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 DstaticMethod.test10 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 Dproperty_promotion.test20 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 Dasymmetric_visibility.test21 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 DconstModifiers.test17 flags: 0
28 flags: 0
44 flags: PUBLIC (1)
60 flags: PROTECTED (2)
76 flags: PRIVATE (4)
92 flags: FINAL (32)
H A Dsimple.test23 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 DconstModifierErrors.test13 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 Danonymous.test30 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 Dproperty_modifiers.test15 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 DPrintableNewAnonClassNode.php22 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 DtypeVersions.test27 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 DbuiltinTypeDeclarations.test18 flags: 0
34 flags: 0
50 flags: 0
66 flags: 0
82 flags: 0
98 flags: 0
114 flags: 0

Completed in 34 milliseconds

1234