Implemented interface member:
property
Value
Roslyn.LanguageServer.Protocol.ISumType.Value
2 writes to Value
Microsoft.CodeAnalysis.LanguageServer.Protocol (2)
Protocol\SumType.cs (2)
36this.Value = val; 45this.Value = val;
46 references to Value
Microsoft.CodeAnalysis.LanguageServer.Protocol (13)
DefaultCapabilitiesProvider.cs (1)
111var supportsSemanticTokensRange = rangeCapabilities?.Value is not (false or null);
Handler\CodeActions\CodeActionHelpers.cs (1)
290var diagnosticCode = requestDiagnostic.Code?.Value?.ToString();
Protocol\Internal\Efficiency\OptimizedVSCompletionListJsonConverter.cs (2)
119if (vsCompletionItem.VsCommitCharacters?.Value is string[] basicCommitCharacters 131else if (vsCompletionItem.VsCommitCharacters?.Value is VSInternalCommitCharacter[] augmentedCommitCharacters
Protocol\SumType.cs (9)
90public static explicit operator T1(SumType<T1, T2> sum) => sum.Value is T1 tVal ? tVal : throw new InvalidCastException(); 97public static explicit operator T2(SumType<T1, T2> sum) => sum.Value is T2 tVal ? tVal : throw new InvalidCastException(); 116if (this.Value is T1 typeValue) 133if (this.Value is T2 typeValue) 166if (this.Value is T1 tOne) 171if (this.Value is T2 tTwo) 195return EqualityComparer<object?>.Default.Equals(this.Value, other.Value); 201return -1937169414 + EqualityComparer<object?>.Default.GetHashCode(this.Value);
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (10)
CodeActions\CodeActionResolveTests.cs (1)
246var edits = textDocumentEdit[0].Edits.Select(e => (LSP.TextEdit)e.Value!).ToArray();
Diagnostics\AbstractPullDiagnosticTestsBase.cs (4)
171if (workspaceReport.Value is WorkspaceFullDocumentDiagnosticReport fullReport) 177var unchangedReport = (WorkspaceUnchangedDocumentDiagnosticReport)workspaceReport.Value!; 280Assert.IsType<FullDocumentDiagnosticReport>(diagnostics.Value); 286if (diagnostics.Value is UnchangedDocumentDiagnosticReport)
Diagnostics\AdditionalFileDiagnosticsTests.cs (3)
62], results.Select(r => $"{r.Uri.GetRequiredParsedUri().LocalPath}: [{string.Join(", ", r.Diagnostics!.Select(d => d.Code?.Value?.ToString()))}]")); 91], results.Select(r => $"{r.Uri.GetRequiredParsedUri().LocalPath}: [{string.Join(", ", r.Diagnostics!.Select(d => d.Code?.Value?.ToString()))}]")); 215], results.Select(r => $"{r.Uri.GetRequiredParsedUri().LocalPath}: [{string.Join(", ", r.Diagnostics!.Select(d => d.Code?.Value?.ToString()))}]"));
Diagnostics\NonLocalDiagnosticTests.cs (1)
48var orderedDiagnostics = results[0].Diagnostics!.OrderBy(d => d.Code!.Value.Value).ToList();
Diagnostics\PullDiagnosticTests.cs (1)
1461=> $"{result.TextDocument.DocumentUri} -> [{string.Join(",", result.Diagnostics?.Select(d => d.Code?.Value) ?? [])}]";
Microsoft.CodeAnalysis.LanguageServer.UnitTests (2)
Utilities\AbstractLanguageServerClientTests.TestLspClient.cs (2)
235var textDocumentEdits = (TextDocumentEdit[]?)workspaceEdit.DocumentChanges?.Value; 244.Select(edit => edit.Value)
Microsoft.CodeAnalysis.Razor.Workspaces (6)
Extensions\LspExtensions_WorkspaceEdit.cs (6)
22if (workspaceEdit.DocumentChanges?.Value is TextDocumentEdit[] documentEdits) 29else if (workspaceEdit.DocumentChanges?.Value is SumType<TextDocumentEdit, CreateFile, RenameFile, DeleteFile>[] sumTypeArray) 43if (workspaceEdit.DocumentChanges?.Value is TextDocumentEdit[] documentEdits) 50else if (workspaceEdit.DocumentChanges?.Value is SumType<TextDocumentEdit, CreateFile, RenameFile, DeleteFile>[] sumTypeArray) 78if (edit.DocumentChanges?.Value is TextDocumentEdit[] documentEdits) 85else if (edit.DocumentChanges?.Value is SumType<TextDocumentEdit, CreateFile, RenameFile, DeleteFile>[] sumTypeArray)
Microsoft.CodeAnalysis.Remote.Razor (1)
Diagnostics\RemoteDiagnosticsService.cs (1)
80if (diagnostic.Code is { Value: EAConstants.DiagnosticIds.IDE0005_gen })
Microsoft.VisualStudio.LanguageServices.Razor (1)
src\Razor\src\Razor\src\Microsoft.CodeAnalysis.Razor.CohostingShared\Navigation\CohostGoToImplementationEndpoint.cs (1)
91if (result.Value is null)
Microsoft.VisualStudio.LanguageServices.Razor.UnitTests (6)
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\CodeActions\CohostCodeActionsEndpointTestBase.cs (2)
92var codeActions = result.Where(e => ((RazorVSInternalCodeAction)e.Value!).Name == codeActionName).ToArray(); 115{string.Join(Environment.NewLine + " ", result.Select(e => ((RazorVSInternalCodeAction)e.Value!).Name))}
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\CodeActions\TypeAccessibilityTests.cs (1)
98Assert.Equal(LanguageServerConstants.CodeActions.AddUsing, codeActions.Select(a => ((RazorVSInternalCodeAction)a.Value!).Name).First());
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Endpoints\CohostDocumentCompletionEndpointTest.cs (3)
1635if (result.TextEdit is { Value: TextEdit edit }) 1700else if (result.Documentation is { Value: string description }) 1704else if (result.Documentation is { Value: MarkupContent { Kind.Value: "plaintext" } content })
Microsoft.VisualStudioCode.RazorExtension (1)
src\Razor\src\Razor\src\Microsoft.CodeAnalysis.Razor.CohostingShared\Navigation\CohostGoToImplementationEndpoint.cs (1)
91if (result.Value is null)
Microsoft.VisualStudioCode.RazorExtension.UnitTests (6)
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\CodeActions\CohostCodeActionsEndpointTestBase.cs (2)
92var codeActions = result.Where(e => ((RazorVSInternalCodeAction)e.Value!).Name == codeActionName).ToArray(); 115{string.Join(Environment.NewLine + " ", result.Select(e => ((RazorVSInternalCodeAction)e.Value!).Name))}
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\CodeActions\TypeAccessibilityTests.cs (1)
98Assert.Equal(LanguageServerConstants.CodeActions.AddUsing, codeActions.Select(a => ((RazorVSInternalCodeAction)a.Value!).Name).First());
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Endpoints\CohostDocumentCompletionEndpointTest.cs (3)
1635if (result.TextEdit is { Value: TextEdit edit }) 1700else if (result.Documentation is { Value: string description }) 1704else if (result.Documentation is { Value: MarkupContent { Kind.Value: "plaintext" } content })