Bug 4478 – JSON output omits import statements

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2010-07-17T09:41:00Z
Last change time
2013-01-21T00:03:19Z
Keywords
json
Assigned to
nobody
Creator
dhasenan
Blocks
9285

Comments

Comment #0 by dhasenan — 2010-07-17T09:41:29Z
Trying to think of a workaround for http://d.puremagic.com/issues/show_bug.cgi?id=4477 , I thought I'd duplicate DMD's lookup rules. That's daunting in itself, but I quickly found it impossible. JSON output omits import statements from modules. An IDE could use the list of imports to detect when code is silently relying on another module's imported symbols due to bugzilla 313/314, or to find unnecessary import statements. And, of course, to work around bugzilla 4477. It's also a cheap way for an IDE to support incremental builds rather than using dmd -deps, making it essentially free to do incremental builds once you have syntax highlighting.
Comment #1 by ricochet1k — 2012-03-14T15:42:35Z
Comment #2 by bugzilla — 2013-01-21T00:03:19Z