C# 클래스 Rosetta.ScriptSharp.Definition.AST.ClassDefinitionASTWalker

Walks a class AST node but only those areas relevant to definition. TODO: Move to a separate project, this is specific to ScriptSharp.
상속: Rosetta.AST.ClassASTWalker
파일 보기 프로젝트 열기: andry-tino/Rosetta 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
generateTranslationUniOnProtectedMembers bool

Private Properties

프로퍼티 타입 설명
ApplyContextDependenciesToTranslationUnit void

공개 메소드들

메소드 설명
ClassDefinitionASTWalker ( ClassDefinitionASTWalker other ) : System

Copy initializes a new instance of the ClassDefinitionASTWalker class.

For testability.

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

Factory method for class ClassASTWalker.

VisitConstructorDeclaration ( Microsoft.CodeAnalysis.CSharp.Syntax.ConstructorDeclarationSyntax node ) : void

VisitFieldDeclaration ( Microsoft.CodeAnalysis.CSharp.Syntax.FieldDeclarationSyntax node ) : void

VisitMethodDeclaration ( Microsoft.CodeAnalysis.CSharp.Syntax.MethodDeclarationSyntax 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.

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

보호된 메소드들

메소드 설명
ClassDefinitionASTWalker ( CSharpSyntaxNode node, ClassDefinitionTranslationUnit classDefinition, Microsoft.CodeAnalysis.SemanticModel semanticModel ) : System

Initializes a new instance of the ClassDefinitionASTWalker class.

OnContextChanged ( ) : void

비공개 메소드들

메소드 설명
ApplyContextDependenciesToTranslationUnit ( ) : void

메소드 상세

ClassDefinitionASTWalker() 보호된 메소드

Initializes a new instance of the ClassDefinitionASTWalker class.
protected ClassDefinitionASTWalker ( CSharpSyntaxNode node, ClassDefinitionTranslationUnit classDefinition, Microsoft.CodeAnalysis.SemanticModel semanticModel ) : System
node CSharpSyntaxNode
classDefinition Rosetta.ScriptSharp.Definition.Translation.ClassDefinitionTranslationUnit
semanticModel Microsoft.CodeAnalysis.SemanticModel The semantic model.
리턴 System

ClassDefinitionASTWalker() 공개 메소드

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

Create() 공개 정적인 메소드

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

OnContextChanged() 보호된 메소드

protected OnContextChanged ( ) : void
리턴 void

VisitConstructorDeclaration() 공개 메소드

public VisitConstructorDeclaration ( Microsoft.CodeAnalysis.CSharp.Syntax.ConstructorDeclarationSyntax node ) : void
node Microsoft.CodeAnalysis.CSharp.Syntax.ConstructorDeclarationSyntax
리턴 void

VisitFieldDeclaration() 공개 메소드

public VisitFieldDeclaration ( Microsoft.CodeAnalysis.CSharp.Syntax.FieldDeclarationSyntax node ) : void
node Microsoft.CodeAnalysis.CSharp.Syntax.FieldDeclarationSyntax
리턴 void

VisitMethodDeclaration() 공개 메소드

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

VisitPropertyDeclaration() 공개 메소드

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

프로퍼티 상세

generateTranslationUniOnProtectedMembers 보호되어 있는 프로퍼티

protected bool generateTranslationUniOnProtectedMembers
리턴 bool