chkaufmann 17 Posted December 14, 2022 In my interface I have the following property: IBSEntityProvider = interface function GetItems(AItemId: Integer): IBSEntity; property Items[AItemId: Integer]: IBSEntity read GetItems; default; end; Now I need to know, where this is used in my application. For a method I can use grep or, if the method has a common name, I put a "deprecated" in the method declaration and use the list of warnings. In this case here, it doesn't work. But maybe somebody has another trick for this problem. Christian Share this post Link to post
dummzeuch 1505 Posted December 14, 2022 You could rename or comment out that property and let the compiler find all the errors. Share this post Link to post
chkaufmann 17 Posted December 14, 2022 1 hour ago, dummzeuch said: You could rename or comment out that property and let the compiler find all the errors. This is a solution, but I have too many places where I use the property. So this is not an option in this case. Share this post Link to post
Fr0sT.Brutal 900 Posted December 14, 2022 If checking at runtime is acceptable, you can add stack trace output to GetItems Share this post Link to post
dummzeuch 1505 Posted December 14, 2022 There are probably tools for that. (Pascal Analyzer comes to mind, but I am not sure whether it does what you want. They have a free version, so you can check.) This sounds like it might be what you want: https://www.peganza.com/PALHelp/index.html?identifiers_report.htm Share this post Link to post
chkaufmann 17 Posted December 14, 2022 3 hours ago, dummzeuch said: This sounds like it might be what you want: https://www.peganza.com/PALHelp/index.html?identifiers_report.htm Thanks, good idea. I forgot that one. Share this post Link to post