Beispiel #1
0
        internal SymbolTreeRewriter(CompilationEditor editor, CSharpCompilation compilation, Func <ISymbol, ISymbol> symbolRewriter)
        {
            this.editor         = editor;
            this.compilation    = compilation;
            this.symbolRewriter = symbolRewriter;

            this.binder = new SymbolFactory(compilation);
        }
Beispiel #2
0
 /// <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)));
 }