projects
/
yaffs-website
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
8495aad1f0617991386b678cb48e16331397c1ba
[yaffs-website]
/
vendor
/
nikic
/
php-parser
/
test
/
code
/
parser
/
stmt
/
function
/
conditional.test
1
Conditional function definition
2
-----
3
<?php
4
5
if (true) {
6
function A() {}
7
}
8
-----
9
array(
10
0: Stmt_If(
11
cond: Expr_ConstFetch(
12
name: Name(
13
parts: array(
14
0: true
15
)
16
)
17
)
18
stmts: array(
19
0: Stmt_Function(
20
byRef: false
21
name: Identifier(
22
name: A
23
)
24
params: array(
25
)
26
returnType: null
27
stmts: array(
28
)
29
)
30
)
31
elseifs: array(
32
)
33
else: null
34
)
35
)