Adds the logic that will generate the `ɵɵattachSourceLocations` instruction. Fixes #42530. PR Close #58982