C# Class MixinRefactoring.ClassFactory

can create class objects either from plain source code or from symbol information. Even when source code is read, symbol information is needed to resolve the base class. Furhter base classes will be resolved recursivly.
Datei anzeigen Open project: pgenfer/mixinSharp Class Usage Examples

Public Methods

Method Description
ClassFactory ( Microsoft.CodeAnalysis.SemanticModel semantic ) : Microsoft.CodeAnalysis
Create ( Microsoft.CodeAnalysis.CSharp.Syntax.ClassDeclarationSyntax classDeclaration ) : ClassWithSourceCode
Create ( ITypeSymbol classSymbol ) : ClassWithTypeSymbol

Method Details

ClassFactory() public method

public ClassFactory ( Microsoft.CodeAnalysis.SemanticModel semantic ) : Microsoft.CodeAnalysis
semantic Microsoft.CodeAnalysis.SemanticModel
return Microsoft.CodeAnalysis

Create() public method

public Create ( Microsoft.CodeAnalysis.CSharp.Syntax.ClassDeclarationSyntax classDeclaration ) : ClassWithSourceCode
classDeclaration Microsoft.CodeAnalysis.CSharp.Syntax.ClassDeclarationSyntax
return ClassWithSourceCode

Create() public method

public Create ( ITypeSymbol classSymbol ) : ClassWithTypeSymbol
classSymbol ITypeSymbol
return ClassWithTypeSymbol