提交 39081d4e 编写于 作者: T Tomáš Matoušek

Merge pull request #4449 from tmat/DSRWorkaround

Remove test workaround for a fixed DiaSymReader bug 1068894
......@@ -9,7 +9,7 @@ namespace Microsoft.CodeAnalysis.CSharp.UnitTests.PDB
{
public class PDBAsyncTests : CSharpTestBase
{
[Fact(Skip = "1068894")]
[Fact]
[WorkItem(1137300, "DevDiv")]
[WorkItem(631350, "DevDiv")]
[WorkItem(643501, "DevDiv")]
......@@ -234,7 +234,7 @@ .maxstack 3
<forward declaringType=""TestCase"" methodName="".cctor"" />
<encLocalSlotMap>
<slot kind=""0"" offset=""15"" />
<slot kind=""temp"" />
<slot kind=""21"" offset=""0"" />
</encLocalSlotMap>
</customDebugInfo>
<sequencePoints>
......@@ -262,14 +262,13 @@ .maxstack 3
<customDebugInfo>
<forwardIterator name=""&lt;&lt;Run&gt;b__1_0&gt;d"" />
</customDebugInfo>
<sequencePoints />
</method>
<method containingType=""TestCase+&lt;Run&gt;d__1"" name=""MoveNext"">
<customDebugInfo>
<forward declaringType=""TestCase"" methodName="".cctor"" />
<hoistedLocalScopes>
<slot startOffset=""0xe"" endOffset=""0xff"" />
<slot startOffset=""0xe"" endOffset=""0xff"" />
<slot startOffset=""0x0"" endOffset=""0x12e"" />
<slot startOffset=""0x0"" endOffset=""0x12e"" />
</hoistedLocalScopes>
<encLocalSlotMap>
<slot kind=""27"" offset=""0"" />
......@@ -306,9 +305,9 @@ .maxstack 3
<method containingType=""TestCase+&lt;&gt;c+&lt;&lt;Run&gt;b__1_0&gt;d"" name=""MoveNext"">
<customDebugInfo>
<encLocalSlotMap>
<slot kind=""27"" offset=""0"" />
<slot kind=""20"" offset=""0"" />
<slot kind=""33"" offset=""2"" />
<slot kind=""27"" offset=""86"" />
<slot kind=""20"" offset=""86"" />
<slot kind=""33"" offset=""88"" />
<slot kind=""temp"" />
<slot kind=""temp"" />
</encLocalSlotMap>
......@@ -507,7 +506,7 @@ private Task<int> GetNextInt(Random random)
</symbols>");
}
[Fact(Skip = "1068894")]
[Fact]
[WorkItem(1137300, "DevDiv")]
[WorkItem(690180, "DevDiv")]
public void TestAsyncDebug3()
......@@ -539,7 +538,6 @@ static async void Await(dynamic d)
<slot kind=""28"" offset=""21"" ordinal=""2"" />
</encLocalSlotMap>
</customDebugInfo>
<sequencePoints />
</method>
<method containingType=""TestCase+&lt;Await&gt;d__0"" name=""MoveNext"">
<customDebugInfo>
......@@ -547,7 +545,7 @@ static async void Await(dynamic d)
<namespace usingCount=""0"" />
</using>
<hoistedLocalScopes>
<slot startOffset=""0x11"" endOffset=""0x232"" />
<slot startOffset=""0x0"" endOffset=""0x261"" />
</hoistedLocalScopes>
<encLocalSlotMap>
<slot kind=""27"" offset=""0"" />
......@@ -733,8 +731,6 @@ static async Task M(int b)
await M(x1 + x2 + x3);
}
public void F() { } // needs to be present to work around SymWriter bug #1068894
}
";
// TODO: Currently we don't have means necessary to pass information about the display
......@@ -755,7 +751,7 @@ static async Task M(int b)
<methods>
<method containingType=""C+&lt;M&gt;d__0"" name=""MoveNext"">
<customDebugInfo>
<forward declaringType=""C"" methodName=""F"" />
<forward declaringType=""C+&lt;&gt;c__DisplayClass0_0"" methodName=""&lt;M&gt;b__0"" />
</customDebugInfo>
<sequencePoints>
<entry offset=""0x0"" hidden=""true"" />
......@@ -825,8 +821,6 @@ static async Task M(int b)
// possible EnC edit:
// Console.WriteLine(x1);
}
public void F() { } // needs to be present to work around SymWriter bug #1068894
}
";
var v = CompileAndVerify(CreateCompilationWithMscorlib45(source, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All)), symbolValidator: module =>
......@@ -846,7 +840,7 @@ static async Task M(int b)
<methods>
<method containingType=""C+&lt;M&gt;d__0"" name=""MoveNext"">
<customDebugInfo>
<forward declaringType=""C"" methodName=""F"" />
<forward declaringType=""C+&lt;&gt;c__DisplayClass0_0"" methodName=""&lt;M&gt;b__0"" />
<hoistedLocalScopes>
<slot startOffset=""0x0"" endOffset=""0x10d"" />
</hoistedLocalScopes>
......@@ -923,8 +917,6 @@ static async Task M(int b)
Console.WriteLine(x1);
}
public void F() { } // needs to be present to work around SymWriter bug #1068894
}
";
var v = CompileAndVerify(CreateCompilationWithMscorlib45(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)), symbolValidator: module =>
......@@ -943,7 +935,7 @@ static async Task M(int b)
<methods>
<method containingType=""C+&lt;M&gt;d__0"" name=""MoveNext"">
<customDebugInfo>
<forward declaringType=""C"" methodName=""F"" />
<forward declaringType=""C+&lt;&gt;c__DisplayClass0_0"" methodName=""&lt;M&gt;b__0"" />
<hoistedLocalScopes>
<slot startOffset=""0x0"" endOffset=""0xeb"" />
</hoistedLocalScopes>
......@@ -1011,8 +1003,6 @@ static async Task M(int b)
Console.WriteLine(x1);
}
public void F() { } // needs to be present to work around SymWriter bug #1068894
}
";
var v = CompileAndVerify(CreateCompilationWithMscorlib45(source, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All)), symbolValidator: module =>
......@@ -1032,7 +1022,7 @@ static async Task M(int b)
<methods>
<method containingType=""C+&lt;M&gt;d__0"" name=""MoveNext"">
<customDebugInfo>
<forward declaringType=""C"" methodName=""F"" />
<forward declaringType=""C+&lt;&gt;c__DisplayClass0_0"" methodName=""&lt;M&gt;b__0"" />
<hoistedLocalScopes>
<slot startOffset=""0x0"" endOffset=""0xfc"" />
</hoistedLocalScopes>
......@@ -1103,8 +1093,6 @@ static async Task M()
await Task.Delay(0);
d.ToString();
}
public void F() { } // needs to be present to work around SymWriter bug #1068894
}
";
var v = CompileAndVerify(CreateCompilationWithMscorlib45(source, new[] { SystemCoreRef, CSharpRef }, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All)), symbolValidator: module =>
......@@ -1125,7 +1113,9 @@ static async Task M()
<methods>
<method containingType=""C+&lt;M&gt;d__0"" name=""MoveNext"">
<customDebugInfo>
<forward declaringType=""C"" methodName=""F"" />
<using>
<namespace usingCount=""1"" />
</using>
<hoistedLocalScopes>
<slot startOffset=""0x0"" endOffset=""0x109"" />
</hoistedLocalScopes>
......@@ -1148,6 +1138,9 @@ static async Task M()
<entry offset=""0xf5"" startLine=""11"" startColumn=""5"" endLine=""11"" endColumn=""6"" />
<entry offset=""0xfd"" hidden=""true"" />
</sequencePoints>
<scope startOffset=""0x0"" endOffset=""0x10a"">
<namespace name=""System.Threading.Tasks"" />
</scope>
<asyncInfo>
<kickoffMethod declaringType=""C"" methodName=""M"" />
<await yield=""0x39"" resume=""0x57"" declaringType=""C+&lt;M&gt;d__0"" methodName=""MoveNext"" />
......@@ -1189,8 +1182,6 @@ static async Task M()
d.ToString();
await Task.Delay(0);
}
public void F() { } // needs to be present to work around SymWriter bug #1068894
}
";
var v = CompileAndVerify(CreateCompilationWithMscorlib45(source, new[] { SystemCoreRef, CSharpRef }, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)), symbolValidator: module =>
......@@ -1208,7 +1199,9 @@ static async Task M()
<methods>
<method containingType=""C+&lt;M&gt;d__0"" name=""MoveNext"">
<customDebugInfo>
<forward declaringType=""C"" methodName=""F"" />
<using>
<namespace usingCount=""1"" />
</using>
<dynamicLocals>
<bucket flagCount=""1"" flags=""1"" slotId=""1"" localName=""d"" />
</dynamicLocals>
......@@ -1225,6 +1218,7 @@ static async Task M()
<entry offset=""0xe5"" hidden=""true"" />
</sequencePoints>
<scope startOffset=""0x0"" endOffset=""0xf1"">
<namespace name=""System.Threading.Tasks"" />
<scope startOffset=""0xd"" endOffset=""0xc6"">
<local name=""d"" il_index=""1"" il_start=""0xd"" il_end=""0xc6"" attributes=""0"" />
</scope>
......@@ -1268,8 +1262,6 @@ static async Task M()
// Possible EnC edit:
// System.Console.WriteLine(d);
}
public void F() { } // needs to be present to work around SymWriter bug #1068894
}
";
var v = CompileAndVerify(CreateCompilationWithMscorlib45(source, new[] { SystemCoreRef, CSharpRef }, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All)), symbolValidator: module =>
......@@ -1288,7 +1280,9 @@ static async Task M()
<methods>
<method containingType=""C+&lt;M&gt;d__0"" name=""MoveNext"">
<customDebugInfo>
<forward declaringType=""C"" methodName=""F"" />
<using>
<namespace usingCount=""1"" />
</using>
<hoistedLocalScopes>
<slot startOffset=""0x0"" endOffset=""0x109"" />
</hoistedLocalScopes>
......@@ -1311,6 +1305,9 @@ static async Task M()
<entry offset=""0xf5"" startLine=""14"" startColumn=""5"" endLine=""14"" endColumn=""6"" />
<entry offset=""0xfd"" hidden=""true"" />
</sequencePoints>
<scope startOffset=""0x0"" endOffset=""0x10a"">
<namespace name=""System.Threading.Tasks"" />
</scope>
<asyncInfo>
<kickoffMethod declaringType=""C"" methodName=""M"" />
<await yield=""0x94"" resume=""0xaf"" declaringType=""C+&lt;M&gt;d__0"" methodName=""MoveNext"" />
......@@ -1354,8 +1351,6 @@ static async Task M()
await Task.Delay(0);
}
}
public void F() { } // needs to be present to work around SymWriter bug #1068894
}
";
// We need to hoist x even though its scope doesn't contain await.
......@@ -1403,8 +1398,6 @@ static async Task<int> G()
return x;
}
public void F() { } // needs to be present to work around SymWriter bug #1068894
}";
var v = CompileAndVerify(CreateCompilationWithMscorlib45(source, new[] { SystemCoreRef, CSharpRef }, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All)), symbolValidator: module =>
{
......@@ -1585,7 +1578,9 @@ .maxstack 3
<methods>
<method containingType=""C+&lt;G&gt;d__0"" name=""MoveNext"">
<customDebugInfo>
<forward declaringType=""C"" methodName=""F"" />
<using>
<namespace usingCount=""2"" />
</using>
<hoistedLocalScopes>
<slot startOffset=""0x0"" endOffset=""0x11d"" />
<slot startOffset=""0x29"" endOffset=""0x32"" />
......@@ -1620,6 +1615,10 @@ .maxstack 3
<entry offset=""0x108"" startLine=""20"" startColumn=""5"" endLine=""20"" endColumn=""6"" />
<entry offset=""0x110"" hidden=""true"" />
</sequencePoints>
<scope startOffset=""0x0"" endOffset=""0x11e"">
<namespace name=""System"" />
<namespace name=""System.Threading.Tasks"" />
</scope>
<asyncInfo>
<kickoffMethod declaringType=""C"" methodName=""G"" />
<await yield=""0x51"" resume=""0x70"" declaringType=""C+&lt;G&gt;d__0"" methodName=""MoveNext"" />
......
......@@ -22,8 +22,6 @@ System.Collections.Generic.IEnumerable<int> Foo()
{
yield break;
}
public void F() { } // needs to be present to work around SymWriter bug #1068894
}
";
var c = CreateCompilationWithMscorlibAndSystemCore(text, options: TestOptions.DebugDll);
......@@ -35,20 +33,11 @@ System.Collections.Generic.IEnumerable<int> Foo()
<forwardIterator name=""&lt;Foo&gt;d__0"" />
</customDebugInfo>
</method>
<method containingType=""Program"" name=""F"">
<method containingType=""Program+&lt;Foo&gt;d__0"" name=""MoveNext"">
<customDebugInfo>
<using>
<namespace usingCount=""0"" />
</using>
</customDebugInfo>
<sequencePoints>
<entry offset=""0x0"" startLine=""9"" startColumn=""21"" endLine=""9"" endColumn=""22"" />
<entry offset=""0x1"" startLine=""9"" startColumn=""23"" endLine=""9"" endColumn=""24"" />
</sequencePoints>
</method>
<method containingType=""Program+&lt;Foo&gt;d__0"" name=""MoveNext"">
<customDebugInfo>
<forward declaringType=""Program"" methodName=""F"" />
<encLocalSlotMap>
<slot kind=""27"" offset=""0"" />
</encLocalSlotMap>
......@@ -74,8 +63,6 @@ System.Collections.Generic.IEnumerable<int> Foo()
{
yield break;
}
public void F() { } // needs to be present to work around SymWriter bug #1068894
}
";
......@@ -88,20 +75,11 @@ System.Collections.Generic.IEnumerable<int> Foo()
<forwardIterator name=""&lt;Foo&gt;d__0"" />
</customDebugInfo>
</method>
<method containingType=""Program"" name=""F"">
<method containingType=""Program+&lt;Foo&gt;d__0"" name=""MoveNext"">
<customDebugInfo>
<using>
<namespace usingCount=""0"" />
</using>
</customDebugInfo>
<sequencePoints>
<entry offset=""0x0"" startLine=""9"" startColumn=""21"" endLine=""9"" endColumn=""22"" />
<entry offset=""0x1"" startLine=""9"" startColumn=""23"" endLine=""9"" endColumn=""24"" />
</sequencePoints>
</method>
<method containingType=""Program+&lt;Foo&gt;d__0"" name=""MoveNext"">
<customDebugInfo>
<forward declaringType=""Program"" methodName=""F"" />
<encLocalSlotMap>
<slot kind=""27"" offset=""0"" />
</encLocalSlotMap>
......@@ -127,8 +105,6 @@ System.Collections.Generic.IEnumerable<int> Foo()
{
yield return 1; //hidden sequence point after this.
}
public void F() { } // needs to be present to work around SymWriter bug #1068894
}
";
......@@ -141,20 +117,11 @@ System.Collections.Generic.IEnumerable<int> Foo()
<forwardIterator name=""&lt;Foo&gt;d__0"" />
</customDebugInfo>
</method>
<method containingType=""Program"" name=""F"">
<method containingType=""Program+&lt;Foo&gt;d__0"" name=""MoveNext"">
<customDebugInfo>
<using>
<namespace usingCount=""0"" />
</using>
</customDebugInfo>
<sequencePoints>
<entry offset=""0x0"" startLine=""9"" startColumn=""21"" endLine=""9"" endColumn=""22"" />
<entry offset=""0x1"" startLine=""9"" startColumn=""23"" endLine=""9"" endColumn=""24"" />
</sequencePoints>
</method>
<method containingType=""Program+&lt;Foo&gt;d__0"" name=""MoveNext"">
<customDebugInfo>
<forward declaringType=""Program"" methodName=""F"" />
<encLocalSlotMap>
<slot kind=""27"" offset=""0"" />
</encLocalSlotMap>
......@@ -189,8 +156,6 @@ System.Collections.Generic.IEnumerable<int> IEI<T>(int i0, int i1)
}
yield break;
}
public void F() { } // needs to be present to work around SymWriter bug #1068894
}
";
var c = CreateCompilationWithMscorlibAndSystemCore(text, options: TestOptions.ReleaseDll);
......@@ -202,19 +167,11 @@ System.Collections.Generic.IEnumerable<int> IEI<T>(int i0, int i1)
<forwardIterator name=""&lt;IEI&gt;d__0"" />
</customDebugInfo>
</method>
<method containingType=""Program"" name=""F"">
<method containingType=""Program+&lt;IEI&gt;d__0`1"" name=""MoveNext"">
<customDebugInfo>
<using>
<namespace usingCount=""0"" />
</using>
</customDebugInfo>
<sequencePoints>
<entry offset=""0x0"" startLine=""17"" startColumn=""23"" endLine=""17"" endColumn=""24"" />
</sequencePoints>
</method>
<method containingType=""Program+&lt;IEI&gt;d__0`1"" name=""MoveNext"">
<customDebugInfo>
<forward declaringType=""Program"" methodName=""F"" />
<hoistedLocalScopes>
<slot startOffset=""0x2a"" endOffset=""0xb3"" />
<slot startOffset=""0x6e"" endOffset=""0xb1"" />
......@@ -257,8 +214,6 @@ System.Collections.Generic.IEnumerable<int> IEI<T>(int i0, int i1)
}
yield break;
}
public void F() { } // needs to be present to work around SymWriter bug #1068894
}
";
var c = CreateCompilationWithMscorlibAndSystemCore(text, options: TestOptions.DebugDll);
......@@ -274,20 +229,11 @@ System.Collections.Generic.IEnumerable<int> IEI<T>(int i0, int i1)
</encLocalSlotMap>
</customDebugInfo>
</method>
<method containingType=""Program"" name=""F"">
<method containingType=""Program+&lt;IEI&gt;d__0`1"" name=""MoveNext"">
<customDebugInfo>
<using>
<namespace usingCount=""0"" />
</using>
</customDebugInfo>
<sequencePoints>
<entry offset=""0x0"" startLine=""17"" startColumn=""21"" endLine=""17"" endColumn=""22"" />
<entry offset=""0x1"" startLine=""17"" startColumn=""23"" endLine=""17"" endColumn=""24"" />
</sequencePoints>
</method>
<method containingType=""Program+&lt;IEI&gt;d__0`1"" name=""MoveNext"">
<customDebugInfo>
<forward declaringType=""Program"" methodName=""F"" />
<hoistedLocalScopes>
<slot startOffset=""0x39"" endOffset=""0xc5"" />
<slot startOffset=""0x7e"" endOffset=""0xc3"" />
......@@ -339,8 +285,6 @@ public static IEnumerator<T> M(IEnumerable<T> items)
}
yield return val;
}
public void F() { } // needs to be present to work around SymWriter bug #1068894
}";
var c = CreateCompilationWithMscorlibAndSystemCore(text, options: TestOptions.DebugDll);
c.VerifyPdb(@"
......@@ -356,24 +300,11 @@ public static IEnumerator<T> M(IEnumerable<T> items)
</encLocalSlotMap>
</customDebugInfo>
</method>
<method containingType=""Test`1"" name=""F"">
<method containingType=""Test`1+&lt;M&gt;d__0"" name=""MoveNext"">
<customDebugInfo>
<using>
<namespace usingCount=""2"" />
</using>
</customDebugInfo>
<sequencePoints>
<entry offset=""0x0"" startLine=""19"" startColumn=""21"" endLine=""19"" endColumn=""22"" />
<entry offset=""0x1"" startLine=""19"" startColumn=""23"" endLine=""19"" endColumn=""24"" />
</sequencePoints>
<scope startOffset=""0x0"" endOffset=""0x2"">
<namespace name=""System"" />
<namespace name=""System.Collections.Generic"" />
</scope>
</method>
<method containingType=""Test`1+&lt;M&gt;d__0"" name=""MoveNext"">
<customDebugInfo>
<forward declaringType=""Test`1"" methodName=""F"" />
<hoistedLocalScopes>
<slot startOffset=""0x32"" endOffset=""0xe1"" />
<slot startOffset=""0x0"" endOffset=""0x0"" />
......@@ -403,6 +334,10 @@ public static IEnumerator<T> M(IEnumerable<T> items)
<entry offset=""0xde"" startLine=""17"" startColumn=""5"" endLine=""17"" endColumn=""6"" />
<entry offset=""0xe2"" hidden=""true"" />
</sequencePoints>
<scope startOffset=""0x0"" endOffset=""0xec"">
<namespace name=""System"" />
<namespace name=""System.Collections.Generic"" />
</scope>
</method>
</methods>
</symbols>");
......@@ -889,8 +824,6 @@ public IEnumerable<int> M(IDisposable disposable)
if (disposable != null) { using (disposable) { } }
lock (this) { }
}
public void F() { } // needs to be present to work around SymWriter bug #1068894
}";
CompileAndVerify(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All), symbolValidator: module =>
{
......@@ -1058,8 +991,6 @@ static IEnumerable<int> M()
yield return 1;
}
public void F() { } // needs to be present to work around SymWriter bug #1068894
}
";
// TODO: Currently we don't have means necessary to pass information about the display
......@@ -1128,7 +1059,7 @@ .locals init (int V_0)
<methods>
<method containingType=""C+&lt;M&gt;d__0"" name=""MoveNext"">
<customDebugInfo>
<forward declaringType=""C"" methodName=""F"" />
<forward declaringType=""C+&lt;&gt;c__DisplayClass0_0"" methodName=""&lt;M&gt;b__0"" />
</customDebugInfo>
<sequencePoints>
<entry offset=""0x0"" hidden=""true"" />
......@@ -1184,8 +1115,6 @@ static IEnumerable<int> M()
// Possible EnC edit - add lambda:
// () => { x1 }
}
public void F() { } // needs to be present to work around SymWriter bug #1068894
}
";
// We need to hoist display class variable to allow adding a new lambda after yield return
......@@ -1267,7 +1196,7 @@ .locals init (int V_0)
<methods>
<method containingType=""C+&lt;M&gt;d__0"" name=""MoveNext"">
<customDebugInfo>
<forward declaringType=""C"" methodName=""F"" />
<forward declaringType=""C+&lt;&gt;c__DisplayClass0_0"" methodName=""&lt;M&gt;b__0"" />
<hoistedLocalScopes>
<slot startOffset=""0x1f"" endOffset=""0x7e"" />
</hoistedLocalScopes>
......@@ -1327,8 +1256,6 @@ static IEnumerable<int> M()
yield return d;
d.ToString();
}
public void F() { } // needs to be present to work around SymWriter bug #1068894
}
";
var v = CompileAndVerify(source, new[] { SystemCoreRef, CSharpRef }, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All), symbolValidator: module =>
......@@ -1349,7 +1276,9 @@ static IEnumerable<int> M()
<methods>
<method containingType=""C+&lt;M&gt;d__0"" name=""MoveNext"">
<customDebugInfo>
<forward declaringType=""C"" methodName=""F"" />
<using>
<namespace usingCount=""1"" />
</using>
<hoistedLocalScopes>
<slot startOffset=""0x1f"" endOffset=""0xe2"" />
</hoistedLocalScopes>
......@@ -1366,6 +1295,9 @@ static IEnumerable<int> M()
<entry offset=""0x89"" startLine=""10"" startColumn=""9"" endLine=""10"" endColumn=""22"" />
<entry offset=""0xe1"" startLine=""11"" startColumn=""5"" endLine=""11"" endColumn=""6"" />
</sequencePoints>
<scope startOffset=""0x0"" endOffset=""0xe3"">
<namespace name=""System.Collections.Generic"" />
</scope>
</method>
</methods>
</symbols>");
......@@ -1402,8 +1334,6 @@ static IEnumerable<int> M()
dynamic d = 1;
yield return d;
}
public void F() { } // needs to be present to work around SymWriter bug #1068894
}
";
var v = CompileAndVerify(source, new[] { SystemCoreRef, CSharpRef }, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All), symbolValidator: module =>
......@@ -1421,7 +1351,9 @@ static IEnumerable<int> M()
<methods>
<method containingType=""C+&lt;M&gt;d__0"" name=""MoveNext"">
<customDebugInfo>
<forward declaringType=""C"" methodName=""F"" />
<using>
<namespace usingCount=""1"" />
</using>
<dynamicLocals>
<bucket flagCount=""1"" flags=""1"" slotId=""1"" localName=""d"" />
</dynamicLocals>
......@@ -1434,6 +1366,7 @@ static IEnumerable<int> M()
<entry offset=""0x74"" startLine=""10"" startColumn=""5"" endLine=""10"" endColumn=""6"" />
</sequencePoints>
<scope startOffset=""0x0"" endOffset=""0x76"">
<namespace name=""System.Collections.Generic"" />
<scope startOffset=""0x17"" endOffset=""0x76"">
<local name=""d"" il_index=""1"" il_start=""0x17"" il_end=""0x76"" attributes=""0"" />
</scope>
......@@ -1460,8 +1393,6 @@ static IEnumerable<int> M()
// Possible EnC edit:
// System.Console.WriteLine(d);
}
public void F() { } // needs to be present to work around SymWriter bug #1068894
}
";
var v = CompileAndVerify(source, new[] { SystemCoreRef, CSharpRef }, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All), symbolValidator: module =>
......@@ -1480,7 +1411,9 @@ static IEnumerable<int> M()
<methods>
<method containingType=""C+&lt;M&gt;d__0"" name=""MoveNext"">
<customDebugInfo>
<forward declaringType=""C"" methodName=""F"" />
<using>
<namespace usingCount=""1"" />
</using>
<hoistedLocalScopes>
<slot startOffset=""0x1f"" endOffset=""0x8a"" />
</hoistedLocalScopes>
......@@ -1496,6 +1429,9 @@ static IEnumerable<int> M()
<entry offset=""0x82"" hidden=""true"" />
<entry offset=""0x89"" startLine=""13"" startColumn=""5"" endLine=""13"" endColumn=""6"" />
</sequencePoints>
<scope startOffset=""0x0"" endOffset=""0x8b"">
<namespace name=""System.Collections.Generic"" />
</scope>
</method>
</methods>
</symbols>");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册