77 references to ApplyChangesKind
dotnet-format (2)
Workspaces\FolderWorkspace.cs (2)
46
public override bool CanApplyChange(
ApplyChangesKind
feature)
49
return feature ==
ApplyChangesKind
.ChangeDocument;
GenerateDocumentationAndConfigFiles (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Host\SupportedChangesServiceExtensions.cs (1)
9
public static bool CanApplyChange(this Solution solution,
ApplyChangesKind
kind)
Microsoft.CodeAnalysis.Analyzers (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Host\SupportedChangesServiceExtensions.cs (1)
9
public static bool CanApplyChange(this Solution solution,
ApplyChangesKind
kind)
Microsoft.CodeAnalysis.CodeStyle.Fixes (2)
src\roslyn\src\Analyzers\Core\CodeFixes\MatchFolderAndNamespace\AbstractChangeNamespaceToMatchFolderCodeFixProvider.cs (1)
28
if (service.CanApplyChange(
ApplyChangesKind
.ChangeDocumentInfo))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Host\SupportedChangesServiceExtensions.cs (1)
9
public static bool CanApplyChange(this Solution solution,
ApplyChangesKind
kind)
Microsoft.CodeAnalysis.CSharp.Features (1)
Completion\CompletionProviders\SnippetCompletionProvider.cs (1)
81
if (!solution.CanApplyChange(
ApplyChangesKind
.ChangeDocument) ||
Microsoft.CodeAnalysis.Features (4)
GenerateType\AbstractGenerateTypeService.cs (1)
110
if (document.Project.Solution.CanApplyChange(
ApplyChangesKind
.AddDocument))
SemanticSearch\SemanticSearchWorkspace.cs (2)
26
public override bool CanApplyChange(
ApplyChangesKind
feature)
27
=> feature ==
ApplyChangesKind
.ChangeDocument;
src\roslyn\src\Analyzers\Core\CodeFixes\MatchFolderAndNamespace\AbstractChangeNamespaceToMatchFolderCodeFixProvider.cs (1)
28
if (service.CanApplyChange(
ApplyChangesKind
.ChangeDocumentInfo))
Microsoft.CodeAnalysis.Workspaces (54)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Host\SupportedChangesServiceExtensions.cs (1)
9
public static bool CanApplyChange(this Solution solution,
ApplyChangesKind
kind)
Workspace\AdhocWorkspace.cs (1)
26
public override bool CanApplyChange(
ApplyChangesKind
feature)
Workspace\Host\DocumentService\IDocumentOperationService.cs (1)
14
/// document version of <see cref="Workspace.CanApplyChange(
ApplyChangesKind
)"/>
Workspace\Host\ISupportedChangesService.cs (2)
18
bool CanApplyChange(
ApplyChangesKind
kind);
41
public bool CanApplyChange(
ApplyChangesKind
kind)
Workspace\Workspace.cs (49)
1498
public virtual bool CanApplyChange(
ApplyChangesKind
feature)
1513
/// will still throw if the solution contains changes that are not supported according to the <see cref="CanApplyChange(
ApplyChangesKind
)"/>
1517
/// <see cref="CanApplyChange(
ApplyChangesKind
)"/> method.</exception>
1655
if (!CanApplyChange(
ApplyChangesKind
.RemoveProject) && solutionChanges.GetRemovedProjects().Any())
1660
if (!CanApplyChange(
ApplyChangesKind
.AddProject) && solutionChanges.GetAddedProjects().Any())
1665
if (!CanApplyChange(
ApplyChangesKind
.AddSolutionAnalyzerReference) && solutionChanges.GetAddedAnalyzerReferences().Any())
1670
if (!CanApplyChange(
ApplyChangesKind
.RemoveSolutionAnalyzerReference) && solutionChanges.GetRemovedAnalyzerReferences().Any())
1686
if (!CanApplyChange(
ApplyChangesKind
.ChangeCompilationOptions) &&
1717
if (!CanApplyChange(
ApplyChangesKind
.ChangeParseOptions) &&
1724
if (!CanApplyChange(
ApplyChangesKind
.AddDocument) && projectChanges.GetAddedDocuments().Any())
1729
if (!CanApplyChange(
ApplyChangesKind
.RemoveDocument) && projectChanges.GetRemovedDocuments().Any())
1734
if (!CanApplyChange(
ApplyChangesKind
.ChangeDocumentInfo)
1742
if (!CanApplyChange(
ApplyChangesKind
.ChangeDocument) && changedDocumentIds.Length > 0)
1759
if (!CanApplyChange(
ApplyChangesKind
.AddAdditionalDocument) && projectChanges.GetAddedAdditionalDocuments().Any())
1764
if (!CanApplyChange(
ApplyChangesKind
.RemoveAdditionalDocument) && projectChanges.GetRemovedAdditionalDocuments().Any())
1769
if (!CanApplyChange(
ApplyChangesKind
.ChangeAdditionalDocument) && projectChanges.GetChangedAdditionalDocuments().Any())
1774
if (!CanApplyChange(
ApplyChangesKind
.AddAnalyzerConfigDocument) && projectChanges.GetAddedAnalyzerConfigDocuments().Any())
1779
if (!CanApplyChange(
ApplyChangesKind
.RemoveAnalyzerConfigDocument) && projectChanges.GetRemovedAnalyzerConfigDocuments().Any())
1784
if (!CanApplyChange(
ApplyChangesKind
.ChangeAnalyzerConfigDocument) && projectChanges.GetChangedAnalyzerConfigDocuments().Any())
1789
if (!CanApplyChange(
ApplyChangesKind
.AddProjectReference) && projectChanges.GetAddedProjectReferences().Any())
1794
if (!CanApplyChange(
ApplyChangesKind
.RemoveProjectReference) && projectChanges.GetRemovedProjectReferences().Any())
1799
if (!CanApplyChange(
ApplyChangesKind
.AddMetadataReference) && projectChanges.GetAddedMetadataReferences().Any())
1804
if (!CanApplyChange(
ApplyChangesKind
.RemoveMetadataReference) && projectChanges.GetRemovedMetadataReferences().Any())
1809
if (!CanApplyChange(
ApplyChangesKind
.AddAnalyzerReference) && projectChanges.GetAddedAnalyzerReferences().Any())
1814
if (!CanApplyChange(
ApplyChangesKind
.RemoveAnalyzerReference) && projectChanges.GetRemovedAnalyzerReferences().Any())
1824
/// This method is only called if <see cref="CanApplyChange" /> returns false for <see cref="
ApplyChangesKind
.ChangeCompilationOptions"/>.
1837
/// This method is only called if <see cref="CanApplyChange" /> returns false for <see cref="
ApplyChangesKind
.ChangeParseOptions"/>.
2056
Debug.Assert(CanApplyChange(
ApplyChangesKind
.AddProject));
2067
Debug.Assert(CanApplyChange(
ApplyChangesKind
.RemoveProject));
2082
Debug.Assert(CanApplyChange(
ApplyChangesKind
.ChangeCompilationOptions) ||
2100
Debug.Assert(CanApplyChange(
ApplyChangesKind
.ChangeParseOptions) ||
2113
Debug.Assert(CanApplyChange(
ApplyChangesKind
.AddProjectReference));
2124
Debug.Assert(CanApplyChange(
ApplyChangesKind
.RemoveProjectReference));
2135
Debug.Assert(CanApplyChange(
ApplyChangesKind
.AddMetadataReference));
2146
Debug.Assert(CanApplyChange(
ApplyChangesKind
.RemoveMetadataReference));
2157
Debug.Assert(CanApplyChange(
ApplyChangesKind
.AddAnalyzerReference));
2168
Debug.Assert(CanApplyChange(
ApplyChangesKind
.RemoveAnalyzerReference));
2179
Debug.Assert(CanApplyChange(
ApplyChangesKind
.AddSolutionAnalyzerReference));
2190
Debug.Assert(CanApplyChange(
ApplyChangesKind
.RemoveSolutionAnalyzerReference));
2201
Debug.Assert(CanApplyChange(
ApplyChangesKind
.AddDocument));
2212
Debug.Assert(CanApplyChange(
ApplyChangesKind
.RemoveDocument));
2223
Debug.Assert(CanApplyChange(
ApplyChangesKind
.ChangeDocument));
2234
Debug.Assert(CanApplyChange(
ApplyChangesKind
.ChangeDocumentInfo));
2245
Debug.Assert(CanApplyChange(
ApplyChangesKind
.AddAdditionalDocument));
2256
Debug.Assert(CanApplyChange(
ApplyChangesKind
.RemoveAdditionalDocument));
2267
Debug.Assert(CanApplyChange(
ApplyChangesKind
.ChangeAdditionalDocument));
2278
Debug.Assert(CanApplyChange(
ApplyChangesKind
.AddAnalyzerConfigDocument));
2289
Debug.Assert(CanApplyChange(
ApplyChangesKind
.RemoveAnalyzerConfigDocument));
2300
Debug.Assert(CanApplyChange(
ApplyChangesKind
.ChangeAnalyzerConfigDocument));
Microsoft.CodeAnalysis.Workspaces.MSBuild (11)
MSBuild\MSBuildWorkspace.cs (11)
278
public override bool CanApplyChange(
ApplyChangesKind
feature)
281
ApplyChangesKind
.ChangeDocument or
282
ApplyChangesKind
.AddDocument or
283
ApplyChangesKind
.RemoveDocument or
284
ApplyChangesKind
.AddMetadataReference or
285
ApplyChangesKind
.RemoveMetadataReference or
286
ApplyChangesKind
.AddProjectReference or
287
ApplyChangesKind
.RemoveProjectReference or
288
ApplyChangesKind
.AddAnalyzerReference or
289
ApplyChangesKind
.RemoveAnalyzerReference or
290
ApplyChangesKind
.ChangeAdditionalDocument;
Roslyn.Diagnostics.Analyzers (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Host\SupportedChangesServiceExtensions.cs (1)
9
public static bool CanApplyChange(this Solution solution,
ApplyChangesKind
kind)