C# Class Shaolinq.AsyncRewriter.Rewriter

显示文件 Open project: tumtumtum/Shaolinq Class Usage Examples

Public Methods

Method Description
Rewrite ( Microsoft.CodeAnalysis.SyntaxTree syntaxTrees, Microsoft.CodeAnalysis.CSharp.CSharpCompilation compilationNode, string excludeTypes = null ) : IEnumerable
RewriteAndMerge ( string paths, string additionalAssemblyNames = null, string excludeTypes = null ) : string
Rewriter ( IAsyncRewriterLogger log = null ) : System

Private Methods

Method Description
AmendUsings ( Microsoft.CodeAnalysis.CSharp.Syntax.NamespaceDeclarationSyntax nameSpace, SyntaxList usings ) : Microsoft.CodeAnalysis.CSharp.Syntax.NamespaceDeclarationSyntax
CorrectAsyncCalls ( Compilation compilationNode, Microsoft.CodeAnalysis.SyntaxTree syntaxTrees, string excludeTypes ) : IEnumerable
GetAllMembers ( ITypeSymbol symbol, bool includeParents = true ) : IEnumerable
GetMethods ( Microsoft.CodeAnalysis.SemanticModel semanticModel, ITypeSymbol symbol, string name, Microsoft.CodeAnalysis.CSharp.Syntax.MethodDeclarationSyntax method, Microsoft.CodeAnalysis.CSharp.Syntax.MethodDeclarationSyntax originalMethod ) : IEnumerable
GetNamespacesAndParents ( string nameSpace ) : IEnumerable
GetParameterTypeComparisonKey ( ITypeSymbol symbol, Microsoft.CodeAnalysis.CSharp.Syntax.MethodDeclarationSyntax method = null, Microsoft.CodeAnalysis.CSharp.Syntax.TypeSyntax typeSyntax = null ) : object
RewriteAndMerge ( Microsoft.CodeAnalysis.SyntaxTree syntaxTrees, Microsoft.CodeAnalysis.CSharp.CSharpCompilation compilationNode, string excludeTypes = null ) : Microsoft.CodeAnalysis.SyntaxTree
RewriteMethodAsync ( Microsoft.CodeAnalysis.CSharp.Syntax.MethodDeclarationSyntax methodSyntax, Microsoft.CodeAnalysis.SemanticModel semanticModel, bool cancellationVersion ) : Microsoft.CodeAnalysis.CSharp.Syntax.MethodDeclarationSyntax
RewriteMethods ( Microsoft.CodeAnalysis.CSharp.Syntax.MethodDeclarationSyntax inMethodSyntax, Microsoft.CodeAnalysis.SemanticModel semanticModel ) : IEnumerable
UpdateUsings ( Microsoft.CodeAnalysis.CSharp.Syntax.CompilationUnitSyntax compilationUnit ) : Microsoft.CodeAnalysis.CSharp.Syntax.CompilationUnitSyntax
ValidateAsyncMethod ( Microsoft.CodeAnalysis.CSharp.Syntax.MethodDeclarationSyntax methodSyntax, Microsoft.CodeAnalysis.SemanticModel semanticModel ) : void

Method Details

Rewrite() public method

public Rewrite ( Microsoft.CodeAnalysis.SyntaxTree syntaxTrees, Microsoft.CodeAnalysis.CSharp.CSharpCompilation compilationNode, string excludeTypes = null ) : IEnumerable
syntaxTrees Microsoft.CodeAnalysis.SyntaxTree
compilationNode Microsoft.CodeAnalysis.CSharp.CSharpCompilation
excludeTypes string
return IEnumerable

RewriteAndMerge() public method

public RewriteAndMerge ( string paths, string additionalAssemblyNames = null, string excludeTypes = null ) : string
paths string
additionalAssemblyNames string
excludeTypes string
return string

Rewriter() public method

public Rewriter ( IAsyncRewriterLogger log = null ) : System
log IAsyncRewriterLogger
return System