C# Class Rosetta.AST.ASTWalker

Walks a class AST node. // TODO: Override class definition in order to create an inner class and remove the node!
Inheritance: Microsoft.CodeAnalysis.CSharp.CSharpSyntaxWalker
Mostrar archivo Open project: andry-tino/Rosetta Class Usage Examples

Protected Properties

Property Type Description
node CSharpSyntaxNode
semanticModel Microsoft.CodeAnalysis.SemanticModel

Public Methods

Method Description
ASTWalker ( ASTWalker other ) : System

Copy initializes a new instance of the ASTWalker class.

For testability.

Protected Methods

Method Description
ASTWalker ( CSharpSyntaxNode node, Microsoft.CodeAnalysis.SemanticModel semanticModel ) : System

Initializes a new instance of the ASTWalker class.

OnContextChanged ( ) : void

Called when the context has changed. When accessing the context, it is already the new context, no information is provided in this method about the old one.

Method Details

ASTWalker() public method

Copy initializes a new instance of the ASTWalker class.
For testability.
public ASTWalker ( ASTWalker other ) : System
other ASTWalker
return System

ASTWalker() protected method

Initializes a new instance of the ASTWalker class.
protected ASTWalker ( CSharpSyntaxNode node, Microsoft.CodeAnalysis.SemanticModel semanticModel ) : System
node CSharpSyntaxNode
semanticModel Microsoft.CodeAnalysis.SemanticModel
return System

OnContextChanged() protected method

Called when the context has changed. When accessing the context, it is already the new context, no information is provided in this method about the old one.
protected OnContextChanged ( ) : void
return void

Property Details

node protected_oe property

protected CSharpSyntaxNode node
return CSharpSyntaxNode

semanticModel protected_oe property

protected SemanticModel,Microsoft.CodeAnalysis semanticModel
return Microsoft.CodeAnalysis.SemanticModel