Files
swift-mirror/test/SourceKit/CodeComplete/complete_optionalmethod.swift.response
Alex Hoppen 7ce41252e7 [SourceKit] Print compilerargs and sourcetext keys last
That way, when the request gets truncated by os_log in sourcekit-lsp, we see most of the request. Most likely the sourcetext and the compiler args wouldn't have made it into the log message completely anyway.

rdar://121322828
2024-02-29 20:45:55 -08:00

27 lines
878 B
Plaintext

{
key.results: [
{
key.kind: source.lang.swift.decl.function.method.instance,
key.name: "optionalMethod()",
key.description: "optionalMethod?()",
key.typename: "Int",
key.context: source.codecompletion.context.thisclass,
key.typerelation: source.codecompletion.typerelation.unknown,
key.num_bytes_to_erase: 0,
key.associated_usrs: "c:@M@complete_optionalmethod@objc(pl)Proto(im)optionalMethod",
key.modulename: "complete_optionalmethod",
key.sourcetext: "optionalMethod?()"
},
{
key.kind: source.lang.swift.keyword,
key.name: "self",
key.description: "self",
key.typename: "T",
key.context: source.codecompletion.context.thisclass,
key.typerelation: source.codecompletion.typerelation.unknown,
key.num_bytes_to_erase: 0,
key.sourcetext: "self"
}
]
}