mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
ModuleDecl kept track of all of the source files in the module so that it could find the source file containing a given location, which relied on a sorted array all of these source files. SourceManager has its own similar data structure for a similar query mapping the locations to buffer IDs. Replace ModuleDecl's dats structure with a use of the SourceManager's version with the mapping from buffer IDs to source files.
47 KiB
47 KiB