C# Class CodeContractNullability.GeneratedCodeDocumentCache.FileCommentScanner

Determines whether a source code file is auto-generated, by looking at its top-level comments.
Afficher le fichier Open project: bkoelman/ResharperCodeContractNullability

Méthodes publiques

Méthode Description
HasAutoGeneratedCommentHeader ( [ tree, CancellationToken cancellationToken ) : bool
IsFileNameGenerated ( [ filePath ) : bool

Private Methods

Méthode Description
GetTopOfFileTriviaOrNull ( [ root ) : SyntaxTriviaList?
IsCodeComment ( SyntaxTrivia trivia ) : bool

Method Details

HasAutoGeneratedCommentHeader() public méthode

public HasAutoGeneratedCommentHeader ( [ tree, CancellationToken cancellationToken ) : bool
tree [
cancellationToken System.Threading.CancellationToken
Résultat bool

IsFileNameGenerated() public méthode

public IsFileNameGenerated ( [ filePath ) : bool
filePath [
Résultat bool