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