mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
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
18 lines
727 B
Swift
18 lines
727 B
Swift
import Foo
|
|
|
|
// REQUIRES: objc_interop
|
|
// RUN: %sourcekitd-test -req=complete -pos=2:1 %s -- -F %S/../Inputs/libIDE-mock-sdk %s | %FileCheck %s
|
|
|
|
// CHECK-LABEL: key.name: "fooIntVar",
|
|
// CHECK-NEXT: key.sourcetext: "fooIntVar",
|
|
// CHECK-NEXT: key.description: "fooIntVar",
|
|
// CHECK-NEXT: key.typename: "Int32",
|
|
// CHECK-NEXT: key.doc.brief: "Aaa. fooIntVar. Bbb.",
|
|
// CHECK-NEXT: key.context: source.codecompletion.context.othermodule,
|
|
// CHECK-NEXT: key.typerelation: source.codecompletion.typerelation.unknown,
|
|
// CHECK-NEXT: key.num_bytes_to_erase: 0,
|
|
// CHECK-NEXT: key.associated_usrs: "c:@fooIntVar",
|
|
// CHECK-NEXT: key.modulename: "Foo"
|
|
// CHECK-NEXT: },
|
|
|