dpp icon indicating copy to clipboard operation
dpp copied to clipboard

A whitelist that recursively whitelists "dependent" types/declarations

Open Laeeth opened this issue 5 years ago • 2 comments

Recursive for white list means pull in all things it depends on Blacklisting overrides whitelisting and aborts the recursive process at that level. Blacklist means it's just a blob

Laeeth avatar Jan 02 '19 04:01 Laeeth

Finding every type and declaration that another type/declaration "depends on" is not trivial.

atilaneves avatar Jan 03 '19 10:01 atilaneves

You end up with the need for multiple passes at some point, in which case you need to make the printing the last stage and eg operate on the ast in earlier stages. But although that brings benefits it is quite a lot of work. I was thinking one might as well base the D version off dparser except that it seems to be closer to a parse tree.

Laeeth avatar Jan 04 '19 22:01 Laeeth