C# 클래스 Rosetta.AST.InterfaceASTWalker

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

보호된 프로퍼티들

프로퍼티 타입 설명
interfaceDeclaration Rosetta.Translation.InterfaceDeclarationTranslationUnit

공개 메소드들

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

Factory method for class InterfaceASTWalker.

InterfaceASTWalker ( InterfaceASTWalker other ) : System

Copy initializes a new instance of the InterfaceASTWalker class.

For testability.

VisitMethodDeclaration ( Microsoft.CodeAnalysis.CSharp.Syntax.MethodDeclarationSyntax node ) : void

We don't need to go further deeper in the tree by visiting the node.

VisitPropertyDeclaration ( Microsoft.CodeAnalysis.CSharp.Syntax.PropertyDeclarationSyntax node ) : void

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.

보호된 메소드들

메소드 설명
InterfaceASTWalker ( CSharpSyntaxNode node, InterfaceDeclarationTranslationUnit interfaceDeclaration, Microsoft.CodeAnalysis.SemanticModel semanticModel ) : System

Initializes a new instance of the InterfaceASTWalker class.

비공개 메소드들

메소드 설명
InvokeMethodDeclarationVisited ( object sender, WalkerEventArgs e ) : void
InvokePropertyDeclarationVisited ( object sender, WalkerEventArgs e ) : void

메소드 상세

Create() 공개 정적인 메소드

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

InterfaceASTWalker() 보호된 메소드

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

InterfaceASTWalker() 공개 메소드

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

VisitMethodDeclaration() 공개 메소드

We don't need to go further deeper in the tree by visiting the node.
public VisitMethodDeclaration ( Microsoft.CodeAnalysis.CSharp.Syntax.MethodDeclarationSyntax node ) : void
node Microsoft.CodeAnalysis.CSharp.Syntax.MethodDeclarationSyntax
리턴 void

VisitPropertyDeclaration() 공개 메소드

We don't need to go further deeper in the tree by visiting the node.
public VisitPropertyDeclaration ( Microsoft.CodeAnalysis.CSharp.Syntax.PropertyDeclarationSyntax node ) : void
node Microsoft.CodeAnalysis.CSharp.Syntax.PropertyDeclarationSyntax
리턴 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

프로퍼티 상세

interfaceDeclaration 보호되어 있는 프로퍼티

protected InterfaceDeclarationTranslationUnit,Rosetta.Translation interfaceDeclaration
리턴 Rosetta.Translation.InterfaceDeclarationTranslationUnit