Files
swift-mirror/test/SourceKit/CodeComplete/complete_from_clang_module.swift
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

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.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: key.sourcetext: "fooIntVar"
// CHECK-NEXT: },