Skip to content

[bug] no leading comments in offset of propertylookup #193

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
alexander-akait opened this issue Sep 28, 2018 · 1 comment
Closed

[bug] no leading comments in offset of propertylookup #193

alexander-akait opened this issue Sep 28, 2018 · 1 comment
Assignees

Comments

@alexander-akait
Copy link
Collaborator

Input:

<?php 

$a = $var
    // Comment
    ->each() ;

each doesn't have leadingComments. Example from babylon https://astexplorer.net/#/gist/10e1259460e97f43e102343e9f86ff0f/e06c03bd57464f336a3ea68530eeeff01bfef30b

@ichiriac
Copy link
Member

it's fixed, but not sure how to reproduce this case : https://github.com/glayzzle/php-parser/blob/master/src/parser/variable.js#L58 - if you find a way to cover this path, it may contain the bug also

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants