C# Class Rosetta.ScriptSharp.Definition.AST.Factories.ClassDefinitionTranslationUnitFactory

Generic helper.
Inheritance: Rosetta.AST.Factories.ClassDeclarationTranslationUnitFactory
Datei anzeigen Open project: andry-tino/Rosetta Class Usage Examples

Public Methods

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

Initializes a new instance of the ClassDefinitionTranslationUnitFactory class.

ClassDefinitionTranslationUnitFactory ( ClassDefinitionTranslationUnitFactory other ) : System

Copy initializes a new instance of the ClassDefinitionTranslationUnitFactory class.

For testability.

Protected Methods

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

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

Creates the translation unit.

Must return a type inheriting from ClassDeclarationTranslationUnit.

Method Details

ClassDefinitionTranslationUnitFactory() public method

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

ClassDefinitionTranslationUnitFactory() public method

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

CreateHelper() protected method

protected CreateHelper ( Microsoft.CodeAnalysis.CSharp.Syntax.ClassDeclarationSyntax node, Microsoft.CodeAnalysis.SemanticModel semanticModel ) : Rosetta.AST.Helpers.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