/PHP-Parser/lib/PhpParser/Builder/ |
H A D | Function_.php | 47 public function addAttribute($attribute) { argument 48 $this->attributeGroups[] = BuilderHelpers::normalizeAttribute($attribute);
|
H A D | EnumCase.php | 67 public function addAttribute($attribute) { argument 68 $this->attributeGroups[] = BuilderHelpers::normalizeAttribute($attribute);
|
H A D | Interface_.php | 76 public function addAttribute($attribute) { argument 77 $this->attributeGroups[] = BuilderHelpers::normalizeAttribute($attribute);
|
H A D | Trait_.php | 64 public function addAttribute($attribute) { argument 65 $this->attributeGroups[] = BuilderHelpers::normalizeAttribute($attribute);
|
H A D | Enum_.php | 97 public function addAttribute($attribute) { argument 98 $this->attributeGroups[] = BuilderHelpers::normalizeAttribute($attribute);
|
H A D | Method.php | 126 public function addAttribute($attribute) { argument 127 $this->attributeGroups[] = BuilderHelpers::normalizeAttribute($attribute);
|
H A D | ClassConst.php | 117 public function addAttribute($attribute) { argument 118 $this->attributeGroups[] = BuilderHelpers::normalizeAttribute($attribute);
|
H A D | Class_.php | 131 public function addAttribute($attribute) { argument 132 $this->attributeGroups[] = BuilderHelpers::normalizeAttribute($attribute);
|
H A D | Param.php | 154 public function addAttribute($attribute) { argument 155 $this->attributeGroups[] = BuilderHelpers::normalizeAttribute($attribute);
|
H A D | Property.php | 185 public function addAttribute($attribute) { argument 186 $this->attributeGroups[] = BuilderHelpers::normalizeAttribute($attribute);
|
/PHP-Parser/lib/PhpParser/ |
H A D | BuilderHelpers.php | 305 public static function normalizeAttribute($attribute): Node\AttributeGroup { argument 306 if ($attribute instanceof Node\AttributeGroup) { 307 return $attribute; 310 if (!($attribute instanceof Node\Attribute)) { 314 return new Node\AttributeGroup([$attribute]);
|
/PHP-Parser/test/PhpParser/Builder/ |
H A D | EnumCaseTest.php | 39 $attribute = new Attribute( 43 $attributeGroup = new AttributeGroup([$attribute]);
|
H A D | TraitTest.php | 99 $attribute = new Attribute( 103 $attributeGroup = new AttributeGroup([$attribute]);
|
H A D | EnumTest.php | 110 $attribute = new Attribute( 114 $attributeGroup = new AttributeGroup([$attribute]);
|
H A D | FunctionTest.php | 90 $attribute = new Attribute( 94 $attributeGroup = new AttributeGroup([$attribute]);
|
H A D | InterfaceTest.php | 85 $attribute = new Attribute( 89 $attributeGroup = new AttributeGroup([$attribute]);
|
H A D | ClassTest.php | 145 $attribute = new Attribute( 149 $attributeGroup = new AttributeGroup([$attribute]);
|
H A D | ClassConstTest.php | 122 $attribute = new Attribute( 126 $attributeGroup = new AttributeGroup([$attribute]);
|
H A D | MethodTest.php | 132 $attribute = new Attribute( 136 $attributeGroup = new AttributeGroup([$attribute]);
|
H A D | PropertyTest.php | 136 $attribute = new Attribute( 140 $attributeGroup = new AttributeGroup([$attribute]);
|
H A D | ParamTest.php | 277 $attribute = new Attribute( 281 $attributeGroup = new AttributeGroup([$attribute]);
|
/PHP-Parser/doc/component/ |
H A D | Name_resolution.markdown | 29 namespace prefix. For historic reasons this is a **property** rather than an attribute. 35 such names are left unresolved. Additionally, a `namespacedName` **attribute** is added to the 48 an `originalName` attribute, which contains the unresolved name. 51 `resolvedName` attribute will be added to each name, which contains the resolved (fully qualified) 53 `resolvedName` attribute will not be present, and instead a `namespacedName` attribute is added. 55 The `replaceNodes` attribute is useful if you wish to perform modifications on the AST, as you
|
H A D | Pretty_printing.markdown | 41 * `shortArraySyntax` determines the used array syntax if the `kind` attribute is not set. This is 47 specify an explicit array syntax using the `kind` attribute. 50 `list()`). This does not affect nodes that specify and explicit syntax using the `kind` attribute.
|
/PHP-Parser/test/PhpParser/ |
H A D | BuilderFactoryTest.php | 52 $factory->attribute('AttributeName', ['foo' => 'bar']) 281 ->addAttribute($factory->attribute('ClassAttribute', ['repository' => 'fqcn'])) 293 ->addAttribute($factory->attribute('Route', ['/index', 'name' => 'homepage'])) 310 ->addAttribute($factory->attribute('TaggedIterator', ['app.handlers'])) 320 … ->addAttribute($factory->attribute('Column', ['options' => ['unsigned' => true]])) 324 ->addAttribute($factory->attribute('ConstAttribute'))
|
H A D | BuilderHelpersTest.php | 17 $attribute = new Node\Attribute(new Node\Name('Test')); 18 $this->assertSame($attribute, BuilderHelpers::normalizeNode($attribute)); 216 $attribute = new Node\Attribute(new Node\Name('Test')); 217 $attributeGroup = new Node\AttributeGroup([$attribute]); 219 $this->assertEquals($attributeGroup, BuilderHelpers::normalizeAttribute($attribute));
|