Files
swift-mirror/test/SourceKit/CodeComplete/complete_optionalmethod.swift.response
Ahmed Mahmoud 491b3a0fbc [IDE] Erase archetypes with no declaration generic signature
This generalization enables curried functions with generic parameters coming from the initial declaration to be printed with the archetype's upperbound rather than '_' unresolved type.

As an added benefit, T.self and T.Type for generic parameters now get shown as the upperbound of the generic parameter provided
2025-08-29 13:39:58 +03:00

27 lines
882 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: "Proto",
key.context: source.codecompletion.context.thisclass,
key.typerelation: source.codecompletion.typerelation.unknown,
key.num_bytes_to_erase: 0,
key.sourcetext: "self"
}
]
}