Mercurial > hg > isophonics-drupal-site
annotate vendor/nikic/php-parser/test/code/parser/stmt/function/byRef.test @ 19:fa3358dc1485 tip
Add ndrum files
author | Chris Cannam |
---|---|
date | Wed, 28 Aug 2019 13:14:47 +0100 |
parents | 5fb285c0d0e3 |
children |
rev | line source |
---|---|
Chris@0 | 1 Return and pass by ref |
Chris@0 | 2 ----- |
Chris@0 | 3 <?php |
Chris@0 | 4 |
Chris@0 | 5 function a(&$b) {} |
Chris@0 | 6 function &a($b) {} |
Chris@0 | 7 ----- |
Chris@0 | 8 array( |
Chris@0 | 9 0: Stmt_Function( |
Chris@0 | 10 byRef: false |
Chris@13 | 11 name: Identifier( |
Chris@13 | 12 name: a |
Chris@13 | 13 ) |
Chris@0 | 14 params: array( |
Chris@0 | 15 0: Param( |
Chris@0 | 16 type: null |
Chris@0 | 17 byRef: true |
Chris@0 | 18 variadic: false |
Chris@13 | 19 var: Expr_Variable( |
Chris@13 | 20 name: b |
Chris@13 | 21 ) |
Chris@0 | 22 default: null |
Chris@0 | 23 ) |
Chris@0 | 24 ) |
Chris@0 | 25 returnType: null |
Chris@0 | 26 stmts: array( |
Chris@0 | 27 ) |
Chris@0 | 28 ) |
Chris@0 | 29 1: Stmt_Function( |
Chris@0 | 30 byRef: true |
Chris@13 | 31 name: Identifier( |
Chris@13 | 32 name: a |
Chris@13 | 33 ) |
Chris@0 | 34 params: array( |
Chris@0 | 35 0: Param( |
Chris@0 | 36 type: null |
Chris@0 | 37 byRef: false |
Chris@0 | 38 variadic: false |
Chris@13 | 39 var: Expr_Variable( |
Chris@13 | 40 name: b |
Chris@13 | 41 ) |
Chris@0 | 42 default: null |
Chris@0 | 43 ) |
Chris@0 | 44 ) |
Chris@0 | 45 returnType: null |
Chris@0 | 46 stmts: array( |
Chris@0 | 47 ) |
Chris@0 | 48 ) |
Chris@13 | 49 ) |