mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
- Allow them to use substitutions. - Consistently use 'a' as a mangling operator. - For generic typealiases, include the alias as context for any generic parameters. Typealiases don't show up in symbol names, which always refer to canonical types, but they are mangled for debug info and for USRs (unique identifiers used by SourceKit), so it's good to get this right.
102 lines
2.4 KiB
Plaintext
102 lines
2.4 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.entities: [
|
|
{
|
|
key.kind: source.lang.swift.decl.protocol,
|
|
key.name: "P",
|
|
key.usr: "s:7sr_38151PP",
|
|
key.line: 4,
|
|
key.column: 10,
|
|
key.entities: [
|
|
{
|
|
key.kind: source.lang.swift.decl.typealias,
|
|
key.name: "Index",
|
|
key.usr: "s:7sr_38151PP5Indexa",
|
|
key.line: 5,
|
|
key.column: 13,
|
|
key.entities: [
|
|
{
|
|
key.kind: source.lang.swift.ref.struct,
|
|
key.name: "Int",
|
|
key.usr: "s:Si",
|
|
key.line: 5,
|
|
key.column: 21
|
|
}
|
|
]
|
|
},
|
|
{
|
|
key.kind: source.lang.swift.decl.function.method.instance,
|
|
key.name: "f()",
|
|
key.usr: "s:7sr_38151PP1fyyF",
|
|
key.line: 6,
|
|
key.column: 8
|
|
}
|
|
]
|
|
},
|
|
{
|
|
key.kind: source.lang.swift.decl.struct,
|
|
key.name: "S",
|
|
key.usr: "s:7sr_38151SV",
|
|
key.line: 9,
|
|
key.column: 8,
|
|
key.related: [
|
|
{
|
|
key.kind: source.lang.swift.ref.protocol,
|
|
key.name: "P",
|
|
key.usr: "s:7sr_38151PP",
|
|
key.line: 9,
|
|
key.column: 12
|
|
}
|
|
],
|
|
key.entities: [
|
|
{
|
|
key.kind: source.lang.swift.ref.protocol,
|
|
key.name: "P",
|
|
key.usr: "s:7sr_38151PP",
|
|
key.line: 9,
|
|
key.column: 12
|
|
},
|
|
{
|
|
key.kind: source.lang.swift.decl.typealias,
|
|
key.name: "Index",
|
|
key.usr: "s:7sr_38151SV5Indexa",
|
|
key.line: 10,
|
|
key.column: 13,
|
|
key.entities: [
|
|
{
|
|
key.kind: source.lang.swift.ref.struct,
|
|
key.name: "Int",
|
|
key.usr: "s:Si",
|
|
key.line: 10,
|
|
key.column: 21
|
|
}
|
|
]
|
|
},
|
|
{
|
|
key.kind: source.lang.swift.decl.function.method.instance,
|
|
key.name: "f()",
|
|
key.usr: "s:7sr_38151SV1fyyF",
|
|
key.line: 12,
|
|
key.column: 8,
|
|
key.related: [
|
|
{
|
|
key.kind: source.lang.swift.ref.function.method.instance,
|
|
key.name: "f()",
|
|
key.usr: "s:7sr_38151PP1fyyF"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|