C# Class Rosetta.AST.BlockASTWalker

Walks a block AST node. TODO: Attention, MethodASTWalker has great part of the logic is in common.
Inheritance: ASTWalker, IASTWalker
Afficher le fichier Open project: andry-tino/Rosetta Class Usage Examples

Protected Properties

Свойство Type Description
statementsGroup Rosetta.Translation.StatementsGroupTranslationUnit

Méthodes publiques

Méthode Description
BlockASTWalker ( BlockASTWalker other ) : System

Copy initializes a new instance of the BlockASTWalker class.

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

Factory method for class BlockASTWalker.

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.

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
BlockASTWalker ( CSharpSyntaxNode node, StatementsGroupTranslationUnit statementsGroup, Microsoft.CodeAnalysis.SemanticModel semanticModel ) : System

Initializes a new instance of the BlockASTWalker class.

Private Methods

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

Method Details

BlockASTWalker() public méthode

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

BlockASTWalker() protected méthode

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

Create() public static méthode

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

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

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

statementsGroup protected_oe property

protected StatementsGroupTranslationUnit,Rosetta.Translation statementsGroup
Résultat Rosetta.Translation.StatementsGroupTranslationUnit