C# Class Rosetta.AST.ConstructorASTWalker

Walks a constructor AST node. TODO: Unify logic with method AST walker.
Inheritance: ASTWalker, IASTWalker
Afficher le fichier Open project: andry-tino/Rosetta Class Usage Examples

Protected Properties

Свойство Type Description
constructorDeclaration Rosetta.Translation.ConstructorDeclarationTranslationUnit

Méthodes publiques

Méthode Description
ConstructorASTWalker ( ConstructorASTWalker other ) : System

Copy initializes a new instance of the ConstructorASTWalker class.

For testability.

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

Factory method for class ConstructorASTWalker.

VisitBreakStatement ( BreakStatementSyntax node ) : void

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

VisitCheckedStatement ( CheckedStatementSyntax node ) : void

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

VisitContinueStatement ( ContinueStatementSyntax node ) : void

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

VisitDoStatement ( DoStatementSyntax node ) : void

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

VisitEmptyStatement ( EmptyStatementSyntax node ) : void

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

VisitExpressionStatement ( Microsoft.CodeAnalysis.CSharp.Syntax.ExpressionStatementSyntax node ) : void

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

VisitFixedStatement ( Microsoft.CodeAnalysis.CSharp.Syntax.FixedStatementSyntax node ) : void

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

VisitForEachStatement ( Microsoft.CodeAnalysis.CSharp.Syntax.ForEachStatementSyntax node ) : void

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

VisitForStatement ( Microsoft.CodeAnalysis.CSharp.Syntax.ForStatementSyntax node ) : void

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

VisitGotoStatement ( GotoStatementSyntax node ) : void

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

VisitIfStatement ( IfStatementSyntax node ) : void

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

VisitLabeledStatement ( LabeledStatementSyntax node ) : void

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

VisitLocalDeclarationStatement ( Microsoft.CodeAnalysis.CSharp.Syntax.LocalDeclarationStatementSyntax node ) : void

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

VisitLockStatement ( LockStatementSyntax node ) : void

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

VisitReturnStatement ( Microsoft.CodeAnalysis.CSharp.Syntax.ReturnStatementSyntax node ) : void

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

VisitSwitchStatement ( SwitchStatementSyntax node ) : void

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

VisitThrowStatement ( ThrowStatementSyntax node ) : void

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

VisitTryStatement ( TryStatementSyntax node ) : void

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

VisitUnsafeStatement ( UnsafeStatementSyntax node ) : void

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

VisitUsingStatement ( UsingStatementSyntax node ) : void

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

VisitWhileStatement ( WhileStatementSyntax node ) : void

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

VisitYieldStatement ( YieldStatementSyntax node ) : void

Statements will cause an AST walker to be created, thus 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.

Méthodes protégées

Méthode Description
ConstructorASTWalker ( CSharpSyntaxNode node, ConstructorDeclarationTranslationUnit constructorDeclaration, Microsoft.CodeAnalysis.SemanticModel semanticModel ) : System

Initializes a new instance of the ConstructorASTWalker class.

Private Methods

Méthode Description
InvokeStatementVisited ( object sender, WalkerEventArgs e ) : void
VisitStatement ( StatementSyntax node ) : void

Method Details

ConstructorASTWalker() protected méthode

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

ConstructorASTWalker() public méthode

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

Create() public static méthode

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

VisitBreakStatement() public méthode

Statements 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 VisitBreakStatement ( BreakStatementSyntax node ) : void
node BreakStatementSyntax
Résultat void

VisitCheckedStatement() public méthode

Statements 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 VisitCheckedStatement ( CheckedStatementSyntax node ) : void
node CheckedStatementSyntax
Résultat void

VisitContinueStatement() public méthode

Statements 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 VisitContinueStatement ( ContinueStatementSyntax node ) : void
node ContinueStatementSyntax
Résultat void

VisitDoStatement() public méthode

Statements 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 VisitDoStatement ( DoStatementSyntax node ) : void
node DoStatementSyntax
Résultat void

VisitEmptyStatement() public méthode

