Home
last modified time | relevance | path

Searched refs:attribute (Results 1 – 25 of 33) sorted by relevance

12

/PHP-Parser/lib/PhpParser/Builder/
H A DFunction_.php47 public function addAttribute($attribute) { argument
48 $this->attributeGroups[] = BuilderHelpers::normalizeAttribute($attribute);
H A DEnumCase.php67 public function addAttribute($attribute) { argument
68 $this->attributeGroups[] = BuilderHelpers::normalizeAttribute($attribute);
H A DInterface_.php76 public function addAttribute($attribute) { argument
77 $this->attributeGroups[] = BuilderHelpers::normalizeAttribute($attribute);
H A DTrait_.php64 public function addAttribute($attribute) { argument
65 $this->attributeGroups[] = BuilderHelpers::normalizeAttribute($attribute);
H A DEnum_.php97 public function addAttribute($attribute) { argument
98 $this->attributeGroups[] = BuilderHelpers::normalizeAttribute($attribute);
H A DMethod.php126 public function addAttribute($attribute) { argument
127 $this->attributeGroups[] = BuilderHelpers::normalizeAttribute($attribute);
H A DClassConst.php117 public function addAttribute($attribute) { argument
118 $this->attributeGroups[] = BuilderHelpers::normalizeAttribute($attribute);
H A DClass_.php131 public function addAttribute($attribute) { argument
132 $this->attributeGroups[] = BuilderHelpers::normalizeAttribute($attribute);
H A DParam.php154 public function addAttribute($attribute) { argument
155 $this->attributeGroups[] = BuilderHelpers::normalizeAttribute($attribute);
H A DProperty.php185 public function addAttribute($attribute) { argument
186 $this->attributeGroups[] = BuilderHelpers::normalizeAttribute($attribute);
/PHP-Parser/lib/PhpParser/
H A DBuilderHelpers.php305 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 DEnumCaseTest.php39 $attribute = new Attribute(
43 $attributeGroup = new AttributeGroup([$attribute]);
H A DTraitTest.php99 $attribute = new Attribute(
103 $attributeGroup = new AttributeGroup([$attribute]);
H A DEnumTest.php110 $attribute = new Attribute(
114 $attributeGroup = new AttributeGroup([$attribute]);
H A DFunctionTest.php90 $attribute = new Attribute(
94 $attributeGroup = new AttributeGroup([$attribute]);
H A DInterfaceTest.php85 $attribute = new Attribute(
89 $attributeGroup = new AttributeGroup([$attribute]);
H A DClassTest.php145 $attribute = new Attribute(
149 $attributeGroup = new AttributeGroup([$attribute]);
H A DClassConstTest.php122 $attribute = new Attribute(
126 $attributeGroup = new AttributeGroup([$attribute]);
H A DMethodTest.php132 $attribute = new Attribute(
136 $attributeGroup = new AttributeGroup([$attribute]);
H A DPropertyTest.php136 $attribute = new Attribute(
140 $attributeGroup = new AttributeGroup([$attribute]);
H A DParamTest.php277 $attribute = new Attribute(
281 $attributeGroup = new AttributeGroup([$attribute]);
/PHP-Parser/doc/component/
H A DName_resolution.markdown29 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 DPretty_printing.markdown41 * `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 DBuilderFactoryTest.php52 $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 DBuilderHelpersTest.php17 $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));

Completed in 33 milliseconds

12