C# Class ArchiMetrics.Analysis.CodeMetricsCalculator

Inheritance: ICodeMetricsCalculator
Exibir arquivo Open project: jjrdk/ArchiMetrics Class Usage Examples

Public Methods

Method Description
Calculate ( IEnumerable syntaxTrees ) : Task>
Calculate ( Microsoft.CodeAnalysis.Project project, Solution solution ) : Task>
CodeMetricsCalculator ( ) : Common.System
CodeMetricsCalculator ( ITypeDocumentation>.IAsyncFactory typeDocumentationFactory, IMemberDocumentation>.IAsyncFactory memberDocumentationFactory ) : Common.System

Private Methods

Method Description
AddToCompilation ( Compilation compilation, Microsoft.CodeAnalysis.SyntaxTree tree ) : SyntaxTree>.Tuple
CalculateMemberMetrics ( Compilation compilation, TypeDeclaration typeNodes, Solution solution ) : IEnumerable>>.Task
CalculateNamespaceMetrics ( IEnumerable namespaceDeclarations, Compilation compilation, Solution solution ) : Task>
CalculateNamespaceMetrics ( Compilation compilation, ArchiMetrics.Analysis.Metrics.NamespaceDeclaration namespaceNodes, IEnumerable typeMetrics ) : Task
CalculateTypeMetrics ( Compilation compilation, ArchiMetrics.Analysis.Metrics.NamespaceDeclaration namespaceNodes, Solution solution ) : IEnumerable>>.Task
CalculateTypeMetrics ( Solution solution, Compilation compilation, TypeDeclaration typeNodes, IEnumerable memberMetrics ) : ITypeMetric>>.Task
GetNamespaceDeclarations ( Microsoft.CodeAnalysis.Project project ) : Task>
GetTypeDeclarations ( ArchiMetrics.Analysis.Metrics.NamespaceDeclaration namespaceDeclaration ) : IEnumerable
IsGeneratedCodeFile ( Microsoft.CodeAnalysis.Document doc, IEnumerable patterns ) : bool
VerifyCompilation ( Compilation compilation, NamespaceDeclarationSyntaxInfo namespaceNode ) : Task>
VerifyCompilation ( Compilation compilation, TypeDeclarationSyntaxInfo typeNode ) : Task>

Method Details

Calculate() public method

public Calculate ( IEnumerable syntaxTrees ) : Task>
syntaxTrees IEnumerable
return Task>

Calculate() public method

public Calculate ( Microsoft.CodeAnalysis.Project project, Solution solution ) : Task>
project Microsoft.CodeAnalysis.Project
solution Solution
return Task>

CodeMetricsCalculator() public method

public CodeMetricsCalculator ( ) : Common.System
return Common.System

CodeMetricsCalculator() public method

public CodeMetricsCalculator ( ITypeDocumentation>.IAsyncFactory typeDocumentationFactory, IMemberDocumentation>.IAsyncFactory memberDocumentationFactory ) : Common.System
typeDocumentationFactory ITypeDocumentation>.IAsyncFactory
memberDocumentationFactory IMemberDocumentation>.IAsyncFactory
return Common.System