45 references to WorkspaceExtensionsResources
Microsoft.CodeAnalysis.CSharp.Workspaces (4)
CSharpCodeGenerationService.cs (1)
566
throw new ArgumentException(
WorkspaceExtensionsResources
.No_available_location_found_to_add_statements_to);
NamespaceGenerator.cs (2)
37
throw new ArgumentException(
WorkspaceExtensionsResources
.Namespace_can_not_be_added_in_this_destination);
59
throw new ArgumentException(
WorkspaceExtensionsResources
.Namespace_can_not_be_added_in_this_destination);
OperatorGenerator.cs (1)
81
throw new ArgumentException(string.Format(
WorkspaceExtensionsResources
.Cannot_generate_code_for_unsupported_operator_0, method.Name), nameof(method));
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
CodeGeneration\CodeGenerationTests.cs (1)
265
var expectedMessage = string.Format(
WorkspaceExtensionsResources
.Cannot_generate_code_for_unsupported_operator_0, method.Name);
Microsoft.CodeAnalysis.VisualBasic.Workspaces (1)
CodeGeneration\OperatorGenerator.vb (1)
42
Throw New ArgumentException(String.Format(
WorkspaceExtensionsResources
.Cannot_generate_code_for_unsupported_operator_0, method.Name), NameOf(method))
Microsoft.CodeAnalysis.Workspaces (39)
AbstractCodeGenerationService.cs (8)
167
string.Format(
WorkspaceExtensionsResources
.Destination_type_must_be_a_0_but_given_one_is_1, typeof(TDeclarationNode).Name, destination.GetType().Name),
185
string.Format(
WorkspaceExtensionsResources
.Destination_type_must_be_a_0_or_a_1_but_given_one_is_2,
206
string.Format(
WorkspaceExtensionsResources
.Destination_type_must_be_a_0_1_or_2_but_given_one_is_3,
224
string.Format(
WorkspaceExtensionsResources
.Destination_type_must_be_a_0_1_2_or_3_but_given_one_is_4,
241
throw new ArgumentException(
WorkspaceExtensionsResources
.Could_not_find_location_to_generation_symbol_into);
486
throw new ArgumentException(
WorkspaceExtensionsResources
.No_location_provided_to_add_statements_to);
491
throw new ArgumentException(
WorkspaceExtensionsResources
.Destination_location_was_not_in_source);
496
throw new ArgumentException(
WorkspaceExtensionsResources
.Destination_location_was_from_a_different_tree);
AbstractMoveDeclarationNearReferenceService.cs (1)
87
? WarningAnnotation.Create(
WorkspaceExtensionsResources
.Warning_colon_Declaration_changes_scope_and_may_change_meaning)
CodeFixes\CodeFixContext.cs (1)
300
throw new ArgumentException(
WorkspaceExtensionsResources
.Supplied_diagnostic_cannot_be_null, nameof(diagnostics));
CodeGenerationContext.cs (1)
176
throw new ArgumentException(
WorkspaceExtensionsResources
.Location_must_be_null_or_from_source, name);
CodeGenerationSymbolFactory.cs (2)
210
?
WorkspaceExtensionsResources
.Invalid_number_of_parameters_for_unary_operator
211
:
WorkspaceExtensionsResources
.Invalid_number_of_parameters_for_binary_operator;
DocumentExtensions.cs (5)
40
return semanticModel ?? throw new InvalidOperationException(string.Format(
WorkspaceExtensionsResources
.SyntaxTree_is_required_to_accomplish_the_task_but_is_not_supported_by_document_0, document.Name));
49
return syntaxTree ?? throw new InvalidOperationException(string.Format(
WorkspaceExtensionsResources
.SyntaxTree_is_required_to_accomplish_the_task_but_is_not_supported_by_document_0, document.Name));
56
return syntaxTree ?? throw new InvalidOperationException(string.Format(
WorkspaceExtensionsResources
.SyntaxTree_is_required_to_accomplish_the_task_but_is_not_supported_by_document_0, document.Name));
66
return root ?? throw new InvalidOperationException(string.Format(
WorkspaceExtensionsResources
.SyntaxTree_is_required_to_accomplish_the_task_but_is_not_supported_by_document_0, document.Name));
73
return root ?? throw new InvalidOperationException(string.Format(
WorkspaceExtensionsResources
.SyntaxTree_is_required_to_accomplish_the_task_but_is_not_supported_by_document_0, document.Name));
FixAllHelper.cs (6)
20
FixAllScope.Custom => string.Format(
WorkspaceExtensionsResources
.Fix_all_0, title),
21
FixAllScope.Document => string.Format(
WorkspaceExtensionsResources
.Fix_all_0_in_1, title, triggerDocument.Name),
22
FixAllScope.Project => string.Format(
WorkspaceExtensionsResources
.Fix_all_0_in_1, title, triggerProject.Name),
23
FixAllScope.Solution => string.Format(
WorkspaceExtensionsResources
.Fix_all_0_in_Solution, title),
24
FixAllScope.ContainingMember => string.Format(
WorkspaceExtensionsResources
.Fix_all_0_in_Containing_member, title),
25
FixAllScope.ContainingType => string.Format(
WorkspaceExtensionsResources
.Fix_all_0_in_Containing_type, title),
ISolutionExtensions.cs (2)
41
throw new InvalidOperationException(string.Format(
WorkspaceExtensionsResources
.Project_of_ID_0_is_required_to_accomplish_the_task_but_is_not_available_from_the_solution, projectId));
68
=> new InvalidOperationException(
WorkspaceExtensionsResources
.The_solution_does_not_contain_the_specified_document);
Microsoft.CodeAnalysis.WorkspaceExtensionsResources.cs (1)
10
internal static global::System.Resources.ResourceManager ResourceManager => s_resourceManager ?? (s_resourceManager = new global::System.Resources.ResourceManager(typeof(
WorkspaceExtensionsResources
)));
ProjectExtensions.cs (1)
110
throw new InvalidOperationException(string.Format(
WorkspaceExtensionsResources
.Compilation_is_required_to_accomplish_the_task_but_is_not_supported_by_project_0, project.Name));
Rename\Renamer.RenameDocumentActionSet.cs (1)
143
?? throw new InvalidOperationException(
WorkspaceExtensionsResources
.The_solution_does_not_contain_the_specified_document);
Shared\Extensions\ISolutionExtensions.cs (1)
56
throw new InvalidOperationException(
WorkspaceExtensionsResources
.The_solution_does_not_contain_the_specified_document);
Shared\Extensions\ProjectExtensions.cs (6)
35
=> project.GetDocument(documentId) ?? throw new InvalidOperationException(
WorkspaceExtensionsResources
.The_solution_does_not_contain_the_specified_document);
38
=> project.GetDocument(tree) ?? throw new InvalidOperationException(
WorkspaceExtensionsResources
.The_solution_does_not_contain_the_specified_document);
41
=> project.GetAdditionalDocument(documentId) ?? throw new InvalidOperationException(
WorkspaceExtensionsResources
.The_solution_does_not_contain_the_specified_document);
44
=> project.GetAnalyzerConfigDocument(documentId) ?? throw new InvalidOperationException(
WorkspaceExtensionsResources
.The_solution_does_not_contain_the_specified_document);
51
throw new InvalidOperationException(
WorkspaceExtensionsResources
.The_solution_does_not_contain_the_specified_document);
62
throw new InvalidOperationException(
WorkspaceExtensionsResources
.The_solution_does_not_contain_the_specified_document);
Workspace\Solution\Solution.cs (3)
1887
throw new InvalidOperationException(
WorkspaceExtensionsResources
.The_solution_does_not_contain_the_specified_document);
1913
throw new InvalidOperationException(
WorkspaceExtensionsResources
.The_solution_does_not_contain_the_specified_document);
1939
throw new InvalidOperationException(
WorkspaceExtensionsResources
.The_solution_does_not_contain_the_specified_document);