C# Class ArchiMetrics.Analysis.Metrics.MemberMetricsCalculator

Inheritance: SemanticModelMetricsCalculator
Mostrar archivo Open project: jjrdk/ArchiMetrics Class Usage Examples

Public Methods

Method Description
Calculate ( TypeDeclarationSyntaxInfo typeNode ) : Task>
CalculateSlim ( Microsoft.CodeAnalysis.CSharp.Syntax.MethodDeclarationSyntax methodDeclaration ) : IMemberMetric
MemberMetricsCalculator ( Microsoft.CodeAnalysis.SemanticModel semanticModel, Solution solution, IMemberDocumentation>.IAsyncFactory documentationFactory ) : Common.System

Private Methods

Method Description
CalculateAfferentCoupling ( Microsoft.CodeAnalysis.SyntaxNode node ) : Task
CalculateClassCoupling ( Microsoft.CodeAnalysis.SyntaxNode node ) : IEnumerable
CalculateCyclomaticComplexity ( Microsoft.CodeAnalysis.SyntaxNode node ) : int
CalculateLinesOfCode ( Microsoft.CodeAnalysis.SyntaxNode node ) : int
CalculateMaintainablityIndex ( double cyclomaticComplexity, double linesOfCode, IHalsteadMetrics halsteadMetrics ) : double
CalculateMemberMetric ( Microsoft.CodeAnalysis.SyntaxNode syntaxNode ) : Task
CalculateMemberMetricSlim ( Microsoft.CodeAnalysis.SyntaxNode syntaxNode ) : IMemberMetric
CalculateMemberMetrics ( IEnumerable nodes ) : Task>
CalculateNumberOfLocalVariables ( Microsoft.CodeAnalysis.SyntaxNode node ) : int
CalculateNumberOfParameters ( Microsoft.CodeAnalysis.SyntaxNode node ) : int
GetAccessModifier ( Microsoft.CodeAnalysis.SyntaxNode node ) : AccessModifierKind
GetAccessModifier ( SyntaxTokenList tokenList ) : AccessModifierKind

Method Details

Calculate() public method

public Calculate ( TypeDeclarationSyntaxInfo typeNode ) : Task>
typeNode TypeDeclarationSyntaxInfo
return Task>

CalculateSlim() public method

public CalculateSlim ( Microsoft.CodeAnalysis.CSharp.Syntax.MethodDeclarationSyntax methodDeclaration ) : IMemberMetric
methodDeclaration Microsoft.CodeAnalysis.CSharp.Syntax.MethodDeclarationSyntax
return IMemberMetric

MemberMetricsCalculator() public method

public MemberMetricsCalculator ( Microsoft.CodeAnalysis.SemanticModel semanticModel, Solution solution, IMemberDocumentation>.IAsyncFactory documentationFactory ) : Common.System
semanticModel Microsoft.CodeAnalysis.SemanticModel
solution Solution
documentationFactory IMemberDocumentation>.IAsyncFactory
return Common.System