mirror of
https://github.com/phabelio/PHP-Parser.git
synced 2024-12-12 09:09:41 +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()
|
|
{
|
|
}
|
|
} |