mirror of
https://github.com/danog/PHP-Parser.git
synced 2024-12-02 17:28:27 +01:00
91f6880734
The pStmts() method now also includes the leading \n, however only if the statement list is non-empty.
50 lines
376 B
Plaintext
50 lines
376 B
Plaintext
Namespaces
|
|
-----
|
|
<?php
|
|
|
|
namespace Foo;
|
|
|
|
function foo()
|
|
{
|
|
}
|
|
|
|
namespace Bar;
|
|
|
|
function bar()
|
|
{
|
|
}
|
|
-----
|
|
namespace Foo;
|
|
|
|
function foo()
|
|
{
|
|
}
|
|
namespace Bar;
|
|
|
|
function bar()
|
|
{
|
|
}
|
|
-----
|
|
<?php
|
|
|
|
namespace Foo {
|
|
function foo()
|
|
{
|
|
}
|
|
}
|
|
|
|
namespace {
|
|
function glob() {
|
|
}
|
|
}
|
|
-----
|
|
namespace Foo {
|
|
function foo()
|
|
{
|
|
}
|
|
}
|
|
namespace {
|
|
function glob()
|
|
{
|
|
}
|
|
} |