mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Members of an @objcMembers context previous had implicit @objc attributes, but now don't (possibly because of the request evaluator changes?). This updates the output of sourcekitd's 'index' request to act as if they still had implicit @objc attributes on them for compatibility. Resolves rdar://problem/48140265
86 lines
2.3 KiB
Plaintext
86 lines
2.3 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.class,
|
|
key.name: "FixtureClass25",
|
|
key.usr: "s:17index_objcMembers14FixtureClass25C",
|
|
key.line: 5,
|
|
key.column: 20,
|
|
key.entities: [
|
|
{
|
|
key.kind: source.lang.swift.decl.var.instance,
|
|
key.name: "someVar",
|
|
key.usr: "s:17index_objcMembers14FixtureClass25C7someVarSSSgvp",
|
|
key.line: 6,
|
|
key.column: 9,
|
|
key.entities: [
|
|
{
|
|
key.kind: source.lang.swift.decl.function.accessor.getter,
|
|
key.usr: "s:17index_objcMembers14FixtureClass25C7someVarSSSgvg",
|
|
key.line: 6,
|
|
key.column: 9,
|
|
key.is_dynamic: 1,
|
|
key.is_implicit: 1
|
|
},
|
|
{
|
|
key.kind: source.lang.swift.decl.function.accessor.setter,
|
|
key.usr: "s:17index_objcMembers14FixtureClass25C7someVarSSSgvs",
|
|
key.line: 6,
|
|
key.column: 9,
|
|
key.is_dynamic: 1,
|
|
key.is_implicit: 1
|
|
}
|
|
]
|
|
},
|
|
{
|
|
key.kind: source.lang.swift.ref.struct,
|
|
key.name: "String",
|
|
key.usr: "s:SS",
|
|
key.line: 6,
|
|
key.column: 18
|
|
},
|
|
{
|
|
key.kind: source.lang.swift.decl.function.method.instance,
|
|
key.name: "someMethod()",
|
|
key.usr: "s:17index_objcMembers14FixtureClass25C10someMethodyyF",
|
|
key.line: 7,
|
|
key.column: 10,
|
|
key.is_dynamic: 1,
|
|
key.attributes: [
|
|
{
|
|
key.attribute: source.decl.attribute.objc
|
|
}
|
|
]
|
|
},
|
|
{
|
|
key.kind: source.lang.swift.decl.function.constructor,
|
|
key.usr: "s:17index_objcMembers14FixtureClass25CACycfc",
|
|
key.line: 5,
|
|
key.column: 20,
|
|
key.is_implicit: 1,
|
|
key.attributes: [
|
|
{
|
|
key.attribute: source.decl.attribute.objc
|
|
}
|
|
]
|
|
}
|
|
],
|
|
key.attributes: [
|
|
{
|
|
key.attribute: source.decl.attribute.objcMembers
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|