C# Class Rosetta.AST.InterfaceASTWalker

Walks an interface AST node.
Inheritance: ASTWalker, IASTWalker
Mostrar archivo Open project: andry-tino/Rosetta Class Usage Examples

Protected Properties

Property Type Description
interfaceDeclaration Rosetta.Translation.InterfaceDeclarationTranslationUnit

Public Methods

Method Description
Create ( CSharpSyntaxNode node, ASTWalkerContext context = null, Microsoft.CodeAnalysis.SemanticModel semanticModel = null ) : InterfaceASTWalker

Factory method for class InterfaceASTWalker.

InterfaceASTWalker ( InterfaceASTWalker other ) : System

Copy initializes a new instance of the InterfaceASTWalker class.

For testability.

VisitMethodDeclaration ( Microsoft.CodeAnalysis.CSharp.Syntax.MethodDeclarationSyntax node ) : void

We don't need to go further deeper in the tree by visiting the node.

VisitPropertyDeclaration ( Microsoft.CodeAnalysis.CSharp.Syntax.PropertyDeclarationSyntax node ) : void

We don't need to go further deeper in the tree by visiting the node.

Walk ( ) : ITranslationUnit

Walk the whole tree starting from specified CSharpSyntaxNode and build the translation unit tree necessary for generating TypeScript output.

Protected Methods

Method Description
InterfaceASTWalker ( CSharpSyntaxNode node, InterfaceDeclarationTranslationUnit interfaceDeclaration, Microsoft.CodeAnalysis.SemanticModel semanticModel ) : System

Initializes a new instance of the InterfaceASTWalker class.

Private Methods

Method Description
InvokeMethodDeclarationVisited ( object sender, WalkerEventArgs e ) : void
InvokePropertyDeclarationVisited ( object sender, WalkerEventArgs e ) : void

Method Details

Create() public static method

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

InterfaceASTWalker() protected method

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

InterfaceASTWalker() public method

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

VisitMethodDeclaration() public method

We don't need to go further deeper in the tree by visiting the node.
public VisitMethodDeclaration ( Microsoft.CodeAnalysis.CSharp.Syntax.MethodDeclarationSyntax node ) : void
node Microsoft.CodeAnalysis.CSharp.Syntax.MethodDeclarationSyntax
return void

VisitPropertyDeclaration() public method

We don't need to go further deeper in the tree by visiting the node.
public VisitPropertyDeclaration ( Microsoft.CodeAnalysis.CSharp.Syntax.PropertyDeclarationSyntax node ) : void
node Microsoft.CodeAnalysis.CSharp.Syntax.PropertyDeclarationSyntax
return void

Walk() public method

Walk the whole tree starting from specified CSharpSyntaxNode and build the translation unit tree necessary for generating TypeScript output.
public Walk ( ) : ITranslationUnit
return ITranslationUnit

Property Details

interfaceDeclaration protected_oe property

protected InterfaceDeclarationTranslationUnit,Rosetta.Translation interfaceDeclaration
return Rosetta.Translation.InterfaceDeclarationTranslationUnit