Pure-D / serve-d

D LSP server (dlang language server protocol server)
MIT License
200 stars 48 forks source link

Support object.d's `imported!"module".T` for references / symbol index #300

Open WebFreak001 opened 1 year ago

WebFreak001 commented 1 year ago

Currently all files with a mixin are checked (and all their dependents, recursively) in a reference search, however object.d is excluded from this because it's implicitly imported everywhere, unless the definition is inside object.d

The reverse import list does not include mixed in imports, so these imported!"..." are missing there and object.d isn't analyzed. This can cause referenced symbols to be missing in the references search, so I would suggest implementing imported!"str" as a special case for the reverse import lookup list.