Home
last modified time | relevance | path

Searched refs:traits (Results 1 – 17 of 17) sorted by relevance

/PHP-Parser/lib/PhpParser/Node/Stmt/
H A DTraitUse.php9 public array $traits; variable in PhpParser\\Node\\Stmt\\TraitUse
20 public function __construct(array $traits, array $adaptations = [], array $attributes = []) { argument
22 $this->traits = $traits;
/PHP-Parser/lib/PhpParser/Builder/
H A DTraitUse.php12 protected array $traits = []; variable in PhpParser\\Builder\\TraitUse
21 public function __construct(...$traits) { argument
22 foreach ($traits as $trait) {
35 $this->traits[] = BuilderHelpers::normalizeName($trait);
63 return new Stmt\TraitUse($this->traits, $this->adaptations);
H A DTraitUseAdaptation.php94 public function insteadof(...$traits) { argument
107 foreach ($traits as $trait) {
/PHP-Parser/test/PhpParser/Builder/
H A DTraitUseTest.php9 protected function createTraitUseBuilder(...$traits) { argument
10 return new TraitUse(...$traits);
/PHP-Parser/test/code/parser/stmt/class/
H A Dtrait.test60 traits: array(
69 traits: array(
106 traits: array(
H A DshortEchoAsIdentifier.test24 traits: array(
H A Danonymous.test128 traits: array(
/PHP-Parser/lib/PhpParser/
H A DBuilderFactory.php89 public function useTrait(...$traits): Builder\TraitUse { argument
90 return new Builder\TraitUse(...$traits);
/PHP-Parser/test/code/formatPreservation/
H A DlistRemoval.test213 unset($stmts[0]->stmts[0]->traits[0]);
/PHP-Parser/doc/component/
H A DName_resolution.markdown27 * Declarations of functions, classes, interfaces, traits, enums and global constants will have a
H A DAST_builders.markdown18 * classes, interfaces, traits and enums
/PHP-Parser/test/code/parser/
H A DsemiReserved.test372 traits: array(
/PHP-Parser/lib/PhpParser/NodeVisitor/
H A DNameResolver.php150 foreach ($node->traits as &$trait) {
/PHP-Parser/test/code/parser/errorHandling/
H A Drecovery.test658 traits: array(
667 traits: array(
/PHP-Parser/
H A DUPGRADE-3.0.md34 takes an array of subnodes. Unlike classes/interfaces, traits can only have a `stmts` subnode.
H A DCHANGELOG.md393 * Fixed position information for traits/interfaces preceded by if statement (#738).
1085 takes an array of subnodes. Unlike classes/interfaces, traits can only have a `stmts` subnode.
/PHP-Parser/lib/PhpParser/PrettyPrinter/
H A DStandard.php812 return 'use ' . $this->pCommaSeparated($node->traits)

Completed in 29 milliseconds