Home
last modified time | relevance | path

Searched refs:trait (Results 1 – 22 of 22) sorted by relevance

/PHP-Parser/lib/PhpParser/Builder/
H A DTraitUse.php22 foreach ($traits as $trait) {
23 $this->and($trait);
34 public function and($trait) { argument
35 $this->traits[] = BuilderHelpers::normalizeName($trait);
H A DTraitUseAdaptation.php17 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 Dtrait.test5 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 DshortEchoAsIdentifier.test31 trait: null
41 trait: null
H A Dclass_position.test40 trait X {}
/PHP-Parser/test/PhpParser/Builder/
H A DTraitTest.php35 $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 DTraitUseAdaptationTest.php11 protected function createTraitUseAdaptationBuilder($trait, $method) { argument
12 return new TraitUseAdaptation($trait, $method);
/PHP-Parser/lib/PhpParser/Node/Stmt/TraitUseAdaptation/
H A DPrecedence.php19 … public function __construct(Node\Name $trait, $method, array $insteadof, array $attributes = []) { argument
21 $this->trait = $trait;
H A DAlias.php22 …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 Dattributes.test27 trait T {}
52 trait T
H A Dclass.test21 trait Bar
48 trait Bar
/PHP-Parser/test/code/parser/
H A DsemiReserved.test382 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 DTraitUseAdaptation.php9 public ?Node\Name $trait; variable in PhpParser\\Node\\Stmt\\TraitUseAdaptation
/PHP-Parser/test/code/formatPreservation/
H A Dattributes.test19 trait X {}
68 trait X {}
94 trait X {}
142 trait X {}
/PHP-Parser/lib/PhpParser/
H A DBuilderFactory.php101 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 Dphp.dict81 "trait"
/PHP-Parser/lib/PhpParser/NodeVisitor/
H A DNameResolver.php150 foreach ($node->traits as &$trait) {
151 $trait = $this->resolveClassName($trait);
/PHP-Parser/
H A DUPGRADE-1.0.md107 return 'trait ' . $node->name
116 return 'trait ' . $node->name
H A DCHANGELOG.md205 * Added support for class constants in trait builder.
868 * Added support for TraitUse statements in trait builder. (#413)
/PHP-Parser/doc/component/
H A DAST_builders.markdown21 * trait uses and trait use adaptations
/PHP-Parser/test/code/parser/stmt/
H A Dattributes.test27 trait T {}
/PHP-Parser/test/code/parser/errorHandling/
H A Drecovery.test674 trait: Name(

Completed in 24 milliseconds