Skip to content
This repository has been archived by the owner on Mar 1, 2022. It is now read-only.

Command: add import/symbol #39

Closed
WebFreak001 opened this issue Sep 1, 2016 · 1 comment
Closed

Command: add import/symbol #39

WebFreak001 opened this issue Sep 1, 2016 · 1 comment

Comments

@WebFreak001
Copy link
Member

WebFreak001 commented Sep 1, 2016

Front-ends/IDEs using workspace-d could use this for additional features and this could also be used for Pure-D/serve-d#200, Pure-D/serve-d#197, Pure-D/serve-d#201, Pure-D/serve-d#202

It should add an import to the top of the file
It should not add an import if its already imported

If a symbol is specified and there is a selective import already, only add it to the selection. If its a complete import, do nothing

@WebFreak001
Copy link
Member Author

doing this just with Dscanner is probably not a good idea because it doesnt show selective imports or locations where its imported using the imports switch and instead of using the xml representation of the AST I could just directly use libdparse to get the AST

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant