Details
-
Technical task
-
Resolution: Won't Do
-
P3: Somewhat important
-
None
Description
Currently, find usages has a very coarse approximation to recognize shadowed properties (or at least shadowed properties you can detect at compiletime).
Maybe this should be fixed?
Here some edge cases to test:
For a signal s, onS should not shadow s. Also, should shadowing onS also shadows s?
signal s function f() { let onS = 43; s(); // usage of signal s } function g() { let s = 43; onS() // usage of signal handler s? } property int p function h() { let p = 123 pChanged() // usage of property int p's changed handler? }
For a shadowed property p, root.p is not shadowed (because of the identifier).
id: root property int p function f() { let p = 123 return root.p // usage of property p } function g() { let root = 123 return root.p // not an usage of property p because root is shadowed }