view vendor/nikic/php-parser/test/code/parser/stmt/namespace/name.test @ 17:129ea1e6d783

Update, including to Drupal core 8.6.10
author Chris Cannam
date Thu, 28 Feb 2019 13:21:36 +0000
parents 5fb285c0d0e3
children
line wrap: on
line source
Different name types
-----
<?php

A;
A\B;
\A\B;
namespace\A\B;
-----
array(
    0: Stmt_Expression(
        expr: Expr_ConstFetch(
            name: Name(
                parts: array(
                    0: A
                )
            )
        )
    )
    1: Stmt_Expression(
        expr: Expr_ConstFetch(
            name: Name(
                parts: array(
                    0: A
                    1: B
                )
            )
        )
    )
    2: Stmt_Expression(
        expr: Expr_ConstFetch(
            name: Name_FullyQualified(
                parts: array(
                    0: A
                    1: B
                )
            )
        )
    )
    3: Stmt_Expression(
        expr: Expr_ConstFetch(
            name: Name_Relative(
                parts: array(
                    0: A
                    1: B
                )
            )
        )
    )
)