Files
swift-mirror/test/SourceKit/CodeComplete/complete_member.swift.response
Rintaro Ishizaki c31bfaeeed [CodeCompletion] Introduce 'Unknown' type relation
Now

* NotApplicable: The result is not relevant for type relation (e.g.
  keywords, and overloads)
* Unknown: the relation was not calculated (e.g. cached results), or the
  context type is unknown.
* Invalid: The result type is invalid for this context (i.e. 'Void' for
  non-'Void' context)
* Unrelated: The result type has no relation to the context type
* Convertible: The result type is convertible to the context type
* Identical: The result type is identical to the context type
2020-02-05 14:23:59 -08:00

52 lines
1.9 KiB
Plaintext

{
key.results: [
{
key.kind: source.lang.swift.decl.function.method.instance,
key.name: "fooInstanceFunc0()",
key.sourcetext: "fooInstanceFunc0()",
key.description: "fooInstanceFunc0()",
key.typename: "Double",
key.context: source.codecompletion.context.thisclass,
key.typerelation: source.codecompletion.typerelation.unrelated,
key.num_bytes_to_erase: 0,
key.associated_usrs: "s:15complete_member11FooProtocolP16fooInstanceFunc0SdyF",
key.modulename: "complete_member"
},
{
key.kind: source.lang.swift.decl.function.method.instance,
key.name: "fooInstanceFunc1(:)",
key.sourcetext: "fooInstanceFunc1(<#T##a: Int##Int#>)",
key.description: "fooInstanceFunc1(a: Int)",
key.typename: "Double",
key.context: source.codecompletion.context.thisclass,
key.typerelation: source.codecompletion.typerelation.unrelated,
key.num_bytes_to_erase: 0,
key.associated_usrs: "s:15complete_member11FooProtocolP16fooInstanceFunc1ySdSiF",
key.modulename: "complete_member"
},
{
key.kind: source.lang.swift.decl.var.instance,
key.name: "fooInstanceVar",
key.sourcetext: "fooInstanceVar",
key.description: "fooInstanceVar",
key.typename: "Int",
key.doc.brief: "fooInstanceVar Aaa. Bbb.",
key.context: source.codecompletion.context.thisclass,
key.typerelation: source.codecompletion.typerelation.unrelated,
key.num_bytes_to_erase: 0,
key.associated_usrs: "s:15complete_member11FooProtocolP14fooInstanceVarSivp",
key.modulename: "complete_member"
},
{
key.kind: source.lang.swift.keyword,
key.name: "self",
key.sourcetext: "self",
key.description: "self",
key.typename: "FooProtocol",
key.context: source.codecompletion.context.thisclass,
key.typerelation: source.codecompletion.typerelation.unknown,
key.num_bytes_to_erase: 0
}
]
}