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.
Afficher le fichier Open project: pgenfer/mixinSharp Class Usage Examples

Méthodes publiques

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

Method Details

ClassFactory() public méthode

public ClassFactory ( Microsoft.CodeAnalysis.SemanticModel semantic ) : Microsoft.CodeAnalysis
semantic Microsoft.CodeAnalysis.SemanticModel
Résultat Microsoft.CodeAnalysis

Create() public méthode

public Create ( Microsoft.CodeAnalysis.CSharp.Syntax.ClassDeclarationSyntax classDeclaration ) : ClassWithSourceCode
classDeclaration Microsoft.CodeAnalysis.CSharp.Syntax.ClassDeclarationSyntax
Résultat ClassWithSourceCode

Create() public méthode

public Create ( ITypeSymbol classSymbol ) : ClassWithTypeSymbol
classSymbol ITypeSymbol
Résultat ClassWithTypeSymbol