internal static BoundNode Rewrite(
     ParameterSymbol targetMethodThisParameter,
     Conversions conversions,
     ImmutableDictionary<string, DisplayClassVariable> displayClassVariables,
     BoundNode node,
     DiagnosticBag diagnostics)
 {
     var rewriter = new CapturedVariableRewriter(targetMethodThisParameter, conversions, displayClassVariables, diagnostics);
     return rewriter.Visit(node);
 }
 internal static BoundNode Rewrite(
     GenerateThisReference getThisReference,
     Conversions conversions,
     ImmutableDictionary<string, DisplayClassVariable> displayClassVariables,
     BoundNode node,
     DiagnosticBag diagnostics)
 {
     var rewriter = new CapturedVariableRewriter(getThisReference, conversions, displayClassVariables, diagnostics);
     return rewriter.Visit(node);
 }
Exemple #3
0
        internal static BoundNode Rewrite(
            ParameterSymbol targetMethodThisParameter,
            Conversions conversions,
            ImmutableDictionary <string, DisplayClassVariable> displayClassVariables,
            BoundNode node,
            DiagnosticBag diagnostics)
        {
            var rewriter = new CapturedVariableRewriter(targetMethodThisParameter, conversions, displayClassVariables, diagnostics);

            return(rewriter.Visit(node));
        }