mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Previously 'isSystemModule()' returns true only if the module is: - Standard library - Clang module and that is `IsSystem` - Swift overlay for clang `IsSystem` module Now: - Clang module and that is `IsSystem`; or - Swift overlay for clang `IsSystem` module - Swift module found in either of these directories: - Runtime library directoris (including stdlib) - Frameworks in `-Fsystem` directories - Frameworks in `$SDKROOT/System/Library/Frameworks/` (Darwin) - Frameworks in `$SDKROOT/Library/Frameworks/` (Darwin) rdar://problem/50516314
76 lines
1.9 KiB
Plaintext
76 lines
1.9 KiB
Plaintext
{
|
|
key.hash: <hash>,
|
|
key.dependencies: [
|
|
{
|
|
key.kind: source.lang.swift.import.module.swift,
|
|
key.name: "Swift",
|
|
key.filepath: Swift.swiftmodule,
|
|
key.hash: <hash>,
|
|
key.is_system: 1
|
|
},
|
|
{
|
|
key.kind: source.lang.swift.import.module.swift,
|
|
key.name: "test_module",
|
|
key.filepath: test_module.swiftmodule,
|
|
key.hash: <hash>,
|
|
key.dependencies: [
|
|
{
|
|
key.kind: source.lang.swift.import.module.swift,
|
|
key.name: "Swift",
|
|
key.filepath: Swift.swiftmodule,
|
|
key.hash: <hash>,
|
|
key.is_system: 1
|
|
},
|
|
{
|
|
key.kind: source.lang.swift.import.module.swift,
|
|
key.name: "SwiftOnoneSupport",
|
|
key.filepath: SwiftOnoneSupport.swiftmodule,
|
|
key.hash: <hash>,
|
|
key.is_system: 1,
|
|
key.dependencies: [
|
|
{
|
|
key.kind: source.lang.swift.import.module.swift,
|
|
key.name: "Swift",
|
|
key.filepath: Swift.swiftmodule,
|
|
key.hash: <hash>,
|
|
key.is_system: 1
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
],
|
|
key.entities: [
|
|
{
|
|
key.kind: source.lang.swift.ref.module,
|
|
key.name: "test_module",
|
|
key.usr: "c:@M@test_module",
|
|
key.line: 7,
|
|
key.column: 13
|
|
},
|
|
{
|
|
key.kind: source.lang.swift.ref.function.free,
|
|
key.name: "globalFunc()",
|
|
key.usr: "s:11test_module10globalFuncyyF",
|
|
key.line: 7,
|
|
key.column: 25
|
|
},
|
|
{
|
|
key.kind: source.lang.swift.decl.function.free,
|
|
key.name: "test()",
|
|
key.usr: "s:17index_func_import4testyyF",
|
|
key.line: 9,
|
|
key.column: 6,
|
|
key.entities: [
|
|
{
|
|
key.kind: source.lang.swift.ref.function.free,
|
|
key.name: "globalFunc()",
|
|
key.usr: "s:11test_module10globalFuncyyF",
|
|
key.line: 10,
|
|
key.column: 3
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|