mirror of
https://github.com/danog/PHP-Parser.git
synced 2024-12-04 18:28:25 +01:00
81e53ce0ff
This changset also adds unit tests for Comments and adds a way to test the pretty printer.
37 lines
696 B
Plaintext
37 lines
696 B
Plaintext
Abstract class
|
|
-----
|
|
<?php
|
|
|
|
abstract class A {
|
|
public function a() {}
|
|
abstract public function b();
|
|
}
|
|
-----
|
|
array(
|
|
0: Stmt_Class(
|
|
type: 16
|
|
extends: null
|
|
implements: array(
|
|
)
|
|
stmts: array(
|
|
0: Stmt_ClassMethod(
|
|
type: 1
|
|
byRef: false
|
|
params: array(
|
|
)
|
|
stmts: array(
|
|
)
|
|
name: a
|
|
)
|
|
1: Stmt_ClassMethod(
|
|
type: 17
|
|
byRef: false
|
|
params: array(
|
|
)
|
|
stmts: null
|
|
name: b
|
|
)
|
|
)
|
|
name: A
|
|
)
|
|
) |