view vendor/nikic/php-parser/test/code/parser/stmt/namespace/name.test @ 18:af1871eacc83

Update to Drupal core 8.7.1
author Chris Cannam
date Thu, 09 May 2019 15:33:08 +0100
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
                )
            )
        )
    )
)