/PHP-Parser/test/PhpParser/ |
H A D | BuilderHelpersTest.php | 22 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 D | Property.php | 6 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 D | ClassConst.php | 8 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 D | Param.php | 6 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 D | Method.php | 6 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 D | Class_.php | 6 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 D | EnumCase.php | 8 use PhpParser\BuilderHelpers; alias 40 $this->value = BuilderHelpers::normalizeValue($value); 54 'comments' => [BuilderHelpers::normalizeDocComment($docComment)] 68 $this->attributeGroups[] = BuilderHelpers::normalizeAttribute($attribute);
|
H A D | Namespace_.php | 6 use PhpParser\BuilderHelpers; alias 21 $this->name = null !== $name ? BuilderHelpers::normalizeName($name) : null; 32 $this->stmts[] = BuilderHelpers::normalizeStmt($stmt);
|
H A D | Enum_.php | 6 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 D | TraitUse.php | 6 use PhpParser\BuilderHelpers; alias 35 $this->traits[] = BuilderHelpers::normalizeName($trait); 47 $adaptation = BuilderHelpers::normalizeNode($adaptation);
|
H A D | FunctionLike.php | 5 use PhpParser\BuilderHelpers; alias 35 $param = BuilderHelpers::normalizeNode($param); 69 $this->returnType = BuilderHelpers::normalizeType($type);
|
H A D | Interface_.php | 6 use PhpParser\BuilderHelpers; alias 40 $this->extends[] = BuilderHelpers::normalizeName($interface); 54 $stmt = BuilderHelpers::normalizeNode($stmt); 77 $this->attributeGroups[] = BuilderHelpers::normalizeAttribute($attribute);
|
H A D | Function_.php | 6 use PhpParser\BuilderHelpers; alias 35 $this->stmts[] = BuilderHelpers::normalizeStmt($stmt); 48 $this->attributeGroups[] = BuilderHelpers::normalizeAttribute($attribute);
|
H A D | Declaration.php | 6 use PhpParser\BuilderHelpers; alias 45 BuilderHelpers::normalizeDocComment($docComment)
|
H A D | TraitUseAdaptation.php | 6 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 D | Trait_.php | 6 use PhpParser\BuilderHelpers; alias 40 $stmt = BuilderHelpers::normalizeNode($stmt); 65 $this->attributeGroups[] = BuilderHelpers::normalizeAttribute($attribute);
|
H A D | Use_.php | 6 use PhpParser\BuilderHelpers; alias 23 $this->name = BuilderHelpers::normalizeName($name);
|
/PHP-Parser/lib/PhpParser/ |
H A D | BuilderFactory.php | 22 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 D | BuilderHelpers.php | 19 final class BuilderHelpers { class
|
/PHP-Parser/ |
H A D | phpstan-baseline.neon | 54 …message: "#^Method PhpParser\\\\BuilderHelpers\\:\\:normalizeValue\\(\\) has parameter \\$value wi… 56 path: lib/PhpParser/BuilderHelpers.php
|
H A D | UPGRADE-4.0.md | 75 * The `BuilderAbstract` class has been removed. It's functionality is moved into `BuilderHelpers`.
|
H A D | CHANGELOG.md | 823 * The `BuilderAbstract` class has been removed. It's functionality is moved into `BuilderHelpers`.
|