C# Class 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.
Inheritance: Rosetta.AST.ClassASTWalker
Afficher le fichier Open project: andry-tino/Rosetta Class Usage Examples

Protected Properties

Свойство Type Description
generateTranslationUniOnProtectedMembers bool

Private Properties

Свойство Type Description
ApplyContextDependenciesToTranslationUnit void

Méthodes publiques

Méthode Description
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

Méthodes protégées

Méthode Description
ClassDefinitionASTWalker ( CSharpSyntaxNode node, ClassDefinitionTranslationUnit classDefinition, Microsoft.CodeAnalysis.SemanticModel semanticModel ) : System

Initializes a new instance of the ClassDefinitionASTWalker class.

OnContextChanged ( ) : void

Private Methods

Méthode Description
ApplyContextDependenciesToTranslationUnit ( ) : void

Method Details

ClassDefinitionASTWalker() protected méthode

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.
Résultat System

ClassDefinitionASTWalker() public méthode

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

Create() public static méthode

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.
Résultat ClassDefinitionASTWalker

OnContextChanged() protected méthode

protected OnContextChanged ( ) : void
Résultat void

VisitConstructorDeclaration() public méthode

public VisitConstructorDeclaration ( Microsoft.CodeAnalysis.CSharp.Syntax.ConstructorDeclarationSyntax node ) : void
node Microsoft.CodeAnalysis.CSharp.Syntax.ConstructorDeclarationSyntax
Résultat void

VisitFieldDeclaration() public méthode

public VisitFieldDeclaration ( Microsoft.CodeAnalysis.CSharp.Syntax.FieldDeclarationSyntax node ) : void
node Microsoft.CodeAnalysis.CSharp.Syntax.FieldDeclarationSyntax
Résultat void

VisitMethodDeclaration() public méthode

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
Résultat void

VisitPropertyDeclaration() public méthode

public VisitPropertyDeclaration ( Microsoft.CodeAnalysis.CSharp.Syntax.PropertyDeclarationSyntax node ) : void
node Microsoft.CodeAnalysis.CSharp.Syntax.PropertyDeclarationSyntax
Résultat void

Property Details

generateTranslationUniOnProtectedMembers protected_oe property

protected bool generateTranslationUniOnProtectedMembers
Résultat bool