コード例 #1
0
        /// <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));
        }
コード例 #2
0
 /// <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);
 }