Determine dependencies on a per-declaration basis, not a per-file basis