internal SymbolTreeRewriter(CompilationEditor editor, CSharpCompilation compilation, Func <ISymbol, ISymbol> symbolRewriter) { this.editor = editor; this.compilation = compilation; this.symbolRewriter = symbolRewriter; this.binder = new SymbolFactory(compilation); }
/// <summary> /// Returns a copy of the given <see cref="SyntaxTree"/>, with its options compatible /// with Cometary's required options. /// </summary> public static SyntaxTree WithCometaryOptions(this CSharpSyntaxTree syntaxTree, CompilationEditor editor) { return(syntaxTree.WithOptions(editor.GetRecomputationPipeline().MakeDelegate(opts => opts)(syntaxTree.Options))); }