C# Class ErrorProne.NET.Rules.ExceptionHandling.PreconditionsBlock

Class that holds all checks that could be considered as a method preconditions.
Show file Open project: SergeyTeplyakov/ErrorProne.NET Class Usage Examples

Public Methods

Method Description
GetPreconditions ( Microsoft.CodeAnalysis.CSharp.Syntax.MethodDeclarationSyntax method, Microsoft.CodeAnalysis.SemanticModel semanticModel ) : PreconditionsBlock
PreconditionsBlock ( List preconditions ) : System

Private Methods

Method Description
IsThrowArgumentExceptionStatement ( StatementSyntax statement, Microsoft.CodeAnalysis.SemanticModel semanticModel ) : bool

Method Details

GetPreconditions() public static method

public static GetPreconditions ( Microsoft.CodeAnalysis.CSharp.Syntax.MethodDeclarationSyntax method, Microsoft.CodeAnalysis.SemanticModel semanticModel ) : PreconditionsBlock
method Microsoft.CodeAnalysis.CSharp.Syntax.MethodDeclarationSyntax
semanticModel Microsoft.CodeAnalysis.SemanticModel
return PreconditionsBlock

PreconditionsBlock() public method

public PreconditionsBlock ( List preconditions ) : System
preconditions List
return System