Mercurial > hg > isophonics-drupal-site
annotate vendor/nikic/php-parser/test/code/parser/stmt/class/conditional.test @ 1:1a348b17ec81
Logo and header background
author | Chris Cannam |
---|---|
date | Thu, 30 Nov 2017 14:56:35 +0000 |
parents | 4c8ae668cc8c |
children | 5fb285c0d0e3 |
rev | line source |
---|---|
Chris@0 | 1 Conditional class definition |
Chris@0 | 2 ----- |
Chris@0 | 3 <?php |
Chris@0 | 4 |
Chris@0 | 5 if (true) { |
Chris@0 | 6 class A {} |
Chris@0 | 7 } |
Chris@0 | 8 ----- |
Chris@0 | 9 array( |
Chris@0 | 10 0: Stmt_If( |
Chris@0 | 11 cond: Expr_ConstFetch( |
Chris@0 | 12 name: Name( |
Chris@0 | 13 parts: array( |
Chris@0 | 14 0: true |
Chris@0 | 15 ) |
Chris@0 | 16 ) |
Chris@0 | 17 ) |
Chris@0 | 18 stmts: array( |
Chris@0 | 19 0: Stmt_Class( |
Chris@0 | 20 flags: 0 |
Chris@0 | 21 name: A |
Chris@0 | 22 extends: null |
Chris@0 | 23 implements: array( |
Chris@0 | 24 ) |
Chris@0 | 25 stmts: array( |
Chris@0 | 26 ) |
Chris@0 | 27 ) |
Chris@0 | 28 ) |
Chris@0 | 29 elseifs: array( |
Chris@0 | 30 ) |
Chris@0 | 31 else: null |
Chris@0 | 32 ) |
Chris@0 | 33 ) |