C# Class Rosetta.ScriptSharp.Definition.AST.NamespaceDefinitionASTWalker

Walks a namespace AST node.
Inheritance: Rosetta.AST.NamespaceASTWalker
Datei anzeigen Open project: andry-tino/Rosetta Class Usage Examples

Private Properties

Property Type Description
ApplyContextDependenciesToTranslationUnit void
CreateWalkingContext Rosetta.AST.ASTWalkerContext

Public Methods

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

Factory method for class NamespaceDefinitionASTWalker.

NamespaceDefinitionASTWalker ( NamespaceDefinitionASTWalker other ) : System

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

VisitEnumDeclaration ( EnumDeclarationSyntax node ) : void

VisitInterfaceDeclaration ( InterfaceDeclarationSyntax node ) : void

Protected Methods

Method Description
NamespaceDefinitionASTWalker ( CSharpSyntaxNode node, Rosetta.Translation.ModuleTranslationUnit module, Microsoft.CodeAnalysis.SemanticModel semanticModel ) : System

Initializes a new instance of the NamespaceDefinitionASTWalker class.

OnContextChanged ( ) : void

Private Methods

Method Description
ApplyContextDependenciesToTranslationUnit ( ) : void
CreateWalkingContext ( ) : ASTWalkerContext

Method Details

Create() public static method

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

NamespaceDefinitionASTWalker() protected method

Initializes a new instance of the NamespaceDefinitionASTWalker class.
protected NamespaceDefinitionASTWalker ( CSharpSyntaxNode node, Rosetta.Translation.ModuleTranslationUnit module, Microsoft.CodeAnalysis.SemanticModel semanticModel ) : System
node CSharpSyntaxNode
module Rosetta.Translation.ModuleTranslationUnit
semanticModel Microsoft.CodeAnalysis.SemanticModel The semantic model.
return System

NamespaceDefinitionASTWalker() public method

Copy initializes a new instance of the NamespaceDefinitionASTWalker class.
For testability.
public NamespaceDefinitionASTWalker ( NamespaceDefinitionASTWalker other ) : System
other NamespaceDefinitionASTWalker
return System

OnContextChanged() protected method

protected OnContextChanged ( ) : void
return void

VisitClassDeclaration() public method

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
return void

VisitEnumDeclaration() public method

public VisitEnumDeclaration ( EnumDeclarationSyntax node ) : void
node EnumDeclarationSyntax
return void

VisitInterfaceDeclaration() public method

public VisitInterfaceDeclaration ( InterfaceDeclarationSyntax node ) : void
node InterfaceDeclarationSyntax
return void