C# 클래스 Microsoft.DotNet.CodeFormatting.Rules.PrivateFieldNamingRule.CommonRule

파일 보기 프로젝트 열기: VE-2016/VE-2016

공개 메소드들

메소드 설명
ProcessAsync ( Document document, SyntaxNode syntaxRoot, CancellationToken cancellationToken ) : Task

보호된 메소드들

메소드 설명
AddPrivateFieldAnnotations ( SyntaxNode syntaxNode, int &count ) : SyntaxNode
RemoveRenameAnnotations ( SyntaxNode syntaxNode ) : SyntaxNode

This method exists to work around DevDiv 1086632 in Roslyn. The Rename action is leaving a set of annotations in the tree. These annotations slow down further processing and eventually make the rename operation unusable. As a temporary work around we manually remove these from the tree.

비공개 메소드들

메소드 설명
CleanSolutionAsync ( Solution newSolution, Solution oldSolution, CancellationToken cancellationToken ) : Task
CleanSolutionDocument ( Solution solution, DocumentId documentId, CancellationToken cancellationToken ) : Task
GetNewFieldName ( ISymbol fieldSymbol ) : string
RenameFields ( Solution solution, DocumentId documentId, int count, CancellationToken cancellationToken ) : Task

메소드 상세

AddPrivateFieldAnnotations() 보호된 추상적인 메소드

protected abstract AddPrivateFieldAnnotations ( SyntaxNode syntaxNode, int &count ) : SyntaxNode
syntaxNode SyntaxNode
count int
리턴 SyntaxNode

ProcessAsync() 공개 메소드

public ProcessAsync ( Document document, SyntaxNode syntaxRoot, CancellationToken cancellationToken ) : Task
document Document
syntaxRoot SyntaxNode
cancellationToken CancellationToken
리턴 Task

RemoveRenameAnnotations() 보호된 추상적인 메소드

This method exists to work around DevDiv 1086632 in Roslyn. The Rename action is leaving a set of annotations in the tree. These annotations slow down further processing and eventually make the rename operation unusable. As a temporary work around we manually remove these from the tree.
protected abstract RemoveRenameAnnotations ( SyntaxNode syntaxNode ) : SyntaxNode
syntaxNode SyntaxNode
리턴 SyntaxNode