/php-ast/tests/ |
H A D | version_errors.phpt | 13 ast\parse_code('<?php ...', $version=10000); 20 No version specified. Current version is %d. All versions (including experimental): {%d, %s} 21 Unknown version 10000. Current version is %d. All versions (including experimental): {%d, %s}
|
H A D | empty_file_parse.phpt | 7 $file = ast\parse_file(__DIR__ . '/empty_file.php', $version=70); 10 $file = ast\parse_code('', $version=70);
|
H A D | class_const_types.phpt | 18 echo ast_dump(ast\parse_code($code, $version=90)); 19 echo "\n\nIn version 100\n"; 20 echo ast_dump(ast\parse_code($code, $version=100)); 56 In version 100
|
H A D | class_type_85.phpt | 2 Class types only used for enums in AST version 85 17 $node = ast\parse_code($code, $version=85);
|
H A D | php74_type_hints.phpt | 23 $node = ast\parse_code($code, $version=60); 24 echo "The type property should not be set in version 60\n"; 26 echo "But the type property should be set in version 70\n"; 27 $node = ast\parse_code($code, $version=70); 32 The type property should not be set in version 60 87 But the type property should be set in version 70
|
H A D | short_arrow_function_return.phpt | 18 $node = ast\parse_code($code, $version=70); 21 $node50 = ast\parse_code($code, $version=50); 23 echo "Same representation in version 50/70: "; 95 Same representation in version 50/70: true
|
H A D | short_arrow_function.phpt | 19 $node = ast\parse_code($code, $version=70); 22 $node50 = ast\parse_code($code, $version=50); 24 echo "Same representation in version 50/70: "; 103 Same representation in version 50/70: true
|
H A D | class_name_version_50.phpt | 2 Class properties in AST version 50 16 $node = ast\parse_code($code, $version=50);
|
H A D | class_consts_80.phpt | 2 Class constants in AST version 80 21 echo ast_dump(ast\parse_code($code, $version=80));
|
H A D | php81_final_class_const.phpt | 16 $node = ast\parse_code($code, $version=70); 18 $node = ast\parse_code($code, $version=80);
|
H A D | parse_file.phpt | 8 $ast = ast\parse_file(__DIR__ . '/valid_file.php', $version=70);
|
H A D | functions_dont_use.phpt | 14 echo ast_dump(ast\parse_code($code, $version=50)), "\n"; 15 echo ast_dump(ast\parse_code($code, $version=60)), "\n";
|
H A D | nop_statements.phpt | 15 echo ast_dump(ast\parse_code($code, $version=70)), "\n";
|
H A D | php81_readonly.phpt | 17 $node = ast\parse_code($code, $version=60); 19 $node = ast\parse_code($code, $version=85);
|
H A D | decl_ids.phpt | 2 Closures should have unique identifiers within parsed code in version 50 14 echo ast_dump(ast\parse_code($code, $version=50)) . "\n"; 15 echo ast_dump(ast\parse_code($code, $version=80)) . "\n";
|
H A D | php74_ordinary_class.phpt | 2 Class properties in AST version 70 (php 7.0+) 19 $node = ast\parse_code($code, $version=70);
|
H A D | class_on_objects.phpt | 13 $node = ast\parse_code($code, $version=70);
|
H A D | coalesce.phpt | 13 echo ast_dump(ast\parse_code($code, $version=70)), "\n";
|
H A D | prop_doc_comments.phpt | 23 echo ast_dump(ast\parse_code($code, $version=50)), "\n"; 24 echo ast_dump(ast\parse_code($code, $version=80)), "\n"; 25 echo ast_dump(ast\parse_code($code, $version=110)), "\n";
|
/php-ast/ |
H A D | RELEASE_CHECKLIST | 2 * Update version in php_ast.h to remove dev suffix. 3 * Update version, release date in package.xml. 4 * Check whether "The current version" in README.md is up to date. 9 * Bump version in php_ast.h and add dev suffix.
|
H A D | ast.stub.php | 19 function parse_code(string $code, int $version, string $filename = 'string code'): \ast\Node {} argument 21 function parse_file(string $filename, int $version): \ast\Node {} argument
|
H A D | ast.c | 126 zend_long version; member 747 if (state->version < 80) { in ast_fill_children_ht() 862 if (state->version >= 80) { in ast_fill_children_ht() 879 if (state->version >= 110) { in ast_fill_children_ht() 892 if (state->version >= 80) { in ast_fill_children_ht() 1143 return version < 70; in ast_version_deprecated() 1185 if (version != -1) { in ast_check_version() 1198 zend_long version = -1; in PHP_FUNCTION() local 1235 state.version = version; in PHP_FUNCTION() 1246 zend_long version = -1; in PHP_FUNCTION() local [all …]
|
H A D | README.md | 6 **This is the documentation for version 1.x.y. See also [documentation for version 0.1.x][v0_1_x].** 51 * `ast\parse_file(string $filename, int $version)` 66 $ast = ast\parse_code('<?php ...', $version=100); 68 $ast = ast\parse_file('file.php', $version=100); 113 var_dump(ast\parse_code($code, $version=70)); 170 echo ast_dump(ast\parse_code($code, $version=70)), "\n"; 471 AST_ATTRIBUTE_LIST // php 8.0+ attributes (version 80+) 472 AST_ATTRIBUTE_GROUP // php 8.0+ attributes (version 80+) 528 * Same as AST version 85. 571 This is the oldest AST version available in 1.0.0. See the [all …]
|
H A D | ast_stub.php | 225 * @param int $version AST version 230 function parse_file(string $filename, int $version) argument 238 * @param int $version AST version 244 function parse_code(string $code, int $version, string $filename = "string code") argument
|
H A D | ast_arginfo.h | 6 ZEND_ARG_TYPE_INFO(0, version, IS_LONG, 0) 12 ZEND_ARG_TYPE_INFO(0, version, IS_LONG, 0)
|