Method | Description | |
---|---|---|
AddFiles ( ) : |
add new files to the list of files for this source code
|
|
AddSource ( string content ) : |
adds the content of a file to this source code
|
|
Class ( string className ) : Microsoft.CodeAnalysis.CSharp.Syntax.ClassDeclarationSyntax | ||
Compile ( ) : void |
creates the semantic model out of all the source code that was added to this instance
|
|
CompileFromAssemblyOfType ( |
||
CreateClass ( string className ) : ClassWithSourceCode | ||
GetTypeByName ( string className ) : ITypeSymbol | ||
MixinInClass ( string className, string mixin ) : Microsoft.CodeAnalysis.CSharp.Syntax.FieldDeclarationSyntax | ||
New ( ) : |
fluent API, resets the file list that were used to generate the source code
|
|
SourceCode ( ) : Microsoft.CodeAnalysis |
Method | Description | |
---|---|---|
CreateSemanticModelFromSource ( IEnumerable |
public AddSource ( string content ) : |
||
content | string | |
return |
public Class ( string className ) : Microsoft.CodeAnalysis.CSharp.Syntax.ClassDeclarationSyntax | ||
className | string | |
return | Microsoft.CodeAnalysis.CSharp.Syntax.ClassDeclarationSyntax |
public CompileFromAssemblyOfType ( |
||
externalType | ||
return | void |
public CreateClass ( string className ) : ClassWithSourceCode | ||
className | string | |
return | ClassWithSourceCode |
public GetTypeByName ( string className ) : ITypeSymbol | ||
className | string | |
return | ITypeSymbol |
public MixinInClass ( string className, string mixin ) : Microsoft.CodeAnalysis.CSharp.Syntax.FieldDeclarationSyntax | ||
className | string | |
mixin | string | |
return | Microsoft.CodeAnalysis.CSharp.Syntax.FieldDeclarationSyntax |
public SourceCode ( ) : Microsoft.CodeAnalysis | ||
return | Microsoft.CodeAnalysis |