C# Class Rosetta.AST.ConditionalStatementASTWalker

Describes walkers in conditional statements. TODO: Make internal TODO: This is a walker but maybe it is not necessary to use walking funcitonalities.
Inheritance: StatementASTWalker
ファイルを表示 Open project: andry-tino/Rosetta Class Usage Examples

Public Methods

Method Description
ConditionalStatementASTWalker ( ConditionalStatementASTWalker other ) : System

Copy initializes a new instance of the ConditionalStatementASTWalker class.

For testability.

Create ( CSharpSyntaxNode node, Microsoft.CodeAnalysis.SemanticModel semanticModel = null ) : ConditionalStatementASTWalker

Factory method for class ConditionalStatementASTWalker.

Protected Methods

Method Description
ConditionalStatementASTWalker ( CSharpSyntaxNode node, ConditionalStatementTranslationUnit conditionalStatement, Microsoft.CodeAnalysis.SemanticModel semanticModel ) : System

Initializes a new instance of the ConditionalStatementASTWalker class.

Private Methods

Method Description
VisitNode ( IfStatementSyntax node, int index ) : void

In charge of executing a fixed visit of this node.

Method Details

ConditionalStatementASTWalker() protected method

Initializes a new instance of the ConditionalStatementASTWalker class.
protected ConditionalStatementASTWalker ( CSharpSyntaxNode node, ConditionalStatementTranslationUnit conditionalStatement, Microsoft.CodeAnalysis.SemanticModel semanticModel ) : System
node CSharpSyntaxNode
conditionalStatement Rosetta.Translation.ConditionalStatementTranslationUnit
semanticModel Microsoft.CodeAnalysis.SemanticModel The semantic model.
return System

ConditionalStatementASTWalker() public method

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

Create() public static method

Factory method for class ConditionalStatementASTWalker.
public static Create ( CSharpSyntaxNode node, Microsoft.CodeAnalysis.SemanticModel semanticModel = null ) : ConditionalStatementASTWalker
node CSharpSyntaxNode Used to initialize the walker.
semanticModel Microsoft.CodeAnalysis.SemanticModel The semantic model.
return ConditionalStatementASTWalker