view vendor/nikic/php-parser/test/code/parser/stmt/namespace/commentAfterNamespace.test @ 9:1fc0ff908d1f

Add another data file
author Chris Cannam
date Mon, 05 Feb 2018 12:34:32 +0000
parents 4c8ae668cc8c
children
line wrap: on
line source
Trailing comment after braced namespace declaration
-----
<?php
namespace Foo {}
// Comment
-----
array(
    0: Stmt_Namespace(
        name: Name(
            parts: array(
                0: Foo
            )
        )
        stmts: array(
        )
    )
    1: Stmt_Nop(
        comments: array(
            0: // Comment
        )
    )
)