Statements 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 VisitEmptyStatement ( EmptyStatementSyntax node ) : void
node EmptyStatementSyntax
Résultat void

VisitExpressionStatement() public méthode

Statements 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 VisitExpressionStatement ( Microsoft.CodeAnalysis.CSharp.Syntax.ExpressionStatementSyntax node ) : void
node Microsoft.CodeAnalysis.CSharp.Syntax.ExpressionStatementSyntax
Résultat void

VisitFixedStatement() public méthode

Statements 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 VisitFixedStatement ( Microsoft.CodeAnalysis.CSharp.Syntax.FixedStatementSyntax node ) : void
node Microsoft.CodeAnalysis.CSharp.Syntax.FixedStatementSyntax
Résultat void

VisitForEachStatement() public méthode

Statements 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 VisitForEachStatement ( Microsoft.CodeAnalysis.CSharp.Syntax.ForEachStatementSyntax node ) : void
node Microsoft.CodeAnalysis.CSharp.Syntax.ForEachStatementSyntax
Résultat void

VisitForStatement() public méthode

Statements 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 VisitForStatement ( Microsoft.CodeAnalysis.CSharp.Syntax.ForStatementSyntax node ) : void
node Microsoft.CodeAnalysis.CSharp.Syntax.ForStatementSyntax
Résultat void

VisitGotoStatement() public méthode

Statements 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 VisitGotoStatement ( GotoStatementSyntax node ) : void
node GotoStatementSyntax
Résultat void

VisitIfStatement() public méthode

Statements 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 VisitIfStatement ( IfStatementSyntax node ) : void
node IfStatementSyntax
Résultat void

VisitLabeledStatement() public méthode

Statements 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 VisitLabeledStatement ( LabeledStatementSyntax node ) : void
node LabeledStatementSyntax
Résultat void

VisitLocalDeclarationStatement() public méthode

Statements 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 VisitLocalDeclarationStatement ( Microsoft.CodeAnalysis.CSharp.Syntax.LocalDeclarationStatementSyntax node ) : void
node Microsoft.CodeAnalysis.CSharp.Syntax.LocalDeclarationStatementSyntax
Résultat void

VisitLockStatement() public méthode

Statements 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 VisitLockStatement ( LockStatementSyntax node ) : void
node LockStatementSyntax
Résultat void

VisitReturnStatement() public méthode

Statements 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 VisitReturnStatement ( Microsoft.CodeAnalysis.CSharp.Syntax.ReturnStatementSyntax node ) : void
node Microsoft.CodeAnalysis.CSharp.Syntax.ReturnStatementSyntax
Résultat void

VisitSwitchStatement() public méthode

Statements 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 VisitSwitchStatement ( SwitchStatementSyntax node ) : void
node SwitchStatementSyntax
Résultat void

VisitThrowStatement() public méthode

Statements 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 VisitThrowStatement ( ThrowStatementSyntax node ) : void
node ThrowStatementSyntax
Résultat void

VisitTryStatement() public méthode

Statements 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 VisitTryStatement ( TryStatementSyntax node ) : void
node TryStatementSyntax
Résultat void

VisitUnsafeStatement() public méthode

Statements 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 VisitUnsafeStatement ( UnsafeStatementSyntax node ) : void
node UnsafeStatementSyntax
Résultat void

VisitUsingStatement() public méthode

Statements 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 VisitUsingStatement ( UsingStatementSyntax node ) : void
node UsingStatementSyntax
Résultat void

VisitWhileStatement() public méthode

Statements 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 VisitWhileStatement ( WhileStatementSyntax node ) : void
node WhileStatementSyntax
Résultat void

VisitYieldStatement() public méthode

Statements 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 VisitYieldStatement ( YieldStatementSyntax node ) : void
node YieldStatementSyntax
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

constructorDeclaration protected_oe property

protected ConstructorDeclarationTranslationUnit,Rosetta.Translation constructorDeclaration
Résultat Rosetta.Translation.ConstructorDeclarationTranslationUnit