Mercurial > hg > isophonics-drupal-site
annotate vendor/nikic/php-parser/test/code/parser/stmt/class/implicitPublic.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 Implicitly public properties and methods |
Chris@0 | 2 ----- |
Chris@0 | 3 <?php |
Chris@0 | 4 |
Chris@0 | 5 abstract class A { |
Chris@0 | 6 var $a; |
Chris@0 | 7 static $b; |
Chris@0 | 8 abstract function c(); |
Chris@0 | 9 final function d() {} |
Chris@0 | 10 static function e() {} |
Chris@0 | 11 final static function f() {} |
Chris@0 | 12 function g() {} |
Chris@0 | 13 } |
Chris@0 | 14 ----- |
Chris@0 | 15 array( |
Chris@0 | 16 0: Stmt_Class( |
Chris@0 | 17 flags: MODIFIER_ABSTRACT (16) |
Chris@13 | 18 name: Identifier( |
Chris@13 | 19 name: A |
Chris@13 | 20 ) |
Chris@0 | 21 extends: null |
Chris@0 | 22 implements: array( |
Chris@0 | 23 ) |
Chris@0 | 24 stmts: array( |
Chris@0 | 25 0: Stmt_Property( |
Chris@0 | 26 flags: 0 |
Chris@17 | 27 type: null |
Chris@0 | 28 props: array( |
Chris@0 | 29 0: Stmt_PropertyProperty( |
Chris@13 | 30 name: VarLikeIdentifier( |
Chris@13 | 31 name: a |
Chris@13 | 32 ) |
Chris@0 | 33 default: null |
Chris@0 | 34 ) |
Chris@0 | 35 ) |
Chris@0 | 36 ) |
Chris@0 | 37 1: Stmt_Property( |
Chris@0 | 38 flags: MODIFIER_STATIC (8) |
Chris@17 | 39 type: null |
Chris@0 | 40 props: array( |
Chris@0 | 41 0: Stmt_PropertyProperty( |
Chris@13 | 42 name: VarLikeIdentifier( |
Chris@13 | 43 name: b |
Chris@13 | 44 ) |
Chris@0 | 45 default: null |
Chris@0 | 46 ) |
Chris@0 | 47 ) |
Chris@0 | 48 ) |
Chris@0 | 49 2: Stmt_ClassMethod( |
Chris@0 | 50 flags: MODIFIER_ABSTRACT (16) |
Chris@0 | 51 byRef: false |
Chris@13 | 52 name: Identifier( |
Chris@13 | 53 name: c |
Chris@13 | 54 ) |
Chris@0 | 55 params: array( |
Chris@0 | 56 ) |
Chris@0 | 57 returnType: null |
Chris@0 | 58 stmts: null |
Chris@0 | 59 ) |
Chris@0 | 60 3: Stmt_ClassMethod( |
Chris@0 | 61 flags: MODIFIER_FINAL (32) |
Chris@0 | 62 byRef: false |
Chris@13 | 63 name: Identifier( |
Chris@13 | 64 name: d |
Chris@13 | 65 ) |
Chris@0 | 66 params: array( |
Chris@0 | 67 ) |
Chris@0 | 68 returnType: null |
Chris@0 | 69 stmts: array( |
Chris@0 | 70 ) |
Chris@0 | 71 ) |
Chris@0 | 72 4: Stmt_ClassMethod( |
Chris@0 | 73 flags: MODIFIER_STATIC (8) |
Chris@0 | 74 byRef: false |
Chris@13 | 75 name: Identifier( |
Chris@13 | 76 name: e |
Chris@13 | 77 ) |
Chris@0 | 78 params: array( |
Chris@0 | 79 ) |
Chris@0 | 80 returnType: null |
Chris@0 | 81 stmts: array( |
Chris@0 | 82 ) |
Chris@0 | 83 ) |
Chris@0 | 84 5: Stmt_ClassMethod( |
Chris@0 | 85 flags: MODIFIER_STATIC | MODIFIER_FINAL (40) |
Chris@0 | 86 byRef: false |
Chris@13 | 87 name: Identifier( |
Chris@13 | 88 name: f |
Chris@13 | 89 ) |
Chris@0 | 90 params: array( |
Chris@0 | 91 ) |
Chris@0 | 92 returnType: null |
Chris@0 | 93 stmts: array( |
Chris@0 | 94 ) |
Chris@0 | 95 ) |
Chris@0 | 96 6: Stmt_ClassMethod( |
Chris@0 | 97 flags: 0 |
Chris@0 | 98 byRef: false |
Chris@13 | 99 name: Identifier( |
Chris@13 | 100 name: g |
Chris@13 | 101 ) |
Chris@0 | 102 params: array( |
Chris@0 | 103 ) |
Chris@0 | 104 returnType: null |
Chris@0 | 105 stmts: array( |
Chris@0 | 106 ) |
Chris@0 | 107 ) |
Chris@0 | 108 ) |
Chris@0 | 109 ) |
Chris@0 | 110 ) |