How to find a "FieldRead" expression without "this." in class internal functions on Java. #12790
Replies: 3 comments 3 replies
|
I've come across a similar problem. Hope somebody could help with this issue, I'll be really appreciated! |
|
I find a solution from this issue. It works, but I'm not sure it is the right way. |
|
Hi @ZQ-Struggle, Thanks for your question. To locate all field reads without a qualifier (i.e., with an implicit import java
from FieldRead v
where not exists(v.getQualifier())
select v |

Hi @ZQ-Struggle,
Thanks for your question. To locate all field reads without a qualifier (i.e., with an implicit
this). You can do the following: