annotate vendor/nikic/php-parser/test/code/parser/stmt/function/byRef.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 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@0 11 name: a
Chris@0 12 params: array(
Chris@0 13 0: Param(
Chris@0 14 type: null
Chris@0 15 byRef: true
Chris@0 16 variadic: false
Chris@0 17 name: b
Chris@0 18 default: null
Chris@0 19 )
Chris@0 20 )
Chris@0 21 returnType: null
Chris@0 22 stmts: array(
Chris@0 23 )
Chris@0 24 )
Chris@0 25 1: Stmt_Function(
Chris@0 26 byRef: true
Chris@0 27 name: a
Chris@0 28 params: array(
Chris@0 29 0: Param(
Chris@0 30 type: null
Chris@0 31 byRef: false
Chris@0 32 variadic: false
Chris@0 33 name: b
Chris@0 34 default: null
Chris@0 35 )
Chris@0 36 )
Chris@0 37 returnType: null
Chris@0 38 stmts: array(
Chris@0 39 )
Chris@0 40 )
Chris@0 41 )