@@ -390,7 +390,7 @@ class ContextFreeCodeCompletionResult {
390
390
// / StringRefs outlive this result, typically by storing them in the same
391
391
// / \c CodeCompletionResultSink as the result itself.
392
392
static ContextFreeCodeCompletionResult *createPatternOrBuiltInOperatorResult (
393
- CodeCompletionResultSink &Sink , CodeCompletionResultKind Kind,
393
+ llvm::BumpPtrAllocator &Allocator , CodeCompletionResultKind Kind,
394
394
CodeCompletionString *CompletionString,
395
395
CodeCompletionOperatorKind KnownOperatorKind,
396
396
NullTerminatedStringRef BriefDocComment,
@@ -405,7 +405,7 @@ class ContextFreeCodeCompletionResult {
405
405
// / \p BriefDocComment outlive this result, typically by storing them in
406
406
// / the same \c CodeCompletionResultSink as the result itself.
407
407
static ContextFreeCodeCompletionResult *
408
- createKeywordResult (CodeCompletionResultSink &Sink ,
408
+ createKeywordResult (llvm::BumpPtrAllocator &Allocator ,
409
409
CodeCompletionKeywordKind Kind,
410
410
CodeCompletionString *CompletionString,
411
411
NullTerminatedStringRef BriefDocComment,
@@ -417,7 +417,7 @@ class ContextFreeCodeCompletionResult {
417
417
// / result, typically by storing them in the same \c CodeCompletionResultSink
418
418
// / as the result itself.
419
419
static ContextFreeCodeCompletionResult *
420
- createLiteralResult (CodeCompletionResultSink &Sink ,
420
+ createLiteralResult (llvm::BumpPtrAllocator &Allocator ,
421
421
CodeCompletionLiteralKind LiteralKind,
422
422
CodeCompletionString *CompletionString,
423
423
CodeCompletionResultType ResultType);
@@ -428,7 +428,7 @@ class ContextFreeCodeCompletionResult {
428
428
// / \c StringRefs outlive this result, typically by storing them in the same
429
429
// / \c CodeCompletionResultSink as the result itself.
430
430
static ContextFreeCodeCompletionResult *createDeclResult (
431
- CodeCompletionResultSink &Sink , CodeCompletionString *CompletionString,
431
+ llvm::BumpPtrAllocator &Allocator , CodeCompletionString *CompletionString,
432
432
const Decl *AssociatedDecl, NullTerminatedStringRef ModuleName,
433
433
NullTerminatedStringRef BriefDocComment,
434
434
ArrayRef<NullTerminatedStringRef> AssociatedUSRs,
@@ -566,8 +566,6 @@ class CodeCompletionResult {
566
566
// / information.
567
567
// / This computes the type relation between the completion item and its
568
568
// / expected type context.
569
- // / See \c CodeCompletionResultType::calculateTypeRelation for documentation
570
- // / on \p USRTypeContext.
571
569
// / The \c ContextFree result must outlive this result. Typically, this is
572
570
// / done by allocating the two in the same sink or adopting the context free
573
571
// / sink in the sink that allocates this result.
@@ -576,7 +574,6 @@ class CodeCompletionResult {
576
574
CodeCompletionFlair Flair, uint8_t NumBytesToErase,
577
575
const ExpectedTypeContext *TypeContext,
578
576
const DeclContext *DC,
579
- const USRBasedTypeContext *USRTypeContext,
580
577
ContextualNotRecommendedReason NotRecommended,
581
578
CodeCompletionDiagnosticSeverity DiagnosticSeverity,
582
579
NullTerminatedStringRef DiagnosticMessage);
0 commit comments