/// <summary> /// Injects instruction counter code into the given syntax tree. /// </summary> /// <param name="compilation"></param> /// <param name="tree"></param> /// <returns></returns> private async Task <SyntaxTree> InjectInstructionCounter(CSharpCompilation compilation, SyntaxTree tree) { var rewriter = new InstructionCountingRewriter(this, compilation, tree); return(await rewriter.Rewrite().ConfigureAwait(false)); }
/// <summary> /// Injects instruction counter code into the given syntax tree. /// </summary> /// <param name="compilation"></param> /// <param name="tree"></param> /// <returns></returns> private async Task<SyntaxTree> InjectInstructionCounter(CSharpCompilation compilation, SyntaxTree tree) { var rewriter = new InstructionCountingRewriter(this, compilation, tree); return await rewriter.Rewrite().ConfigureAwait(false); }