Home
last modified time | relevance | path

Searched refs:with (Results 1 – 25 of 34) sorted by relevance

12

/PHP-Parser/test/PhpParser/Builder/
H A DTraitUseTest.php30 ->with(new Stmt\TraitUseAdaptation\Alias(null, 'foo', null, 'bar'))
31 ->with((new TraitUseAdaptation(null, 'test'))->as('baz'))
48 ->with(new Stmt\Echo_([]))
/PHP-Parser/
H A Dphpstan-baseline.neon4 …er\\\\Builder\\\\ClassConst\\:\\:__construct\\(\\) has parameter \\$value with no value type speci…
9 …arser\\\\Builder\\\\ClassConst\\:\\:addConst\\(\\) has parameter \\$value with no value type speci…
14 …message: "#^Method PhpParser\\\\BuilderFactory\\:\\:args\\(\\) has parameter \\$args with no value…
19 …message: "#^Method PhpParser\\\\BuilderFactory\\:\\:attribute\\(\\) has parameter \\$args with no …
24 …message: "#^Method PhpParser\\\\BuilderFactory\\:\\:classConst\\(\\) has parameter \\$value with n…
29 …message: "#^Method PhpParser\\\\BuilderFactory\\:\\:funcCall\\(\\) has parameter \\$args with no v…
34 …message: "#^Method PhpParser\\\\BuilderFactory\\:\\:methodCall\\(\\) has parameter \\$args with no…
39 …message: "#^Method PhpParser\\\\BuilderFactory\\:\\:new\\(\\) has parameter \\$args with no value …
49 …message: "#^Method PhpParser\\\\BuilderFactory\\:\\:val\\(\\) has parameter \\$value with no value…
89 message: "#^Call to function assert\\(\\) with false will always evaluate to false\\.$#"
[all …]
H A DLICENSE6 Redistribution and use in source and binary forms, with or without
14 and/or other materials provided with the distribution.
H A DCHANGELOG.md218 sequence with a following `\n`.
299 to avoid a dynamic property deprecation warning with PHP 8.2.
405 * Fixed check for token emulation conflicts with other libraries.
465 * Emit parentheses for class constant fetch with complex left-hand-side.
568 behavior with the upcoming PHP 7.3.10 release.
580 * Fixed compatibility with PHP 7.4.
825 * Improve compatibility with PHP-Scoper. (#477)
941 * Added `php-parse --with-positions` option, which dumps nodes with position information.
1003 used. `Name::concat()` now also supports concatenation with `null`.
1048 with a single `type` subnode.
[all …]
H A DUPGRADE-1.0.md11 The library has been moved to use namespaces with the `PhpParser` vendor prefix. However, the old n…
32 Due to conflicts with reserved keywords, some class names now end with an underscore, e.g. `PHPPars…
H A DUPGRADE-3.0.md24 * The `TryCatch` subnode `finallyStmts` has been replaced with a `finally` subnode that holds an
80 The PHP 7 parser is a superset of the PHP 5 parser, with the exceptions that `=& new` and
85 It is possible to restore the precise previous behavior with the following code:
118 If you use a custom lexer with overridden `startLexing()` method, it needs to be changed to accept
136 Use `Name::concat()` in combination with `Name::slice()` instead.
160 used. `Name::concat()` now also supports concatenation with `null`.
/PHP-Parser/.github/workflows/
H A Dmain.yml1 # https://help.github.com/en/categories/automating-your-workflow-with-github-actions
10 name: "PHP 7.4 Unit Tests (with coverage)"
16 with:
48 with:
65 with:
82 with:
99 with:
116 with:
/PHP-Parser/test/code/prettyPrinter/stmt/
H A Dswitch.test7 echo 'First case, with a break';
24 echo 'First case, with a break';
/PHP-Parser/test/code/formatPreservation/
H A DrewriteVariableInterpolationString.test1 Rewrite string with variable interpolation
H A DnopCommentAtEnd.test1 Nop statement with comment at end (#513)
/PHP-Parser/test/code/parser/stmt/namespace/
H A Dmix.test11 Cannot mix bracketed namespace declarations with unbracketed namespace declarations from 4:1 to 4:9
58 Cannot mix bracketed namespace declarations with unbracketed namespace declarations from 6:1 to 6:9
/PHP-Parser/doc/component/
H A DPerformance.markdown11 Running PHP with Xdebug adds a lot of overhead, especially for code that performs many method calls.
20 you may want to consider automatically restarting PHP with Xdebug unloaded. The
24 If you do run with Xdebug, you may need to increase the `xdebug.max_nesting_level` option to a
43 is not reused. (Currently two objects with particularly expensive setup are parsers and pretty
H A DAST_builders.markdown12 The library comes with a number of builders, which allow creating node trees using a fluent
44 ->with($factory->traitUseAdaptation('foo')->as('bar'))
45 ->with($factory->traitUseAdaptation('AnotherTrait', 'baz')->as('test'))
46 ->with($factory->traitUseAdaptation('AnotherTrait', 'func')->insteadof('SecondTrait')))
80 This will produce the following output with the standard pretty printer:
H A DWalking_the_AST.markdown4 The most common way to work with the AST is by using a node traverser and one or more node visitors.
39 Each node visitor implements an interface with following four methods:
141 with `!!($a && $b)`. This will continue until PHP hits the memory limit.
160 generally want to remove it together with a surrounding expression statement:
178 Another way to remove nodes is to replace them with `null`. For example, all `else` statements could
192 Next to removing nodes, it is also possible to replace one node with multiple nodes. This
234 after finding it. For example, if you are looking for the node of a class with a certain name (and
256 A single traverser can be used with multiple visitors:
265 It is important to understand that if a traverser is run with multiple visitors, the visitors will
290 visitors, with the `leaveNode()` calls happening in the reverse order of the `enterNode()` calls.
[all …]
H A DPretty_printing.markdown52 for this has been removed with the introduction of flexible heredoc/nowdoc strings.
53 * For PHP >= 7.3, heredoc/nowdoc strings are indented just like regular code. This was allowed with
63 default pretty printer with an existing library for code reformatting, such as
/PHP-Parser/lib/PhpParser/Builder/
H A DTraitUse.php46 public function with($adaptation) { function in PhpParser\\Builder\\TraitUse
/PHP-Parser/test/code/parser/stmt/generator/
H A DyieldUnaryPrecedence.test1 Yield with unary operator argument
H A Dbasic.test16 // yield in language constructs with their own parentheses
138 0: // yield in language constructs with their own parentheses
/PHP-Parser/doc/
H A D0_Introduction.markdown10 application dealing with code programmatically. A parser constructs an [Abstract Syntax Tree][1]
11 (AST) of the code and thus allows dealing with it in an abstract and robust way.
16 a file. On the other hand, the token stream is much harder to deal with for more complex analysis.
29 The parser supports parsing PHP 7 and PHP 8 code, with the following exceptions:
35 PHP-Parser 4.x had full support for parsing PHP 5. PHP-Parser 5.x has only limited support, with the
76 with the values `Hi` and `World`.
H A D2_Usage_of_basic_components.markdown154 You can also use the `php-parse` script to obtain such a node dump by calling it either with a file
174 reserved keyword. Many node class names in this library have a trailing `_` to avoid clashing with
178 with them easier they are grouped into three categories:
203 without the `PhpParser\Node\` prefix and `\` replaced with `_`. It also does not contain a trailing
206 It is possible to associate custom metadata with a node using the `setAttribute()` method. This data
340 traverser was called with. This method can be used for resetting values before traversal or
360 * `NodeVisitor::REPLACE_WITH_NULL`, in which case the current node will be replaced with `null`.
374 helps you work with namespaced code by trying to resolve most names to fully qualified ones.
403 We start off with the following base code:
450 Now lets start with the main code, the `NamespaceConverter`. One thing it needs to do
[all …]
/PHP-Parser/test/code/parser/stmt/
H A DmultiCatch.test1 Try/catch with multiple classes
/PHP-Parser/test/code/parser/expr/
H A DarrayEmptyElemens.test1 Array with empty elements
H A DlistWithKeys.test1 List destructing with keys
/PHP-Parser/test/PhpParser/
H A DBuilderFactoryTest.php288 ->with($factory->traitUseAdaptation('foo')->as('bar'))
289 ->with($factory->traitUseAdaptation('AnotherTrait', 'baz')->as('test'))
290 … ->with($factory->traitUseAdaptation('AnotherTrait', 'func')->insteadof('SecondTrait')))
/PHP-Parser/grammar/
H A DREADME.md11 The `.y` file is a normal grammar in `kmyacc` (`yacc`) style, with some transformations

Completed in 46 milliseconds

12