提交 6f4617d7 编写于 作者: C Cyrus Najmabadi

Make members static.

上级 9ddd1300
......@@ -334,7 +334,7 @@ private static string GetTitle(Scope scope)
: (TNameSyntax)generator.GenericName(structNameToken, typeParameters.Select(tp => generator.IdentifierName(tp.Name)));
}
private async Task<ImmutableArray<DocumentToUpdate>> GetDocumentsToUpdateAsync(
private static async Task<ImmutableArray<DocumentToUpdate>> GetDocumentsToUpdateAsync(
Document document, SyntaxNode tupleExprOrTypeNode,
INamedTypeSymbol tupleType, Scope scope, CancellationToken cancellationToken)
{
......@@ -356,7 +356,7 @@ private static string GetTitle(Scope scope)
}
}
private async Task<ImmutableArray<DocumentToUpdate>> GetDocumentsToUpdateForDependentProjectAsync(
private static async Task<ImmutableArray<DocumentToUpdate>> GetDocumentsToUpdateForDependentProjectAsync(
Project startingProject, INamedTypeSymbol tupleType, CancellationToken cancellationToken)
{
var solution = startingProject.Solution;
......@@ -396,7 +396,7 @@ private static string GetTitle(Scope scope)
return result.ToImmutableAndFree();
}
private async Task<ImmutableArray<DocumentToUpdate>> GetDocumentsToUpdateForContainingProjectAsync(
private static async Task<ImmutableArray<DocumentToUpdate>> GetDocumentsToUpdateForContainingProjectAsync(
Project project, INamedTypeSymbol tupleType, CancellationToken cancellationToken)
{
var result = ArrayBuilder<DocumentToUpdate>.GetInstance();
......@@ -408,7 +408,7 @@ private static string GetTitle(Scope scope)
return result.ToImmutableAndFree();
}
private async Task AddDocumentsToUpdateForProjectAsync(Project project, ArrayBuilder<DocumentToUpdate> result, ImmutableArray<string> tupleFieldNames, CancellationToken cancellationToken)
private static async Task AddDocumentsToUpdateForProjectAsync(Project project, ArrayBuilder<DocumentToUpdate> result, ImmutableArray<string> tupleFieldNames, CancellationToken cancellationToken)
{
foreach (var document in project.Documents)
{
......@@ -422,7 +422,7 @@ private async Task AddDocumentsToUpdateForProjectAsync(Project project, ArrayBui
}
}
private bool InfoProbablyContainsTupleFieldNames(SyntaxTreeIndex info, ImmutableArray<string> tupleFieldNames)
private static bool InfoProbablyContainsTupleFieldNames(SyntaxTreeIndex info, ImmutableArray<string> tupleFieldNames)
{
foreach (var name in tupleFieldNames)
{
......@@ -435,7 +435,7 @@ private bool InfoProbablyContainsTupleFieldNames(SyntaxTreeIndex info, Immutable
return true;
}
private async Task<ImmutableArray<DocumentToUpdate>> GetDocumentsToUpdateForContainingTypeAsync(
private static async Task<ImmutableArray<DocumentToUpdate>> GetDocumentsToUpdateForContainingTypeAsync(
Document startingDocument, SyntaxNode tupleExprOrTypeNode, CancellationToken cancellationToken)
{
var containingType = tupleExprOrTypeNode.GetAncestor<TTypeBlockSyntax>();
......@@ -460,7 +460,7 @@ private bool InfoProbablyContainsTupleFieldNames(SyntaxTreeIndex info, Immutable
return result.ToImmutableAndFree();
}
private ImmutableArray<DocumentToUpdate> GetDocumentsToUpdateForContainingMember(
private static ImmutableArray<DocumentToUpdate> GetDocumentsToUpdateForContainingMember(
Document document, SyntaxNode tupleExprOrTypeNode)
{
var syntaxFacts = document.GetLanguageService<ISyntaxFactsService>();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册