Mercurial > hg > isophonics-drupal-site
annotate vendor/nikic/php-parser/test/code/parser/stmt/class/php4Style.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@0 | 1 PHP 4 style declarations |
Chris@0 | 2 ----- |
Chris@0 | 3 <?php |
Chris@0 | 4 |
Chris@0 | 5 class A { |
Chris@0 | 6 var $foo; |
Chris@0 | 7 function bar() {} |
Chris@0 | 8 static abstract function baz() {} |
Chris@0 | 9 } |
Chris@0 | 10 ----- |
Chris@0 | 11 array( |
Chris@0 | 12 0: Stmt_Class( |
Chris@0 | 13 flags: 0 |
Chris@13 | 14 name: Identifier( |
Chris@13 | 15 name: A |
Chris@13 | 16 ) |
Chris@0 | 17 extends: null |
Chris@0 | 18 implements: array( |
Chris@0 | 19 ) |
Chris@0 | 20 stmts: array( |
Chris@0 | 21 0: Stmt_Property( |
Chris@0 | 22 flags: 0 |
Chris@17 | 23 type: null |
Chris@0 | 24 props: array( |
Chris@0 | 25 0: Stmt_PropertyProperty( |
Chris@13 | 26 name: VarLikeIdentifier( |
Chris@13 | 27 name: foo |
Chris@13 | 28 ) |
Chris@0 | 29 default: null |
Chris@0 | 30 ) |
Chris@0 | 31 ) |
Chris@0 | 32 ) |
Chris@0 | 33 1: Stmt_ClassMethod( |
Chris@0 | 34 flags: 0 |
Chris@0 | 35 byRef: false |
Chris@13 | 36 name: Identifier( |
Chris@13 | 37 name: bar |
Chris@13 | 38 ) |
Chris@0 | 39 params: array( |
Chris@0 | 40 ) |
Chris@0 | 41 returnType: null |
Chris@0 | 42 stmts: array( |
Chris@0 | 43 ) |
Chris@0 | 44 ) |
Chris@0 | 45 2: Stmt_ClassMethod( |
Chris@0 | 46 flags: MODIFIER_ABSTRACT | MODIFIER_STATIC (24) |
Chris@0 | 47 byRef: false |
Chris@13 | 48 name: Identifier( |
Chris@13 | 49 name: baz |
Chris@13 | 50 ) |
Chris@0 | 51 params: array( |
Chris@0 | 52 ) |
Chris@0 | 53 returnType: null |
Chris@0 | 54 stmts: array( |
Chris@0 | 55 ) |
Chris@0 | 56 ) |
Chris@0 | 57 ) |
Chris@0 | 58 ) |
Chris@0 | 59 ) |