38 references to Scope
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (8)
ConvertTupleToStruct\ConvertTupleToStructTests.cs (8)
2985
text, expected, index: 1, equivalenceKey:
Scope
.ContainingType.ToString(),
3083
text, expected, index: 1, equivalenceKey:
Scope
.ContainingType.ToString(),
3186
text, expected, index: 1, equivalenceKey:
Scope
.ContainingType.ToString(),
3293
text, expected, index: 1, equivalenceKey:
Scope
.ContainingType.ToString(),
3442
CodeActionEquivalenceKey =
Scope
.ContainingType.ToString(),
3587
CodeActionEquivalenceKey =
Scope
.ContainingProject.ToString(),
3716
CodeActionEquivalenceKey =
Scope
.DependentProjects.ToString(),
3857
CodeActionEquivalenceKey =
Scope
.DependentProjects.ToString(),
Microsoft.CodeAnalysis.Features (22)
ConvertTupleToStruct\AbstractConvertTupleToStructCodeRefactoringProvider.cs (20)
132
scopes.Add(CreateAction(document, span,
Scope
.ContainingMember, fallbackOptions, isRecord));
141
scopes.Add(CreateAction(document, span,
Scope
.ContainingType, fallbackOptions, isRecord));
156
scopes.Add(CreateAction(document, span,
Scope
.ContainingProject, fallbackOptions, isRecord));
157
scopes.Add(CreateAction(document, span,
Scope
.DependentProjects, fallbackOptions, isRecord));
172
private CodeAction CreateAction(Document document, TextSpan span,
Scope
scope, CleanCodeGenerationOptionsProvider fallbackOptions, bool isRecord)
175
private static string GetTitle(
Scope
scope)
178
Scope
.ContainingMember => FeaturesResources.updating_usages_in_containing_member,
179
Scope
.ContainingType => FeaturesResources.updating_usages_in_containing_type,
180
Scope
.ContainingProject => FeaturesResources.updating_usages_in_containing_project,
181
Scope
.DependentProjects => FeaturesResources.updating_usages_in_dependent_projects,
208
Document document, TextSpan span,
Scope
scope, CleanCodeGenerationOptionsProvider fallbackOptions, bool isRecord, CancellationToken cancellationToken)
255
Document document, TextSpan span,
Scope
scope, CleanCodeGenerationOptionsProvider fallbackOptions, bool isRecord, CancellationToken cancellationToken)
412
INamedTypeSymbol tupleType,
Scope
scope, CancellationToken cancellationToken)
416
Scope
.ContainingMember => GetDocumentsToUpdateForContainingMember(document, tupleExprOrTypeNode),
417
Scope
.ContainingType => await GetDocumentsToUpdateForContainingTypeAsync(
419
Scope
.ContainingProject => await GetDocumentsToUpdateForContainingProjectAsync(
421
Scope
.DependentProjects => await GetDocumentsToUpdateForDependentProjectAsync(
791
Document document,
Scope
scope, bool isRecord, string structName, ImmutableArray<ITypeParameterSymbol> typeParameters,
902
Scope
scope, bool isRecord, string structName,
905
var accessibility = scope ==
Scope
.DependentProjects
ConvertTupleToStruct\IConvertTupleToStructCodeRefactoringProvider.cs (1)
18
Document document, TextSpan span,
Scope
scope, CleanCodeGenerationOptionsProvider fallbackOptions, bool isRecord, CancellationToken cancellationToken);
ConvertTupleToStruct\IRemoteConvertTupleToStructCodeRefactoringService.cs (1)
33
Scope
scope,
Microsoft.CodeAnalysis.Remote.ServiceHub (1)
Services\ConvertTupleToStructCodeRefactoringProvider\RemoteConvertTupleToStructCodeRefactoringService.cs (1)
46
Scope
scope,
Microsoft.CodeAnalysis.VisualBasic.EditorFeatures.UnitTests (7)
ConvertTupleToStruct\ConvertTupleToStructTests.vb (7)
1845
Await TestAsync(text, expected, index:=1, equivalenceKey:=
Scope
.ContainingType.ToString(), testHost:=host, actions:={
1925
Await TestAsync(text, expected, index:=1, equivalenceKey:=
Scope
.ContainingType.ToString(), testHost:=host)
2005
Await TestAsync(text, expected, index:=1, equivalenceKey:=
Scope
.ContainingType.ToString(), testHost:=host)
2109
.CodeActionEquivalenceKey =
Scope
.ContainingType.ToString(),
2231
.CodeActionEquivalenceKey =
Scope
.ContainingProject.ToString(),
2336
.CodeActionEquivalenceKey =
Scope
.DependentProjects.ToString(),
2439
.CodeActionEquivalenceKey =
Scope
.DependentProjects.ToString(),