[WIP] Map cursors to declarations