Mercurial > hg > isophonics-drupal-site
annotate vendor/nikic/php-parser/test/code/parser/stmt/class/implicitPublic.test @ 0:4c8ae668cc8c
Initial import (non-working)
author | Chris Cannam |
---|---|
date | Wed, 29 Nov 2017 16:09:58 +0000 |
parents | |
children | 5fb285c0d0e3 |
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@0 | 18 name: A |
Chris@0 | 19 extends: null |
Chris@0 | 20 implements: array( |
Chris@0 | 21 ) |
Chris@0 | 22 stmts: array( |
Chris@0 | 23 0: Stmt_Property( |
Chris@0 | 24 flags: 0 |
Chris@0 | 25 props: array( |
Chris@0 | 26 0: Stmt_PropertyProperty( |
Chris@0 | 27 name: a |
Chris@0 | 28 default: null |
Chris@0 | 29 ) |
Chris@0 | 30 ) |
Chris@0 | 31 ) |
Chris@0 | 32 1: Stmt_Property( |
Chris@0 | 33 flags: MODIFIER_STATIC (8) |
Chris@0 | 34 props: array( |
Chris@0 | 35 0: Stmt_PropertyProperty( |
Chris@0 | 36 name: b |
Chris@0 | 37 default: null |
Chris@0 | 38 ) |
Chris@0 | 39 ) |
Chris@0 | 40 ) |
Chris@0 | 41 2: Stmt_ClassMethod( |
Chris@0 | 42 flags: MODIFIER_ABSTRACT (16) |
Chris@0 | 43 byRef: false |
Chris@0 | 44 name: c |
Chris@0 | 45 params: array( |
Chris@0 | 46 ) |
Chris@0 | 47 returnType: null |
Chris@0 | 48 stmts: null |
Chris@0 | 49 ) |
Chris@0 | 50 3: Stmt_ClassMethod( |
Chris@0 | 51 flags: MODIFIER_FINAL (32) |
Chris@0 | 52 byRef: false |
Chris@0 | 53 name: d |
Chris@0 | 54 params: array( |
Chris@0 | 55 ) |
Chris@0 | 56 returnType: null |
Chris@0 | 57 stmts: array( |
Chris@0 | 58 ) |
Chris@0 | 59 ) |
Chris@0 | 60 4: Stmt_ClassMethod( |
Chris@0 | 61 flags: MODIFIER_STATIC (8) |
Chris@0 | 62 byRef: false |
Chris@0 | 63 name: e |
Chris@0 | 64 params: array( |
Chris@0 | 65 ) |
Chris@0 | 66 returnType: null |
Chris@0 | 67 stmts: array( |
Chris@0 | 68 ) |
Chris@0 | 69 ) |
Chris@0 | 70 5: Stmt_ClassMethod( |
Chris@0 | 71 flags: MODIFIER_STATIC | MODIFIER_FINAL (40) |
Chris@0 | 72 byRef: false |
Chris@0 | 73 name: f |
Chris@0 | 74 params: array( |
Chris@0 | 75 ) |
Chris@0 | 76 returnType: null |
Chris@0 | 77 stmts: array( |
Chris@0 | 78 ) |
Chris@0 | 79 ) |
Chris@0 | 80 6: Stmt_ClassMethod( |
Chris@0 | 81 flags: 0 |
Chris@0 | 82 byRef: false |
Chris@0 | 83 name: g |
Chris@0 | 84 params: array( |
Chris@0 | 85 ) |
Chris@0 | 86 returnType: null |
Chris@0 | 87 stmts: array( |
Chris@0 | 88 ) |
Chris@0 | 89 ) |
Chris@0 | 90 ) |
Chris@0 | 91 ) |
Chris@0 | 92 ) |