C# Class ArchiMetrics.Analysis.Metrics.HalsteadAnalyzer

Inheritance: Microsoft.CodeAnalysis.SyntaxWalker
Show file Open project: jjrdk/ArchiMetrics Class Usage Examples

Public Methods

Method Description
Calculate ( Microsoft.CodeAnalysis.SyntaxNode syntax ) : IHalsteadMetrics
HalsteadAnalyzer ( ) : System.Collections.Generic
Visit ( Microsoft.CodeAnalysis.SyntaxNode node ) : void

Called when the walker visits a node. This method may be overridden if subclasses want to handle the node. Overrides should call back into this base method if they want the children of this node to be visited.

VisitBlock ( BlockSyntax node ) : void

Private Methods

Method Description
ParseTokens ( IEnumerable tokens, IEnumerable filter ) : IList>.IDictionary

Method Details

Calculate() public method

public Calculate ( Microsoft.CodeAnalysis.SyntaxNode syntax ) : IHalsteadMetrics
syntax Microsoft.CodeAnalysis.SyntaxNode
return IHalsteadMetrics

HalsteadAnalyzer() public method

public HalsteadAnalyzer ( ) : System.Collections.Generic
return System.Collections.Generic

Visit() public method

Called when the walker visits a node. This method may be overridden if subclasses want to handle the node. Overrides should call back into this base method if they want the children of this node to be visited.
public Visit ( Microsoft.CodeAnalysis.SyntaxNode node ) : void
node Microsoft.CodeAnalysis.SyntaxNode The current node that the walker is visiting.
return void

VisitBlock() public method

public VisitBlock ( BlockSyntax node ) : void
node BlockSyntax
return void