-
Notifications
You must be signed in to change notification settings - Fork 202
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[gh-1307] Update most test snapshot and fix F# rewrite issues
- Loading branch information
Showing
62 changed files
with
3,396 additions
and
4,324 deletions.
There are no files selected for viewing
130 changes: 65 additions & 65 deletions
130
source/NetFramework/Tests/Decompilation/TestCode/Cast.ExplicitOperatorOnNull.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,66 +1,66 @@ | ||
public class Foo { | ||
public static explicit operator uint? (Foo foo) => 1; | ||
} | ||
|
||
public class Bar { | ||
public void Baz() { | ||
var x = (uint?)((Foo)null); | ||
} | ||
} | ||
|
||
/* cs | ||
using System; | ||
using System.Diagnostics; | ||
using System.Reflection; | ||
using System.Runtime.CompilerServices; | ||
using System.Security; | ||
using System.Security.Permissions; | ||
using Microsoft.CodeAnalysis; | ||
[assembly: CompilationRelaxations(8)] | ||
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] | ||
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)] | ||
[assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)] | ||
[assembly: AssemblyVersion("0.0.0.0")] | ||
[module: UnverifiableCode] | ||
[module: RefSafetyRules(11)] | ||
namespace Microsoft.CodeAnalysis | ||
{ | ||
[CompilerGenerated] | ||
[Embedded] | ||
internal sealed class EmbeddedAttribute : Attribute | ||
{ | ||
} | ||
} | ||
namespace System.Runtime.CompilerServices | ||
{ | ||
[CompilerGenerated] | ||
[Embedded] | ||
[AttributeUsage(AttributeTargets.Module, AllowMultiple = false, Inherited = false)] | ||
internal sealed class RefSafetyRulesAttribute : Attribute | ||
{ | ||
public readonly int Version; | ||
public RefSafetyRulesAttribute(int P_0) | ||
{ | ||
Version = P_0; | ||
} | ||
} | ||
} | ||
public class Foo | ||
{ | ||
public static explicit operator Nullable<uint>(Foo foo) | ||
{ | ||
return 1u; | ||
} | ||
} | ||
public class Bar | ||
{ | ||
public void Baz() | ||
{ | ||
Nullable<uint> num = (Nullable<uint>)(Foo)null; | ||
} | ||
} | ||
public class Foo { | ||
public static explicit operator uint? (Foo foo) => 1; | ||
} | ||
|
||
public class Bar { | ||
public void Baz() { | ||
var x = (uint?)((Foo)null); | ||
} | ||
} | ||
|
||
/* cs | ||
using System; | ||
using System.Diagnostics; | ||
using System.Reflection; | ||
using System.Runtime.CompilerServices; | ||
using System.Security; | ||
using System.Security.Permissions; | ||
using Microsoft.CodeAnalysis; | ||
[assembly: CompilationRelaxations(8)] | ||
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] | ||
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)] | ||
[assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)] | ||
[assembly: AssemblyVersion("0.0.0.0")] | ||
[module: UnverifiableCode] | ||
[module: RefSafetyRules(11)] | ||
namespace Microsoft.CodeAnalysis | ||
{ | ||
[CompilerGenerated] | ||
[Embedded] | ||
internal sealed class EmbeddedAttribute : Attribute | ||
{ | ||
} | ||
} | ||
namespace System.Runtime.CompilerServices | ||
{ | ||
[CompilerGenerated] | ||
[Embedded] | ||
[AttributeUsage(AttributeTargets.Module, AllowMultiple = false, Inherited = false)] | ||
internal sealed class RefSafetyRulesAttribute : Attribute | ||
{ | ||
public readonly int Version; | ||
public RefSafetyRulesAttribute(int P_0) | ||
{ | ||
Version = P_0; | ||
} | ||
} | ||
} | ||
public class Foo | ||
{ | ||
public static explicit operator Nullable<uint>(Foo foo) | ||
{ | ||
return 1u; | ||
} | ||
} | ||
public class Bar | ||
{ | ||
public void Baz() | ||
{ | ||
Nullable<uint> num = (Nullable<uint>)(Foo)null; | ||
} | ||
} | ||
*/ |
116 changes: 58 additions & 58 deletions
116
source/NetFramework/Tests/Decompilation/TestCode/Condition.SimpleSwitch.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,59 +1,59 @@ | ||
public class C { | ||
public void M(string n) { | ||
switch(n) { | ||
case "foo": break; | ||
} | ||
} | ||
} | ||
|
||
/* cs | ||
using System; | ||
using System.Diagnostics; | ||
using System.Reflection; | ||
using System.Runtime.CompilerServices; | ||
using System.Security; | ||
using System.Security.Permissions; | ||
using Microsoft.CodeAnalysis; | ||
[assembly: CompilationRelaxations(8)] | ||
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] | ||
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)] | ||
[assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)] | ||
[assembly: AssemblyVersion("0.0.0.0")] | ||
[module: UnverifiableCode] | ||
[module: RefSafetyRules(11)] | ||
namespace Microsoft.CodeAnalysis | ||
{ | ||
[CompilerGenerated] | ||
[Embedded] | ||
internal sealed class EmbeddedAttribute : Attribute | ||
{ | ||
} | ||
} | ||
namespace System.Runtime.CompilerServices | ||
{ | ||
[CompilerGenerated] | ||
[Embedded] | ||
[AttributeUsage(AttributeTargets.Module, AllowMultiple = false, Inherited = false)] | ||
internal sealed class RefSafetyRulesAttribute : Attribute | ||
{ | ||
public readonly int Version; | ||
public RefSafetyRulesAttribute(int P_0) | ||
{ | ||
Version = P_0; | ||
} | ||
} | ||
} | ||
public class C | ||
{ | ||
public void M(string n) | ||
{ | ||
if (n == "foo") | ||
{ | ||
} | ||
} | ||
} | ||
public class C { | ||
public void M(string n) { | ||
switch(n) { | ||
case "foo": break; | ||
} | ||
} | ||
} | ||
|
||
/* cs | ||
using System; | ||
using System.Diagnostics; | ||
using System.Reflection; | ||
using System.Runtime.CompilerServices; | ||
using System.Security; | ||
using System.Security.Permissions; | ||
using Microsoft.CodeAnalysis; | ||
[assembly: CompilationRelaxations(8)] | ||
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] | ||
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)] | ||
[assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)] | ||
[assembly: AssemblyVersion("0.0.0.0")] | ||
[module: UnverifiableCode] | ||
[module: RefSafetyRules(11)] | ||
namespace Microsoft.CodeAnalysis | ||
{ | ||
[CompilerGenerated] | ||
[Embedded] | ||
internal sealed class EmbeddedAttribute : Attribute | ||
{ | ||
} | ||
} | ||
namespace System.Runtime.CompilerServices | ||
{ | ||
[CompilerGenerated] | ||
[Embedded] | ||
[AttributeUsage(AttributeTargets.Module, AllowMultiple = false, Inherited = false)] | ||
internal sealed class RefSafetyRulesAttribute : Attribute | ||
{ | ||
public readonly int Version; | ||
public RefSafetyRulesAttribute(int P_0) | ||
{ | ||
Version = P_0; | ||
} | ||
} | ||
} | ||
public class C | ||
{ | ||
public void M(string n) | ||
{ | ||
if (n == "foo") | ||
{ | ||
} | ||
} | ||
} | ||
*/ |
130 changes: 65 additions & 65 deletions
130
source/NetFramework/Tests/Decompilation/TestCode/Constructor.BaseCall.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,66 +1,66 @@ | ||
public class MyBase { | ||
public MyBase(string name) { | ||
} | ||
} | ||
|
||
|
||
public class MyClass : MyBase { | ||
public MyClass(string name) : base(name) { | ||
} | ||
} | ||
|
||
/* cs | ||
using System; | ||
using System.Diagnostics; | ||
using System.Reflection; | ||
using System.Runtime.CompilerServices; | ||
using System.Security; | ||
using System.Security.Permissions; | ||
using Microsoft.CodeAnalysis; | ||
[assembly: CompilationRelaxations(8)] | ||
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] | ||
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)] | ||
[assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)] | ||
[assembly: AssemblyVersion("0.0.0.0")] | ||
[module: UnverifiableCode] | ||
[module: RefSafetyRules(11)] | ||
namespace Microsoft.CodeAnalysis | ||
{ | ||
[CompilerGenerated] | ||
[Embedded] | ||
internal sealed class EmbeddedAttribute : Attribute | ||
{ | ||
} | ||
} | ||
namespace System.Runtime.CompilerServices | ||
{ | ||
[CompilerGenerated] | ||
[Embedded] | ||
[AttributeUsage(AttributeTargets.Module, AllowMultiple = false, Inherited = false)] | ||
internal sealed class RefSafetyRulesAttribute : Attribute | ||
{ | ||
public readonly int Version; | ||
public RefSafetyRulesAttribute(int P_0) | ||
{ | ||
Version = P_0; | ||
} | ||
} | ||
} | ||
public class MyBase | ||
{ | ||
public MyBase(string name) | ||
{ | ||
} | ||
} | ||
public class MyClass : MyBase | ||
{ | ||
public MyClass(string name) | ||
: base(name) | ||
{ | ||
} | ||
} | ||
public class MyBase { | ||
public MyBase(string name) { | ||
} | ||
} | ||
|
||
|
||
public class MyClass : MyBase { | ||
public MyClass(string name) : base(name) { | ||
} | ||
} | ||
|
||
/* cs | ||
using System; | ||
using System.Diagnostics; | ||
using System.Reflection; | ||
using System.Runtime.CompilerServices; | ||
using System.Security; | ||
using System.Security.Permissions; | ||
using Microsoft.CodeAnalysis; | ||
[assembly: CompilationRelaxations(8)] | ||
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] | ||
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)] | ||
[assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)] | ||
[assembly: AssemblyVersion("0.0.0.0")] | ||
[module: UnverifiableCode] | ||
[module: RefSafetyRules(11)] | ||
namespace Microsoft.CodeAnalysis | ||
{ | ||
[CompilerGenerated] | ||
[Embedded] | ||
internal sealed class EmbeddedAttribute : Attribute | ||
{ | ||
} | ||
} | ||
namespace System.Runtime.CompilerServices | ||
{ | ||
[CompilerGenerated] | ||
[Embedded] | ||
[AttributeUsage(AttributeTargets.Module, AllowMultiple = false, Inherited = false)] | ||
internal sealed class RefSafetyRulesAttribute : Attribute | ||
{ | ||
public readonly int Version; | ||
public RefSafetyRulesAttribute(int P_0) | ||
{ | ||
Version = P_0; | ||
} | ||
} | ||
} | ||
public class MyBase | ||
{ | ||
public MyBase(string name) | ||
{ | ||
} | ||
} | ||
public class MyClass : MyBase | ||
{ | ||
public MyClass(string name) | ||
: base(name) | ||
{ | ||
} | ||
} | ||
*/ |
Oops, something went wrong.