17 references to VariablesByScope
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (17)
CodeGen\CodeGenCapturing.cs (17)
40
VariablesByScope
.Add(fieldsBuilder.MoveToImmutable());
45
if (
VariablesByScope
.Count <= depth ||
46
VariablesByScope
[depth] == null)
48
VariablesByScope
.Insert(depth, new List<string>() { varName });
52
VariablesByScope
[depth].Add(varName);
58
var fields =
VariablesByScope
[0];
60
newCtx.
VariablesByScope
.Add(fields);
61
newCtx.
VariablesByScope
.AddRange(
62
this.
VariablesByScope
77
var variablesByScope = ctx.
VariablesByScope
;
184
}, ctx.
VariablesByScope
);
193
}, ctx.
VariablesByScope
);
204
}, ctx.
VariablesByScope
);
208
Assert.Equal(expectedCtx.Count, ctx.
VariablesByScope
.Count);
211
AssertEx.Equal(expectedCtx[depth], ctx.
VariablesByScope
[depth]);
376
var captureVars = methodInfo.CaptureContext.
VariablesByScope
;
432
var fields = methods.First().CaptureContext.
VariablesByScope
[0];