Commit Graph

102 Commits

Author SHA1 Message Date
Brent Shaffer
1973b6633a Fixes typo in AST Builder doc (#529) 2018-08-17 07:18:50 +09:00
Nikita Popov
4d6825c460 Add notes for new builders in docs 2018-07-22 21:33:04 +02:00
Eridan Domoratskiy
5aeb884ab5 Mention makeReturnByRef() in AST_builders.markdown (#519) 2018-07-20 21:47:07 +02:00
Loek van der Linde
2b0bd657bb Update 2_Usage_of_basic_components.markdown (#494) 2018-04-17 18:29:16 +03:00
Nikita Popov
3125b54e5e Link to composer/xdebug-handler 2018-03-25 19:34:45 +02:00
Nikita Popov
610617fe93 Also add new() builder 2018-03-03 22:25:58 +01:00
Nikita Popov
ff2d85dc6b Add constFetch() and classConstFetch() builders 2018-03-03 22:14:42 +01:00
Nikita Popov
b998d1e9b5 Add funcCall(), methodCall() and staticCall() builders 2018-03-03 15:40:51 +01:00
Nikita Popov
7484acb88b Enable syntax highlighting for one code block 2018-02-28 21:27:29 +01:00
Nikita Popov
bc5ba47b28 Add links to component docs 2018-02-28 21:14:04 +01:00
Nikita Popov
b9996315a6 Add more extensive docs for node visitors
Also document NodeFinder.
2018-02-28 21:00:42 +01:00
Ryan Weaver
de3470190c Proofreading the docs - very minor changes! 2018-02-28 18:15:02 +01:00
Nikita Popov
8d1e86b47f Move node dumper docs into basic usage
Also mentioned php-parse here.
2018-02-08 17:17:32 +01:00
Nikita Popov
ff10cc9d08 Move JSON representation into component documentation
Also add -j flag to php-parse script to get a JSON dump. Also
drop obsolete flag for XML dumping.
2018-02-08 16:36:04 +01:00
Nikita Popov
dd0adcc96c Move code gen docs to components and improve
Mention non-fluent helper methods.
2018-01-27 18:56:21 +01:00
Nikita Popov
e4505de346 Move FAQ into component documentation 2018-01-27 18:40:22 +01:00
Nikita Popov
a513ccabb7 Improve constant evaluation and add docs
Split into evaluateDirectly() and evaluateSilently(), to be able
to treat errors more gracefully. Add documentation for constant
evaluation.
2018-01-27 17:47:45 +01:00
Gabriel Caruso
aa685e711a Bump to PHP 7.2 in documentation 2018-01-14 22:10:37 +01:00
Gabriel Caruso
bcb45d31eb Trailing whitespaces (#461)
Signed-off-by: Gabriel Caruso <carusogabriel34@gmail.com>
2018-01-08 11:10:03 +01:00
Nikita Popov
73be07672b Docs: Add performance section 2017-11-10 22:44:06 +01:00
Tomáš Votruba
7f92edf3a1 Docs: add missing $stmts (#433) 2017-10-31 22:48:00 +01:00
Tomáš Votruba
651341d53b docs: "return" => "remove" typo (#430) 2017-10-22 13:50:47 +02:00
Nikita Popov
eaee6687e0 Tweaks 2017-10-03 19:13:20 +02:00
Nikita Popov
f5f3b0d49d Add name resolution, pretty printing component docs
The docs are receiving too little love...
2017-10-03 19:09:59 +02:00
Nikita Popov
9373a8e9f5 Implement JsonDecoder
Converts JSON representation back into node tree.
2017-08-18 23:56:12 +02:00
Tomáš Votruba
edec3bb07a Docs: fix FAQ link anchor (#406) 2017-08-08 17:53:02 +02:00
Tomáš Votruba
770c314dd1 Docs: Use PHP 7 return types (#405) 2017-08-07 22:49:26 +02:00
Ilia Smirnov
441e6e1d31 Fixed incorrect class inheritance (#394)
Generated example was incorrect - you cannot define import alias:
use Some\Other\Thingy as SomeClass;

and then define a class with the same name:
abstract class SomeClass ...

Class names changed to avoid conflict between import alias and abstract class name.
2017-07-19 16:55:00 +02:00
xKerman
24d583d5c3 Fix example code to work (#390) 2017-05-28 12:35:04 +02:00
Nikita Popov
e15b6aa3e0 Fix links 2017-04-09 18:51:46 +02:00
Maks Rafalko
12034b19d7 Use the correct method from NodeVisitor interface (#373)
FAQ's code examples use incorrect method, so this update fixes it
2017-04-09 11:29:07 +02:00
Nikita Popov
369a078c54 Add FAQ with entries for parent and siblings 2017-04-08 23:27:43 +02:00
Nikita Popov
deb64ab676 Remove XML serialization from docs
This is no longer available in version 4.
2017-04-08 23:12:53 +02:00
Ben Peachey
291bb27f6a Removes unneeded code from JSON encoding example (#372) 2017-04-07 16:15:46 +02:00
Nikita Popov
987c61e935 Drop support for false return value in NodeTraverser 2017-02-03 22:36:57 +01:00
Nikita Popov
71438559ae Update docs 2016-10-29 13:37:47 +02:00
Nikita Popov
1b1ff8995b Update some PHP version numbers 2016-07-22 17:07:56 +02:00
Nikita Popov
912c0bb9c9 Document that XDebug is super slow 2016-04-19 15:40:08 +02:00
lvht
39f93f09f9 Add setReturnType() method to function/method builders
Also support scalar type hints in existing setTypeHint() method on params.
2016-04-09 18:41:38 +09:00
Prayag Verma
73a9d494fb typo fixes 2016-01-28 19:31:28 +05:30
Nikita Popov
c542e5d86a Release PHP-Parser 2.0.0 2015-12-04 16:28:43 +01:00
Nikita Popov
0d4239ef56 Only advertize install via composer
Now that it's so small, move installation docs into readme.
2015-09-16 22:16:29 +09:00
Nikita Popov
2496cd38ad Various docs fixes 2015-07-14 21:11:54 +02:00
Nikita Popov
965e53a164 Update changelog 2015-07-14 20:13:26 +02:00
Nikita Popov
3bb874fcec Partial docs update 2015-07-14 19:19:32 +02:00
Nikita Popov
659d26c231 Update changelog, fix typos 2015-05-01 19:57:10 +02:00
Nikita Popov
23bf4f0c13 Add some error documentation 2015-04-30 21:58:45 +02:00
Nikita Popov
0f556c16f5 Fix a few more Scalar\String_ occurances
Totally forgot that the parser uses macros...
2015-03-21 18:54:52 +01:00
Nikita Popov
0c34706799 Add "use" builder 2015-03-10 16:05:55 +01:00
Thomas Ruiz
73cace360d Implicit public should not generate as explicit public 2015-03-08 20:21:01 +01:00