RFindUnit icon indicating copy to clipboard operation
RFindUnit copied to clipboard

Unused units and simple type

Open jaclas opened this issue 8 years ago • 6 comments
trafficstars

First, thanks for killer feature! 👍

I have unit with type:

  TVATID = type string; 

  TVATIDHelper = record helper for TVATID

but RFU points this unit as unused.

vps_2017 08 01_03

Other example with:

type
  TSearchCompanyResult = UInt32;

or from Spring4D:

TIncomingDataAdapterFactory = IFactory<IIncomingDataAdapter>;

..strange, because this is recognized:

TIncomingDataAdapterFactory = reference to function : IIncomingDataAdapter;

jaclas avatar Aug 01 '17 11:08 jaclas

Next wrong behavior:

vps_2017 08 01_04

jaclas avatar Aug 01 '17 11:08 jaclas

wow about the first case I just checked and the problem is with the DelphiAst project, I'm gonna open a bug there. There second one, I solved that already maybe the code is lost some where, I check it.

rrezino avatar Aug 01 '17 15:08 rrezino

Try again for the first case

rrezino avatar Aug 01 '17 16:08 rrezino

second just sent too

rrezino avatar Aug 01 '17 16:08 rrezino

Now I get one AV:

bugreport.txt

and next never ending loop of AV's: bugreport2.txt bugreport3.txt

jaclas avatar Aug 02 '17 08:08 jaclas

I was about to report the first case. When a unit contains a class helper or record helper (my projects have a lot), the unit is marked as unused.

I hope that AST project can fix it soon.

Thank you!

cesarliws avatar Aug 18 '17 14:08 cesarliws