C# Класс Rosetta.AST.ConstructorASTWalker

Walks a constructor AST node. TODO: Unify logic with method AST walker.
Наследование: ASTWalker, IASTWalker
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
constructorDeclaration Rosetta.Translation.ConstructorDeclarationTranslationUnit

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
ConstructorASTWalker ( CSharpSyntaxNode node, ConstructorDeclarationTranslationUnit constructorDeclaration, Microsoft.CodeAnalysis.SemanticModel semanticModel ) : System

Initializes a new instance of the ConstructorASTWalker class.

Приватные методы

Метод Описание
InvokeStatementVisited ( object sender, WalkerEventArgs e ) : void
VisitStatement ( StatementSyntax node ) : void

Описание методов

ConstructorASTWalker() защищенный Метод

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.
Результат System

ConstructorASTWalker() публичный Метод

Copy initializes a new instance of the ConstructorASTWalker class.
For testability.
public ConstructorASTWalker ( ConstructorASTWalker other ) : System
other ConstructorASTWalker
Результат System

Create() публичный статический Метод

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.
Результат ConstructorASTWalker

VisitBreakStatement() публичный Метод

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
Результат void

VisitCheckedStatement() публичный Метод

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
Результат void

VisitContinueStatement() публичный Метод

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
Результат void

VisitDoStatement() публичный Метод

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
Результат void

VisitEmptyStatement() публичный Метод

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
Результат void

VisitExpressionStatement() публичный Метод

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
Результат void

VisitFixedStatement() публичный Метод

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
Результат void

VisitForEachStatement() публичный Метод

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
Результат void

VisitForStatement() публичный Метод

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
Результат void

VisitGotoStatement() публичный Метод

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
Результат void

VisitIfStatement() публичный Метод

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
Результат void

VisitLabeledStatement() публичный Метод

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
Результат void

VisitLocalDeclarationStatement() публичный Метод

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
Результат void

VisitLockStatement() публичный Метод

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
Результат void

VisitReturnStatement() публичный Метод

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
Результат void

VisitSwitchStatement() публичный Метод

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
Результат void

VisitThrowStatement() публичный Метод

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
Результат void

VisitTryStatement() публичный Метод

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
Результат void

VisitUnsafeStatement() публичный Метод

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
Результат void

VisitUsingStatement() публичный Метод

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
Результат void

VisitWhileStatement() публичный Метод

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
Результат void

VisitYieldStatement() публичный Метод

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
Результат void

Walk() публичный Метод

Walk the whole tree starting from specified CSharpSyntaxNode and build the translation unit tree necessary for generating TypeScript output.
public Walk ( ) : ITranslationUnit
Результат ITranslationUnit

Описание свойств

constructorDeclaration защищенное свойство

protected ConstructorDeclarationTranslationUnit,Rosetta.Translation constructorDeclaration
Результат Rosetta.Translation.ConstructorDeclarationTranslationUnit