2 writes to CaptureContext
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (2)
CodeGen\CodeGenCapturing.cs (2)
273
CaptureContext
= new CaptureContext(MaxCaptures);
292
CaptureContext
= this.CaptureContext.Clone()
5 references to CaptureContext
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (5)
CodeGen\CodeGenCapturing.cs (5)
292
CaptureContext = this.
CaptureContext
.Clone()
322
var expr = MakeCaptureExpression(captureCombo, copy.
CaptureContext
);
330
copy.
CaptureContext
.Add(depth + 1, $"{localFuncName}()");
376
var captureVars = methodInfo.
CaptureContext
.VariablesByScope;
432
var fields = methods.First().
CaptureContext
.VariablesByScope[0];