C# Class Rosetta.AST.Factories.ClassDeclarationTranslationUnitFactory

Factory for ClassDeclarationTranslationUnit.
Inheritance: TranslationUnitFactory, ITranslationUnitFactory
Mostrar archivo Open project: andry-tino/Rosetta Class Usage Examples

Public Methods

Method Description
ClassDeclarationTranslationUnitFactory ( CSharpSyntaxNode node, Microsoft.CodeAnalysis.SemanticModel semanticModel = null ) : System

Initializes a new instance of the ClassDeclarationTranslationUnitFactory class.

ClassDeclarationTranslationUnitFactory ( ClassDeclarationTranslationUnitFactory other ) : System

Copy initializes a new instance of the ClassDeclarationTranslationUnitFactory class.

For testability.

Create ( ) : ITranslationUnit

Creates a MethodDeclarationTranslationUnit.

Protected Methods

Method Description
CreateHelper ( Microsoft.CodeAnalysis.CSharp.Syntax.ClassDeclarationSyntax node, Microsoft.CodeAnalysis.SemanticModel semanticModel ) : ClassDeclaration

CreateTranslationUnit ( VisibilityToken visibility, ITranslationUnit name, ITranslationUnit baseClassName ) : ITranslationUnit

Creates the translation unit.

Must return a type inheriting from ClassDeclarationTranslationUnit.

Method Details

ClassDeclarationTranslationUnitFactory() public method

Initializes a new instance of the ClassDeclarationTranslationUnitFactory class.
public ClassDeclarationTranslationUnitFactory ( CSharpSyntaxNode node, Microsoft.CodeAnalysis.SemanticModel semanticModel = null ) : System
node CSharpSyntaxNode
semanticModel Microsoft.CodeAnalysis.SemanticModel The semantic model
return System

ClassDeclarationTranslationUnitFactory() public method

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

Create() public method

Creates a MethodDeclarationTranslationUnit.
public Create ( ) : ITranslationUnit
return ITranslationUnit

CreateHelper() protected method

protected CreateHelper ( Microsoft.CodeAnalysis.CSharp.Syntax.ClassDeclarationSyntax node, Microsoft.CodeAnalysis.SemanticModel semanticModel ) : ClassDeclaration
node Microsoft.CodeAnalysis.CSharp.Syntax.ClassDeclarationSyntax
semanticModel Microsoft.CodeAnalysis.SemanticModel
return Rosetta.AST.Helpers.ClassDeclaration

CreateTranslationUnit() protected method

Creates the translation unit.
Must return a type inheriting from ClassDeclarationTranslationUnit.
protected CreateTranslationUnit ( VisibilityToken visibility, ITranslationUnit name, ITranslationUnit baseClassName ) : ITranslationUnit
visibility VisibilityToken
name ITranslationUnit
baseClassName ITranslationUnit
return ITranslationUnit