annotate 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
rev   line source
Chris@17 1 Comment at end of class (#509)
Chris@17 2 -----
Chris@17 3 <?php
Chris@17 4 class MyClass {
Chris@17 5 protected $a;
Chris@17 6 // my comment
Chris@17 7 }
Chris@17 8 -----
Chris@17 9 array(
Chris@17 10 0: Stmt_Class(
Chris@17 11 flags: 0
Chris@17 12 name: Identifier(
Chris@17 13 name: MyClass
Chris@17 14 )
Chris@17 15 extends: null
Chris@17 16 implements: array(
Chris@17 17 )
Chris@17 18 stmts: array(
Chris@17 19 0: Stmt_Property(
Chris@17 20 flags: MODIFIER_PROTECTED (2)
Chris@17 21 type: null
Chris@17 22 props: array(
Chris@17 23 0: Stmt_PropertyProperty(
Chris@17 24 name: VarLikeIdentifier(
Chris@17 25 name: a
Chris@17 26 )
Chris@17 27 default: null
Chris@17 28 )
Chris@17 29 )
Chris@17 30 )
Chris@17 31 1: Stmt_Nop(
Chris@17 32 comments: array(
Chris@17 33 0: // my comment
Chris@17 34 )
Chris@17 35 )
Chris@17 36 )
Chris@17 37 )
Chris@17 38 )