Home
last modified time | relevance | path

Searched refs:code (Results 1 – 25 of 84) sorted by relevance

1234

/php-ast/scripts/
H A Dgenerate_ast_data.php6 $code = <<<EOC variable
234 $code = str_replace('{KINDS}', implode("\n", $kinds), $code); variable
235 $code = str_replace('{STRS}', implode("\n", $strs), $code); variable
236 $code = str_replace('{CONSTS}', implode("\n", $consts), $code); variable
263 $code = str_replace('{CHILD_NAMES}', implode("\n", $childNames), $code); variable
265 file_put_contents($outCodeFile, $code);
/php-ast/tests/
H A Dparse_code_parse_error.phpt6 $code = '<?php &$(")$/)!"';
9 ast\parse_code($code, 70);
14 ast\parse_code($code, 70, 'file.php');
21 ParseError: syntax error, unexpected %s&%s expecting end of file in string code:1
H A Dnop_statements.phpt8 $code = <<<'PHP'
15 echo ast_dump(ast\parse_code($code, $version=70)), "\n";
H A Dclass_on_objects.phpt8 $code = <<<'PHP'
13 $node = ast\parse_code($code, $version=70);
H A Dcoalesce.phpt8 $code = <<<'PHP'
13 echo ast_dump(ast\parse_code($code, $version=70)), "\n";
H A Dgenerator_flag.phpt8 $code = <<<'PHP'
15 echo ast_dump(ast\parse_code($code, $version=70)), "\n";
H A Dnever_return_type.phpt8 $code = <<<'PHP'
14 $node = ast\parse_code($code, $version=85);
H A Dunary_ops.phpt8 $code = <<<'PHP'
15 echo ast_dump(ast\parse_code($code, $version=70)), "\n";
H A Dphp81_final_class_const.phpt9 $code = <<<'PHP'
16 $node = ast\parse_code($code, $version=70);
18 $node = ast\parse_code($code, $version=80);
H A Dnested_stmt_lists.phpt8 $code = <<<'PHP'
25 echo ast_dump(ast\parse_code($code, $version=70)), "\n";
H A Dmultiple_final_modifiers.phpt8 $code = <<<'PHP'
15 ast\parse_code($code, $version=70);
H A Dmulti_catch.phpt8 $code = <<<'PHP'
15 echo ast_dump(ast\parse_code($code, $version=70)), "\n";
H A Dobject_type.phpt8 $code = <<<'PHP'
13 echo ast_dump(ast\parse_code($code, $version=70));
H A Dast_dump_with_exclude_doc.phpt8 $code = <<<'PHP'
19 $ast = ast\parse_code($code, $version=80);
H A Dfunctions_dont_use.phpt8 $code = <<<'PHP'
14 echo ast_dump(ast\parse_code($code, $version=50)), "\n";
15 echo ast_dump(ast\parse_code($code, $version=60)), "\n";
H A Dphp82_readonly_class.phpt9 $code = <<<'PHP'
14 $node = ast\parse_code($code, $version=85);
H A Dphp74_dim_alternative_syntax.phpt10 $code = <<<'PHP'
15 $node = ast\parse_code($code, $version=70);
H A Dphp84_dim_alternative_syntax.phpt10 $code = <<<'PHP'
16 $node = ast\parse_code($code, $version=70);
H A Dast_dump_with_linenos.phpt12 $code = <<<'PHP'
24 $ast = ast\parse_code($code, $version=70);
H A Dmagic_constants.phpt8 $code = <<<'PHP'
20 echo ast_dump(ast\parse_code($code, $version=70));
H A Dname_node.phpt8 $code = <<<'PHP'
16 echo ast_dump(ast\parse_code($code, $version=70)), "\n";
H A Dphp81_readonly.phpt10 $code = <<<'PHP'
17 $node = ast\parse_code($code, $version=60);
19 $node = ast\parse_code($code, $version=85);
H A Dnamed_children.phpt8 $code = <<<'PHP'
16 echo ast_dump(ast\parse_code($code, $version=70));
H A Dtrue_type.phpt8 $code = <<<'PHP'
15 $node = ast\parse_code($code, $version=85);
H A Deval_include.phpt8 $code = <<<'PHP'
17 echo ast_dump(ast\parse_code($code, $version=70));

Completed in 12 milliseconds

1234