C# Class Rosetta.AST.NamespaceASTWalker

Walks a namespace AST node.
Inheritance: ASTWalker, IASTWalker
Afficher le fichier Open project: andry-tino/Rosetta Class Usage Examples

Protected Properties

Свойство Type Description
module Rosetta.Translation.ModuleTranslationUnit

Méthodes publiques

Méthode Description
Create ( CSharpSyntaxNode node, ASTWalkerContext context = null, Microsoft.CodeAnalysis.SemanticModel semanticModel = null ) : NamespaceASTWalker

Factory method for class NamespaceASTWalker.

NamespaceASTWalker ( NamespaceASTWalker other ) : System

Copy initializes a new instance of the NamespaceASTWalker class.

For testability.

VisitClassDeclaration ( Microsoft.CodeAnalysis.CSharp.Syntax.ClassDeclarationSyntax node ) : void

This will cause an AST walker to be created, thus we don't need to go further deeper in the tree by visiting the node.

VisitInterfaceDeclaration ( InterfaceDeclarationSyntax node ) : void

Walk ( ) : ITranslationUnit

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

Méthodes protégées

Méthode Description
InvokeClassDeclarationVisited ( object sender, WalkerEventArgs e ) : void
InvokeEnumDeclarationVisited ( object sender, WalkerEventArgs e ) : void
InvokeInterfaceDeclarationVisited ( object sender, WalkerEventArgs e ) : void
NamespaceASTWalker ( CSharpSyntaxNode node, Rosetta.Translation.ModuleTranslationUnit module, Microsoft.CodeAnalysis.SemanticModel semanticModel ) : System

Initializes a new instance of the NamespaceASTWalker class.

Private Methods

Méthode Description
CreateWalkingContext ( ) : ASTWalkerContext

Method Details

Create() public static méthode

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

InvokeClassDeclarationVisited() protected méthode

protected InvokeClassDeclarationVisited ( object sender, WalkerEventArgs e ) : void
sender object
e WalkerEventArgs
Résultat void

InvokeEnumDeclarationVisited() protected méthode

protected InvokeEnumDeclarationVisited ( object sender, WalkerEventArgs e ) : void
sender object
e WalkerEventArgs
Résultat void

InvokeInterfaceDeclarationVisited() protected méthode

protected InvokeInterfaceDeclarationVisited ( object sender, WalkerEventArgs e ) : void
sender object
e WalkerEventArgs
Résultat void

NamespaceASTWalker() protected méthode

Initializes a new instance of the NamespaceASTWalker class.
protected NamespaceASTWalker ( CSharpSyntaxNode node, Rosetta.Translation.ModuleTranslationUnit module, Microsoft.CodeAnalysis.SemanticModel semanticModel ) : System
node CSharpSyntaxNode
module Rosetta.Translation.ModuleTranslationUnit
semanticModel Microsoft.CodeAnalysis.SemanticModel The semantic model.
Résultat System

NamespaceASTWalker() public méthode

Copy initializes a new instance of the NamespaceASTWalker class.
For testability.
public NamespaceASTWalker ( NamespaceASTWalker other ) : System
other NamespaceASTWalker
Résultat System

VisitClassDeclaration() public méthode

This will cause an AST walker to be created, thus we don't need to go further deeper in the tree by visiting the node.
public VisitClassDeclaration ( Microsoft.CodeAnalysis.CSharp.Syntax.ClassDeclarationSyntax node ) : void
node Microsoft.CodeAnalysis.CSharp.Syntax.ClassDeclarationSyntax
Résultat void

VisitInterfaceDeclaration() public méthode

public VisitInterfaceDeclaration ( InterfaceDeclarationSyntax node ) : void
node InterfaceDeclarationSyntax
Résultat void

Walk() public méthode

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

Property Details

module protected_oe property

protected ModuleTranslationUnit,Rosetta.Translation module
Résultat Rosetta.Translation.ModuleTranslationUnit