C# 클래스 Rosetta.AST.ProgramASTWalker

Walks a program AST node.
상속: ASTWalker, IASTWalker
파일 보기 프로젝트 열기: andry-tino/Rosetta 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
program Rosetta.Translation.ProgramTranslationUnit

공개 메소드들

메소드 설명
Create ( CSharpSyntaxNode node, ASTWalkerContext context = null, Microsoft.CodeAnalysis.SemanticModel semanticModel = null ) : ProgramASTWalker

Factory method for class ProgramASTWalker.

ProgramASTWalker ( ProgramASTWalker other ) : System

Copy initializes a new instance of the ProgramASTWalker 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

VisitNamespaceDeclaration ( Microsoft.CodeAnalysis.CSharp.Syntax.NamespaceDeclarationSyntax 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.

Walk ( ) : ITranslationUnit

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

보호된 메소드들

메소드 설명
InvokeClassDeclarationVisited ( object sender, WalkerEventArgs e ) : void
InvokeEnumDeclarationVisited ( object sender, WalkerEventArgs e ) : void
InvokeInterfaceDeclarationVisited ( object sender, WalkerEventArgs e ) : void
InvokeNamespaceDeclarationVisited ( object sender, WalkerEventArgs e ) : void
ProgramASTWalker ( CSharpSyntaxNode node, ProgramTranslationUnit program, Microsoft.CodeAnalysis.SemanticModel semanticModel ) : System

Initializes a new instance of the ProgramASTWalker class.

비공개 메소드들

메소드 설명
CreateWalkingContext ( ) : ASTWalkerContext

메소드 상세

Create() 공개 정적인 메소드

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

InvokeClassDeclarationVisited() 보호된 메소드

protected InvokeClassDeclarationVisited ( object sender, WalkerEventArgs e ) : void
sender object
e WalkerEventArgs
리턴 void

InvokeEnumDeclarationVisited() 보호된 메소드

protected InvokeEnumDeclarationVisited ( object sender, WalkerEventArgs e ) : void
sender object
e WalkerEventArgs
리턴 void

InvokeInterfaceDeclarationVisited() 보호된 메소드

protected InvokeInterfaceDeclarationVisited ( object sender, WalkerEventArgs e ) : void
sender object
e WalkerEventArgs
리턴 void

InvokeNamespaceDeclarationVisited() 보호된 메소드

protected InvokeNamespaceDeclarationVisited ( object sender, WalkerEventArgs e ) : void
sender object
e WalkerEventArgs
리턴 void

ProgramASTWalker() 보호된 메소드

Initializes a new instance of the ProgramASTWalker class.
protected ProgramASTWalker ( CSharpSyntaxNode node, ProgramTranslationUnit program, Microsoft.CodeAnalysis.SemanticModel semanticModel ) : System
node CSharpSyntaxNode
program Rosetta.Translation.ProgramTranslationUnit
semanticModel Microsoft.CodeAnalysis.SemanticModel The semantic model.
리턴 System

ProgramASTWalker() 공개 메소드

Copy initializes a new instance of the ProgramASTWalker class.
For testability.
public ProgramASTWalker ( ProgramASTWalker other ) : System
other ProgramASTWalker
리턴 System

VisitClassDeclaration() 공개 메소드

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
리턴 void

VisitInterfaceDeclaration() 공개 메소드

public VisitInterfaceDeclaration ( InterfaceDeclarationSyntax node ) : void
node InterfaceDeclarationSyntax
리턴 void

VisitNamespaceDeclaration() 공개 메소드

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 VisitNamespaceDeclaration ( Microsoft.CodeAnalysis.CSharp.Syntax.NamespaceDeclarationSyntax node ) : void
node Microsoft.CodeAnalysis.CSharp.Syntax.NamespaceDeclarationSyntax
리턴 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

프로퍼티 상세

program 보호되어 있는 프로퍼티

protected ProgramTranslationUnit,Rosetta.Translation program
리턴 Rosetta.Translation.ProgramTranslationUnit