Changeset View
Changeset View
Standalone View
Standalone View
src/parser/xhpast/__tests__/data/php-comments.php.test
<?php | <?php | ||||
# comment | # comment | ||||
// comment | // comment | ||||
/* comment */ | /* comment */ | ||||
/** | /** | ||||
* comment | * comment | ||||
*/ | */ | ||||
/* unterminated comment | /* unterminated comment | ||||
~~~~~~~~~~ | ~~~~~~~~~~ | ||||
pass | pass | ||||
~~~~~~~~~~ | ~~~~~~~~~~ | ||||
{ | * n_PROGRAM | ||||
"tree": [ | * n_STATEMENT_LIST | ||||
9000, | * n_OPEN_TAG | ||||
0, | > <?php | ||||
8, | > "\n\n" | ||||
[ | > "# comment\n" | ||||
[ | > "// comment\n" | ||||
9006, | > "/* comment */" | ||||
0, | > "\n" | ||||
0, | > "/**\n * comment\n */" | ||||
[ | > "\n" | ||||
[ | > "/* unterminated comment\n" | ||||
9007, | |||||
0, | |||||
0 | |||||
] | |||||
] | |||||
] | |||||
] | |||||
], | |||||
"stream": [ | |||||
[ | |||||
373, | |||||
5 | |||||
], | |||||
[ | |||||
377, | |||||
2 | |||||
], | |||||
[ | |||||
371, | |||||
10 | |||||
], | |||||
[ | |||||
371, | |||||
11 | |||||
], | |||||
[ | |||||
371, | |||||
13 | |||||
], | |||||
[ | |||||
377, | |||||
1 | |||||
], | |||||
[ | |||||
372, | |||||
18 | |||||
], | |||||
[ | |||||
377, | |||||
1 | |||||
], | |||||
[ | |||||
371, | |||||
24 | |||||
] | |||||
] | |||||
} |