view vendor/nikic/php-parser/test/code/parser/commentAtEndOfClass.test @ 19:fa3358dc1485 tip

Add ndrum files
author Chris Cannam
date Wed, 28 Aug 2019 13:14:47 +0100
parents 129ea1e6d783
children
line wrap: on
line source
Comment at end of class (#509)
-----
<?php
class MyClass {
    protected $a;
    // my comment
}
-----
array(
    0: Stmt_Class(
        flags: 0
        name: Identifier(
            name: MyClass
        )
        extends: null
        implements: array(
        )
        stmts: array(
            0: Stmt_Property(
                flags: MODIFIER_PROTECTED (2)
                type: null
                props: array(
                    0: Stmt_PropertyProperty(
                        name: VarLikeIdentifier(
                            name: a
                        )
                        default: null
                    )
                )
            )
            1: Stmt_Nop(
                comments: array(
                    0: // my comment
                )
            )
        )
    )
)