ReplaceMethodWithProperty\CSharpReplaceMethodWithPropertyService.cs (14)
101var accessor =
122var getAccessor = CreateGetAccessor(getAndSetMethods, options, languageVersion, cancellationToken);
123var setAccessor = CreateSetAccessor(semanticModel, generator, getAndSetMethods, options, languageVersion, cancellationToken);
165private static AccessorDeclarationSyntax CreateGetAccessor(
168var accessorDeclaration = CreateGetAccessorWorker(getAndSetMethods);
174private static AccessorDeclarationSyntax UseExpressionOrBlockBodyIfDesired(
176AccessorDeclarationSyntax accessorDeclaration, CancellationToken cancellationToken)
209private static AccessorDeclarationSyntax CreateGetAccessorWorker(GetAndSetMethods getAndSetMethods)
213var accessor = AccessorDeclaration(SyntaxKind.GetAccessorDeclaration);
234private static AccessorDeclarationSyntax CreateSetAccessor(
238var accessorDeclaration = CreateSetAccessorWorker(semanticModel, generator, getAndSetMethods);
242private static AccessorDeclarationSyntax CreateSetAccessorWorker(
252var accessor = AccessorDeclaration(SyntaxKind.SetAccessorDeclaration);
256accessor = (AccessorDeclarationSyntax)generator.WithAccessibility(accessor, setMethod.DeclaredAccessibility);