Mercurial > hg > isophonics-drupal-site
annotate vendor/nikic/php-parser/test/code/parser/stmt/controlFlow.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 Control flow statements |
Chris@0 | 2 ----- |
Chris@0 | 3 <?php |
Chris@0 | 4 |
Chris@0 | 5 break; |
Chris@0 | 6 break 2; |
Chris@0 | 7 |
Chris@0 | 8 continue; |
Chris@0 | 9 continue 2; |
Chris@0 | 10 |
Chris@0 | 11 return; |
Chris@0 | 12 return $a; |
Chris@0 | 13 |
Chris@0 | 14 throw $e; |
Chris@0 | 15 |
Chris@0 | 16 label: |
Chris@0 | 17 goto label; |
Chris@0 | 18 ----- |
Chris@0 | 19 array( |
Chris@0 | 20 0: Stmt_Break( |
Chris@0 | 21 num: null |
Chris@0 | 22 ) |
Chris@0 | 23 1: Stmt_Break( |
Chris@0 | 24 num: Scalar_LNumber( |
Chris@0 | 25 value: 2 |
Chris@0 | 26 ) |
Chris@0 | 27 ) |
Chris@0 | 28 2: Stmt_Continue( |
Chris@0 | 29 num: null |
Chris@0 | 30 ) |
Chris@0 | 31 3: Stmt_Continue( |
Chris@0 | 32 num: Scalar_LNumber( |
Chris@0 | 33 value: 2 |
Chris@0 | 34 ) |
Chris@0 | 35 ) |
Chris@0 | 36 4: Stmt_Return( |
Chris@0 | 37 expr: null |
Chris@0 | 38 ) |
Chris@0 | 39 5: Stmt_Return( |
Chris@0 | 40 expr: Expr_Variable( |
Chris@0 | 41 name: a |
Chris@0 | 42 ) |
Chris@0 | 43 ) |
Chris@0 | 44 6: Stmt_Throw( |
Chris@0 | 45 expr: Expr_Variable( |
Chris@0 | 46 name: e |
Chris@0 | 47 ) |
Chris@0 | 48 ) |
Chris@0 | 49 7: Stmt_Label( |
Chris@0 | 50 name: label |
Chris@0 | 51 ) |
Chris@0 | 52 8: Stmt_Goto( |
Chris@0 | 53 name: label |
Chris@0 | 54 ) |
Chris@0 | 55 ) |