Lines Matching refs:to
4 When PHP-Parser is used to generate (or modify) code by first creating an Abstract Syntax Tree and
5 then using the [pretty printer](Pretty_printing.markdown) to convert it to PHP code, it can often
6 be tedious to manually construct AST nodes. The project provides a number of utilities to simplify
63 // it is possible to add manually created nodes
122 wrappers. Also converts literals to AST nodes.
123 * `funcCall($name, array $args = [])`: Create a function call node. Converts `$name` to a `Name`
125 * `methodCall(Expr $var, $name, array $args = [])`: Create a method call node. Converts `$name` to
128 `$class` to a `Name` node, `$name` to an `Identifier` node and normalizes arguments.
129 * `new($class, array $args = [])`: Create a "new" (object creation) node. Converts `$class` to a
131 * `constFetch($name)`: Create a constant fetch node. Converts `$name` to a `Name` node.
132 * `classConstFetch($class, $name)`: Create a class constant fetch node. Converts `$class` to a
133 `Name` node and `$name` to an `Identifier` node.
134 * `propertyFetch($var, $name)`: Creates a property fetch node. Converts `$name` to an `Identifier`
137 * `attribute($name, $args)`: Create a `Attribute` node. Converts `$name` to a `Name` node and