mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
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
27 lines
882 B
Plaintext
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"
|
|
}
|
|
]
|
|
}
|