ternjs / tern

A JavaScript code analyzer for deep, cross-editor language support
https://ternjs.net/
MIT License
4.25k stars 378 forks source link

Tern not identifying js property references in the given case #1052

Open abose opened 2 years ago

abose commented 2 years ago

Getting refs for the property x.test1 at the shown cursor position only returns to root definition and not all references as shown below:

image

code

// Object
let x = {
    test1: 12,
    test2: 45
};

// Property
x = x.test1;

x.test1 =34;