/PHP-Parser/lib/PhpParser/Builder/ |
H A D | TraitUse.php | 22 foreach ($traits as $trait) { 23 $this->and($trait); 34 public function and($trait) { argument 35 $this->traits[] = BuilderHelpers::normalizeName($trait);
|
H A D | TraitUseAdaptation.php | 17 protected ?Node\Name $trait; variable in PhpParser\\Builder\\TraitUseAdaptation 30 public function __construct($trait, $method) { argument 33 $this->trait = is_null($trait) ? null : BuilderHelpers::normalizeName($trait); 107 foreach ($traits as $trait) { 108 $this->insteadof[] = BuilderHelpers::normalizeName($trait);
|
/PHP-Parser/test/code/parser/stmt/class/ |
H A D | trait.test | 5 trait A { 76 trait: null 86 trait: null 96 trait: null 119 trait: Name( 135 trait: Name( 147 trait: Name( 159 trait: Name(
|
H A D | shortEchoAsIdentifier.test | 31 trait: null 41 trait: null
|
H A D | class_position.test | 40 trait X {}
|
/PHP-Parser/test/PhpParser/Builder/ |
H A D | TraitTest.php | 35 $trait = $this->createTraitBuilder('TestTrait') 49 ]), $trait); 66 $trait = new Stmt\Trait_('Foo', [ 77 $this->assertSame($methods, $trait->getMethods()); 85 $trait = new Stmt\Trait_('Foo', [ 95 $this->assertSame($properties, $trait->getProperties());
|
H A D | TraitUseAdaptationTest.php | 11 protected function createTraitUseAdaptationBuilder($trait, $method) { argument 12 return new TraitUseAdaptation($trait, $method);
|
/PHP-Parser/lib/PhpParser/Node/Stmt/TraitUseAdaptation/ |
H A D | Precedence.php | 19 … public function __construct(Node\Name $trait, $method, array $insteadof, array $attributes = []) { argument 21 $this->trait = $trait;
|
H A D | Alias.php | 22 …public function __construct(?Node\Name $trait, $method, ?int $newModifier, $newName, array $attrib… argument 24 $this->trait = $trait;
|
/PHP-Parser/test/code/prettyPrinter/stmt/ |
H A D | attributes.test | 27 trait T {} 52 trait T
|
H A D | class.test | 21 trait Bar 48 trait Bar
|
/PHP-Parser/test/code/parser/ |
H A D | semiReserved.test | 382 trait: Name( 395 trait: Name( 407 trait: Name( 419 trait: Name( 429 trait: null 439 trait: Name_FullyQualified( 451 trait: Name_Relative( 463 trait: Name(
|
/PHP-Parser/lib/PhpParser/Node/Stmt/ |
H A D | TraitUseAdaptation.php | 9 public ?Node\Name $trait; variable in PhpParser\\Node\\Stmt\\TraitUseAdaptation
|
/PHP-Parser/test/code/formatPreservation/ |
H A D | attributes.test | 19 trait X {} 68 trait X {} 94 trait X {} 142 trait X {}
|
/PHP-Parser/lib/PhpParser/ |
H A D | BuilderFactory.php | 101 public function traitUseAdaptation($trait, $method = null): Builder\TraitUseAdaptation { argument 103 $method = $trait; 104 $trait = null; 107 return new Builder\TraitUseAdaptation($trait, $method);
|
/PHP-Parser/tools/fuzzing/ |
H A D | php.dict | 81 "trait"
|
/PHP-Parser/lib/PhpParser/NodeVisitor/ |
H A D | NameResolver.php | 150 foreach ($node->traits as &$trait) { 151 $trait = $this->resolveClassName($trait);
|
/PHP-Parser/ |
H A D | UPGRADE-1.0.md | 107 return 'trait ' . $node->name 116 return 'trait ' . $node->name
|
H A D | CHANGELOG.md | 205 * Added support for class constants in trait builder. 868 * Added support for TraitUse statements in trait builder. (#413)
|
/PHP-Parser/doc/component/ |
H A D | AST_builders.markdown | 21 * trait uses and trait use adaptations
|
/PHP-Parser/test/code/parser/stmt/ |
H A D | attributes.test | 27 trait T {}
|
/PHP-Parser/test/code/parser/errorHandling/ |
H A D | recovery.test | 674 trait: Name(
|