Home
last modified time | relevance | path

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

/PHP-Parser/test/PhpParser/
H A DBuilderHelpersTest.php22 BuilderHelpers::normalizeNode('test');
42 BuilderHelpers::normalizeStmt('test');
52 BuilderHelpers::normalizeIdentifier(1);
83 BuilderHelpers::normalizeName('');
89 BuilderHelpers::normalizeName(1);
110 BuilderHelpers::normalizeNameOrExpr('');
116 BuilderHelpers::normalizeNameOrExpr(1);
157 BuilderHelpers::normalizeType(1);
163 BuilderHelpers::normalizeType('?void');
193 BuilderHelpers::normalizeValue([
[all …]
/PHP-Parser/lib/PhpParser/Builder/
H A DProperty.php6 use PhpParser\BuilderHelpers; alias
44 $this->flags = BuilderHelpers::addModifier($this->flags, Modifiers::PUBLIC);
55 $this->flags = BuilderHelpers::addModifier($this->flags, Modifiers::PROTECTED);
66 $this->flags = BuilderHelpers::addModifier($this->flags, Modifiers::PRIVATE);
77 $this->flags = BuilderHelpers::addModifier($this->flags, Modifiers::STATIC);
88 $this->flags = BuilderHelpers::addModifier($this->flags, Modifiers::READONLY);
110 $this->flags = BuilderHelpers::addModifier($this->flags, Modifiers::FINAL);
145 $this->default = BuilderHelpers::normalizeValue($value);
159 'comments' => [BuilderHelpers::normalizeDocComment($docComment)]
173 $this->type = BuilderHelpers::normalizeType($type);
[all …]
H A DClassConst.php8 use PhpParser\BuilderHelpers; alias
34 $this->constants = [new Const_($name, BuilderHelpers::normalizeValue($value))];
46 $this->constants[] = new Const_($name, BuilderHelpers::normalizeValue($value));
57 $this->flags = BuilderHelpers::addModifier($this->flags, Modifiers::PUBLIC);
68 $this->flags = BuilderHelpers::addModifier($this->flags, Modifiers::PROTECTED);
79 $this->flags = BuilderHelpers::addModifier($this->flags, Modifiers::PRIVATE);
90 $this->flags = BuilderHelpers::addModifier($this->flags, Modifiers::FINAL);
104 'comments' => [BuilderHelpers::normalizeDocComment($docComment)]
118 $this->attributeGroups[] = BuilderHelpers::normalizeAttribute($attribute);
131 $this->type = BuilderHelpers::normalizeType($type);
H A DParam.php6 use PhpParser\BuilderHelpers; alias
38 $this->default = BuilderHelpers::normalizeValue($value);
51 $this->type = BuilderHelpers::normalizeType($type);
87 $this->flags = BuilderHelpers::addModifier($this->flags, Modifiers::PUBLIC);
98 $this->flags = BuilderHelpers::addModifier($this->flags, Modifiers::PROTECTED);
109 $this->flags = BuilderHelpers::addModifier($this->flags, Modifiers::PRIVATE);
120 $this->flags = BuilderHelpers::addModifier($this->flags, Modifiers::READONLY);
131 $this->flags = BuilderHelpers::addModifier($this->flags, Modifiers::PRIVATE_SET);
142 $this->flags = BuilderHelpers::addModifier($this->flags, Modifiers::PROTECTED_SET);
155 $this->attributeGroups[] = BuilderHelpers::normalizeAttribute($attribute);
H A DMethod.php6 use PhpParser\BuilderHelpers; alias
37 $this->flags = BuilderHelpers::addModifier($this->flags, Modifiers::PUBLIC);
48 $this->flags = BuilderHelpers::addModifier($this->flags, Modifiers::PROTECTED);
59 $this->flags = BuilderHelpers::addModifier($this->flags, Modifiers::PRIVATE);
70 $this->flags = BuilderHelpers::addModifier($this->flags, Modifiers::STATIC);
85 $this->flags = BuilderHelpers::addModifier($this->flags, Modifiers::ABSTRACT);
97 $this->flags = BuilderHelpers::addModifier($this->flags, Modifiers::FINAL);
114 $this->stmts[] = BuilderHelpers::normalizeStmt($stmt);
127 $this->attributeGroups[] = BuilderHelpers::normalizeAttribute($attribute);
H A DClass_.php6 use PhpParser\BuilderHelpers; alias
46 $this->extends = BuilderHelpers::normalizeName($class);
60 $this->implements[] = BuilderHelpers::normalizeName($interface);
72 $this->flags = BuilderHelpers::addClassModifier($this->flags, Modifiers::ABSTRACT);
83 $this->flags = BuilderHelpers::addClassModifier($this->flags, Modifiers::FINAL);
94 $this->flags = BuilderHelpers::addClassModifier($this->flags, Modifiers::READONLY);
107 $stmt = BuilderHelpers::normalizeNode($stmt);
132 $this->attributeGroups[] = BuilderHelpers::normalizeAttribute($attribute);
H A DEnumCase.php8 use PhpParser\BuilderHelpers; alias
40 $this->value = BuilderHelpers::normalizeValue($value);
54 'comments' => [BuilderHelpers::normalizeDocComment($docComment)]
68 $this->attributeGroups[] = BuilderHelpers::normalizeAttribute($attribute);
H A DNamespace_.php6 use PhpParser\BuilderHelpers; alias
21 $this->name = null !== $name ? BuilderHelpers::normalizeName($name) : null;
32 $this->stmts[] = BuilderHelpers::normalizeStmt($stmt);
H A DEnum_.php6 use PhpParser\BuilderHelpers; alias
45 $this->scalarType = BuilderHelpers::normalizeType($scalarType);
59 $this->implements[] = BuilderHelpers::normalizeName($interface);
73 $stmt = BuilderHelpers::normalizeNode($stmt);
98 $this->attributeGroups[] = BuilderHelpers::normalizeAttribute($attribute);
H A DTraitUse.php6 use PhpParser\BuilderHelpers; alias
35 $this->traits[] = BuilderHelpers::normalizeName($trait);
47 $adaptation = BuilderHelpers::normalizeNode($adaptation);
H A DFunctionLike.php5 use PhpParser\BuilderHelpers; alias
35 $param = BuilderHelpers::normalizeNode($param);
69 $this->returnType = BuilderHelpers::normalizeType($type);
H A DInterface_.php6 use PhpParser\BuilderHelpers; alias
40 $this->extends[] = BuilderHelpers::normalizeName($interface);
54 $stmt = BuilderHelpers::normalizeNode($stmt);
77 $this->attributeGroups[] = BuilderHelpers::normalizeAttribute($attribute);
H A DFunction_.php6 use PhpParser\BuilderHelpers; alias
35 $this->stmts[] = BuilderHelpers::normalizeStmt($stmt);
48 $this->attributeGroups[] = BuilderHelpers::normalizeAttribute($attribute);
H A DDeclaration.php6 use PhpParser\BuilderHelpers; alias
45 BuilderHelpers::normalizeDocComment($docComment)
H A DTraitUseAdaptation.php6 use PhpParser\BuilderHelpers; alias
33 $this->trait = is_null($trait) ? null : BuilderHelpers::normalizeName($trait);
34 $this->method = BuilderHelpers::normalizeIdentifier($method);
53 $this->alias = BuilderHelpers::normalizeIdentifier($alias);
108 $this->insteadof[] = BuilderHelpers::normalizeName($trait);
H A DTrait_.php6 use PhpParser\BuilderHelpers; alias
40 $stmt = BuilderHelpers::normalizeNode($stmt);
65 $this->attributeGroups[] = BuilderHelpers::normalizeAttribute($attribute);
H A DUse_.php6 use PhpParser\BuilderHelpers; alias
23 $this->name = BuilderHelpers::normalizeName($name);
/PHP-Parser/lib/PhpParser/
H A DBuilderFactory.php22 BuilderHelpers::normalizeName($name),
216 return BuilderHelpers::normalizeValue($value);
245 $arg = new Arg(BuilderHelpers::normalizeValue($arg));
248 $arg->name = BuilderHelpers::normalizeIdentifier($key);
263 BuilderHelpers::normalizeNameOrExpr($name),
278 BuilderHelpers::normalizeIdentifierOrExpr($name),
292 BuilderHelpers::normalizeNameOrExpr($class),
293 BuilderHelpers::normalizeIdentifierOrExpr($name),
306 BuilderHelpers::normalizeNameOrExpr($class),
338 BuilderHelpers::normalizeNameOrExpr($class),
[all …]
H A DBuilderHelpers.php19 final class BuilderHelpers { class
/PHP-Parser/
H A Dphpstan-baseline.neon54 …message: "#^Method PhpParser\\\\BuilderHelpers\\:\\:normalizeValue\\(\\) has parameter \\$value wi…
56 path: lib/PhpParser/BuilderHelpers.php
H A DUPGRADE-4.0.md75 * The `BuilderAbstract` class has been removed. It's functionality is moved into `BuilderHelpers`.
H A DCHANGELOG.md823 * The `BuilderAbstract` class has been removed. It's functionality is moved into `BuilderHelpers`.

Completed in 26 milliseconds