13 references to ToArrayAndClear
Microsoft.CodeAnalysis.Razor.Compiler (2)
Language\Components\ComponentGenericTypePass.cs (1)
441GenericTypeConstraints = genericTypeConstraints.ToArrayAndClear()
Language\Syntax\SyntaxUtilities.cs (1)
77var mergedLiteral = MergeTextLiterals(literals.ToArrayAndClear(), includeEditHandler ? latestEditHandler : null);
Microsoft.CodeAnalysis.Razor.Workspaces (6)
CodeActions\Razor\RemoveUnnecessaryDirectivesCodeActionResolver.cs (1)
42Edits = edits.ToArrayAndClear(),
Diagnostics\RazorTranslateDiagnosticsService.cs (1)
502return filteredDiagnostics.ToArrayAndClear();
DocumentMapping\RazorEditService_WorkspaceEdit.cs (1)
38workspaceEdit.DocumentChanges = builder.ToArrayAndClear();
Extensions\LspExtensions_WorkspaceEdit.cs (1)
73DocumentChanges = builder.ToArrayAndClear()
Rename\RenameService.cs (2)
87DocumentChanges = documentChanges.ToArrayAndClear() 111DocumentChanges = documentChanges.ToArrayAndClear()
Microsoft.CodeAnalysis.Remote.Razor (4)
CodeLens\RemoteCodeLensService.cs (1)
68return results.ToArrayAndClear();
Diagnostics\RemoteDiagnosticsService.cs (1)
103UnusedDirectiveCache.Set(codeDocument, unusedDirectiveSpans.ToArrayAndClear());
FindAllReferences\RemoteFindAllReferencesService.cs (1)
135return Results(mappedResults.ToArrayAndClear());
RemoteTagHelperSearchEngine.cs (1)
50return locations.ToArrayAndClear();
Microsoft.VisualStudio.LanguageServices.Razor (1)
LanguageClient\Cohost\CohostApplyRenameEditEndpoint.cs (1)
120request.Edit.DocumentChanges = documentChanges.ToArrayAndClear();