mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
This change PCMacro and PlaygroundTransform to return an a moduleID and fileID in addition to the source location information. The Frontend has been changed to run PCMacro and PlaygroundTransform on all input files instead of the main file only. The tests have been updated to conform to these changes with an addition of module and file ID specific tests. The Playgrounds related tests were adjusted to make a module out of the stub interface files since those files should not have PCMacro and PlaygroundTransform applied to them. rdar://problem/50821146
12 lines
465 B
Swift
12 lines
465 B
Swift
// test (module-name) -> 1 (module-id)
|
|
internal let __builtin_pg_module_test: Int = 1
|
|
|
|
// test (module-name) -> 1 (module-id)
|
|
internal let __builtin_pg_module_test2: Int = 1
|
|
|
|
// test (module-name), main (file-name), main_ (file-name-punycode) -> 2 (file-id)
|
|
internal let __builtin_pg_module_test_pg_file_main_: Int = 2
|
|
|
|
// test (module-name), main (file-name), main_ (file-name-punycode) -> 2 (file-id)
|
|
internal let __builtin_pg_module_test2_pg_file_main_: Int = 2
|