Home
last modified time | relevance | path

Searched refs:Node (Results 1 – 10 of 10) sorted by relevance

/php-ast/tests/
H A Dconstructor.phpt2 ast\Node has a __construct method
10 var_dump(new \ast\Node());
14 var_dump(new \ast\Node(null, null, null, null));
17 echo ast_dump(new \ast\Node(\ast\AST_NAME, 1, ['name' => 'FOO'], 2), AST_DUMP_LINENOS) . "\n";
22 object(ast\Node)#1 (4) {
32 object(ast\Node)#1 (4) {
H A Dphp82_dynamic_property_attribute.phpt22 $node = new ast\Node();
28 dump_attributes(ast\Node::class);
31 %Sast\Node::__set_state(array(
46 Attributes of ast\Node:
H A Dnode_constructor_throw.phpt2 new ast\Node() throwing
9 new ast\Node('invalid');
H A Dempty_file_parse.phpt8 var_dump($file instanceof ast\Node);
11 var_dump($file instanceof ast\Node);
H A Ddecl_normalization.phpt2 The class ast\Node\Decl no longer exists
39 string(8) "ast\Node"
41 string(8) "ast\Node"
43 string(8) "ast\Node"
45 string(8) "ast\Node"
/php-ast/
H A Dast.stub.php19 function parse_code(string $code, int $version, string $filename = 'string code'): \ast\Node {}
21 function parse_file(string $filename, int $version): \ast\Node {}
36 class Node class
H A Dast_arginfo.h4 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_ast_parse_code, 0, 2, ast\\Node, 0)
10 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_ast_parse_file, 0, 2, ast\\Node, 0)
H A Dast_stub.php226 * @return Node Root node of AST
240 * @return Node Root node of AST
290 class Node class
H A Dutil.php58 if ($ast instanceof ast\Node) {
H A DREADME.md47 * `ast\Node` class
71 The abstract syntax tree returned by these functions consists of `ast\Node` objects.
72 `ast\Node` is declared as follows:
76 class Node {
95 `ast\Node` objects or plain values. There are two general categories of nodes: Normal AST nodes,
116 object(ast\Node)#1 (4) {
126 object(ast\Node)#2 (4) {
136 object(ast\Node)#3 (4) {
614 * Node dumper (human readable representation): While the php-ast extension does not directly

Completed in 11 milliseconds