phoenix
phoenix copied to clipboard
Function Occurrences Highlighting Doesn't Consider Multiple Classes (with Inheritance)
Describe the bug
Selecting a function that is defined in a class and in parent and sister class only highlights the last one. See Reproduction for example.
Reproduction
class MyBaseClass {
sayHello() {
throw new Error("Method not implemented");
}
}
class JohnClass extends MyBaseClass {
sayHello() {
console.log("Hello, John!");
}
}
class JaneClass extends MyBaseClass {
sayHello() {
console.log("Hello, Jane!");
}
}
class AliceClass extends MyBaseClass {
sayHello() {
console.log("Hello, Alice!");
}
}
const myArray = [
new JohnClass(),
new JaneClass(),
new AliceClass()
];
for (const obj of myArray) {
obj.sayHello();
}
Expected behavior
That the red marked sayHello functions are also marked green.
OS, Browser and Phoenix versions
windows 8.1 firefox 112 keyboard layout German phoenix 3.2.1-19289
logs or debug stack trace if any
No response
Additional context
No response