C# Class Rosetta.AST.PropertyASTWalker

Walks a property AST node.
Inheritance: ASTWalker, IASTWalker
Mostrar archivo Open project: andry-tino/Rosetta Class Usage Examples

Protected Properties

Property Type Description
propertyDeclaration Rosetta.Translation.PropertyDeclarationTranslationUnit

Public Methods

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

Factory method for class PropertyASTWalker.

PropertyASTWalker ( PropertyASTWalker other ) : System

Copy initializes a new instance of the PropertyASTWalker class.

For testability.

Walk ( ) : ITranslationUnit

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

Protected Methods

Method Description
PropertyASTWalker ( CSharpSyntaxNode node, PropertyDeclarationTranslationUnit propertyDeclaration, Microsoft.CodeAnalysis.SemanticModel semanticModel ) : System

Initializes a new instance of the PropertyASTWalker class.

Private Methods

Method Description
InvokeGetAccessorVisited ( object sender, WalkerEventArgs e ) : void
InvokeSetAccessorVisited ( object sender, WalkerEventArgs e ) : void
VisitNode ( Microsoft.CodeAnalysis.CSharp.Syntax.PropertyDeclarationSyntax node ) : void

Method Details

Create() public static method

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

PropertyASTWalker() protected method

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

PropertyASTWalker() public method

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

Walk() public method

Walk the whole tree starting from specified CSharpSyntaxNode and build the translation unit tree necessary for generating TypeScript output.
public Walk ( ) : ITranslationUnit
return ITranslationUnit

Property Details

propertyDeclaration protected_oe property

protected PropertyDeclarationTranslationUnit,Rosetta.Translation propertyDeclaration
return Rosetta.Translation.PropertyDeclarationTranslationUnit