This class defines helpers used in the implementation of builders. Don't use it directly.
- internal
Methods |
public static addClassModifier(int $existingModifiers, int $modifierToSet) : int Adds a modifier and returns new modifier bitmask.
|
public static addModifier(int $modifiers, int $modifier) : int Adds a modifier and returns new modifier bitmask.
|
public static normalizeAttribute( $attribute) : PhpParser Normalizes a attribute: Converts attribute to the Attribute Group if needed.
|
public static normalizeDocComment( $docComment) : PhpParser Normalizes a doc comment: Converts plain strings to PhpParser\Comment\Doc.
|
public static normalizeIdentifier( $name) : PhpParser Normalizes strings to Identifier.
|
public static normalizeIdentifierOrExpr( $name) Normalizes strings to Identifier, also allowing expressions.
|
public static normalizeName( $name) : PhpParser Normalizes a name: Converts string names to Name nodes.
|
public static normalizeNameOrExpr( $name) Normalizes a name: Converts string names to Name nodes, while also allowing expressions.
|
public static normalizeNode( $node) : PhpParser Normalizes a node: Converts builder objects to nodes.
|
public static normalizeStmt( $node) : PhpParser Normalizes a node to a statement. Expressions are wrapped in a Stmt\Expression node.
|
public static normalizeType( $type) Normalizes a type: Converts plain-text type names into proper AST representation. In particular, builtin types become Identifiers, custom types become Names and nullables are wrapped in NullableType nodes.
|
public static normalizeValue( $value) : PhpParser Normalizes a value: Converts nulls, booleans, integers, floats, strings and arrays into their respective nodes
|
Methods |
public static addClassModifier(int $existingModifiers, int $modifierToSet) : int Adds a modifier and returns new modifier bitmask.
|
public static addModifier(int $modifiers, int $modifier) : int Adds a modifier and returns new modifier bitmask.
|
public static normalizeAttribute( $attribute) : PhpParser Normalizes a attribute: Converts attribute to the Attribute Group if needed.
|
public static normalizeDocComment( $docComment) : PhpParser Normalizes a doc comment: Converts plain strings to PhpParser\Comment\Doc.
|
public static normalizeIdentifier( $name) : PhpParser Normalizes strings to Identifier.
|
public static normalizeIdentifierOrExpr( $name) Normalizes strings to Identifier, also allowing expressions.
|
public static normalizeName( $name) : PhpParser Normalizes a name: Converts string names to Name nodes.
|
public static normalizeNameOrExpr( $name) Normalizes a name: Converts string names to Name nodes, while also allowing expressions.
|
public static normalizeNode( $node) : PhpParser Normalizes a node: Converts builder objects to nodes.
|
public static normalizeStmt( $node) : PhpParser Normalizes a node to a statement. Expressions are wrapped in a Stmt\Expression node.
|
public static normalizeType( $type) Normalizes a type: Converts plain-text type names into proper AST representation. In particular, builtin types become Identifiers, custom types become Names and nullables are wrapped in NullableType nodes.
|
public static normalizeValue( $value) : PhpParser Normalizes a value: Converts nulls, booleans, integers, floats, strings and arrays into their respective nodes
|