C# Class CodeContractNullability.GeneratedCodeDocumentCache.FileCommentScanner

Determines whether a source code file is auto-generated, by looking at its top-level comments.
ファイルを表示 Open project: bkoelman/ResharperCodeContractNullability

Public Methods

Method Description
HasAutoGeneratedCommentHeader ( [ tree, CancellationToken cancellationToken ) : bool
IsFileNameGenerated ( [ filePath ) : bool

Private Methods

Method Description
GetTopOfFileTriviaOrNull ( [ root ) : SyntaxTriviaList?
IsCodeComment ( SyntaxTrivia trivia ) : bool

Method Details

HasAutoGeneratedCommentHeader() public method

public HasAutoGeneratedCommentHeader ( [ tree, CancellationToken cancellationToken ) : bool
tree [
cancellationToken System.Threading.CancellationToken
return bool

IsFileNameGenerated() public method

public IsFileNameGenerated ( [ filePath ) : bool
filePath [
return bool