C# Class CodeConnect.Gistify.Engine.DiscoveryWalker

Inheritance: Microsoft.CodeAnalysis.CSharp.CSharpSyntaxWalker
Show file Open project: CodeConnect/gistify Class Usage Examples

Private Properties

Property Type Description
DiscoveryWalker System
FindObjects IEnumerable
processIdentifierName void

Public Methods

Method Description
VisitIdentifierName ( Microsoft.CodeAnalysis.CSharp.Syntax.IdentifierNameSyntax node ) : void

Called by the base class. Processes identifiers that are in desired range.

Private Methods

Method Description
DiscoveryWalker ( int start, int end, Microsoft.CodeAnalysis.SemanticModel model ) : System
FindObjects ( Microsoft.CodeAnalysis.SyntaxTree tree, Microsoft.CodeAnalysis.SemanticModel model, int startPosition, int endPosition ) : IEnumerable

Finds elements used by the code in specified region of provided syntax.

processIdentifierName ( Microsoft.CodeAnalysis.CSharp.Syntax.IdentifierNameSyntax node ) : void

Examines the identifier and if applicable, creates an instance of ObjectInformation which will be consumed later by the SyntaxBuilder

Method Details

VisitIdentifierName() public method

Called by the base class. Processes identifiers that are in desired range.
public VisitIdentifierName ( Microsoft.CodeAnalysis.CSharp.Syntax.IdentifierNameSyntax node ) : void
node Microsoft.CodeAnalysis.CSharp.Syntax.IdentifierNameSyntax
return void