php-parser/test/code/parser/stmt/class/php4Style.test
Nikita Popov 18129480ae Rename $type subnode to $flags
Type makes it sound like a type-hint, and on a number of other nodes
$type is used for exactly that. Use $flags to hold modifiers instead.
2016-07-25 13:33:19 +02:00

50 lines
1.0 KiB
Plaintext

PHP 4 style declarations
-----
<?php
class A {
var $foo;
function bar() {}
static abstract function baz() {}
}
-----
array(
0: Stmt_Class(
flags: 0
name: A
extends: null
implements: array(
)
stmts: array(
0: Stmt_Property(
flags: 0
props: array(
0: Stmt_PropertyProperty(
name: foo
default: null
)
)
)
1: Stmt_ClassMethod(
flags: 0
byRef: false
name: bar
params: array(
)
returnType: null
stmts: array(
)
)
2: Stmt_ClassMethod(
flags: 24
byRef: false
name: baz
params: array(
)
returnType: null
stmts: array(
)
)
)
)
)