php-parser/test/code/parser/commentAtEndOfClass.test

42 lines
905 B
Plaintext
Raw Permalink Normal View History

Comment at end of class (#509)
-----
<?php
class MyClass {
protected $a;
// my comment
}
-----
array(
0: Stmt_Class(
attrGroups: array(
)
flags: 0
name: Identifier(
name: MyClass
)
extends: null
implements: array(
)
stmts: array(
0: Stmt_Property(
attrGroups: array(
)
flags: MODIFIER_PROTECTED (2)
2019-01-05 12:06:18 +01:00
type: null
props: array(
0: Stmt_PropertyProperty(
name: VarLikeIdentifier(
name: a
)
default: null
)
)
)
1: Stmt_Nop(
comments: array(
0: // my comment
)
)
)
)
)