Skip to content

Encapsed property & variables lookups #67

Closed
@ichiriac

Description

@ichiriac

The AST of encapsed properties is badformed :

PHP Script :

<?php
$this->foo_$bar;

AST Structure :

{
  "kind": "program",
  "children": [
    {
      "kind": "propertylookup",
      "what": {
        "kind": "variable",
        "name": "this",
        "byref": false
      },
      "offset": [
        "bin",
        ".",
        {
          "kind": "constref",
          "name": "foo_"
        },
        [
          "var",
          "bar"
        ]
      ]
    }
  ],
  "errors": []
}

Related Issues :
HvyIndustries/crane#150
#62

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions