docs/contributing/Testing for Interactive readiness.md
VerifyIL with sequencePoints)src\EditorFeatures\CSharpTest\EditAndContinue\BreakpointSpansTests.cs (implementation src\Features\CSharp\Portable\EditAndContinue\BreakpointSpans.cs, which deals with mapping syntax to sequence points){ // closure allocated here
var x = 1;
F(() => x);
}
src\Compilers\CSharp\Portable\Syntax\LambdaUtilities.cs accordinglysrc\Compilers\CSharp\Portable\Syntax\LambdaUtilities.cs (specifically IsClosureScope).SynthesizedClosureEnvironment constructor.src\Compilers\CSharp\Portable\Emitter\EditAndContinue\CSharpSymbolMatcher.cssrc\Compilers\CSharp\Test\Emit\Emit\EditAndContinue\SymbolMatcherTests.csEncVariableSlotAllocator using syntax offsets stored in PDB (encLocalSlotMap and encLambdaMap custom debug info).<scope> in PDB XML). LocalsTests.cs EE tests also validate the scoping.