Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

C# 8.0 nullable reference types #1425

Merged
merged 22 commits into from Mar 2, 2019
Merged
Changes from 1 commit
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
7a058f6
First attempt at integrating C# nullable reference types into the typ…
dgrunwald Feb 14, 2019
166b7de
Fix NRE in ApplyAttributeTypeVisitor.VisitTypeDefinition()
dgrunwald Feb 14, 2019
bbbfe81
Nullability of type parameters "where T : class?"
dgrunwald Feb 16, 2019
06cf9c1
Avoid exceptions on IType->ArrayType or IType->ITypeParameter casts d…
dgrunwald Feb 16, 2019
2f35374
Support "where T : unmanaged" constraints.
dgrunwald Feb 24, 2019
0238e64
Fix [DecimalConstant] parameters
dgrunwald Feb 24, 2019
45ae1ed
Merge branch 'origin/master' into nullable-reference-types
dgrunwald Feb 24, 2019
113acd4
Improve decompiler behavior is System.ValueTuple exists in multiple r…
dgrunwald Feb 24, 2019
b7b697f
Only reference Microsoft.VisualBasic.dll in VB-related tests.
dgrunwald Feb 24, 2019
be1ef7d
Re-generate the IL for test cases with Roslyn 2.10.0.
dgrunwald Feb 24, 2019
3fac3c0
Upgrade Roslyn for tests to 3.0.0-beta3.
dgrunwald Feb 24, 2019
482da77
Reenable LiftedOperators tests.
dgrunwald Feb 24, 2019
af69c03
Enable ValueTypes.cs pretty test
dgrunwald Feb 24, 2019
67124b3
Adjust tests to sorted top-level-types.
dgrunwald Feb 24, 2019
72508b5
Add test for C# 8 nullable reference types; and fix some bugs.
dgrunwald Feb 24, 2019
d42cf99
Fix dynamic transforms because https://github.com/dotnet/roslyn/issue…
siegfriedpammer Feb 25, 2019
e45ffc1
Update to Roslyn 3.0.0-beta4
dgrunwald Feb 28, 2019
80bc89f
Fix SwitchOnStringTransform.SimplifyCascadingIfStatements to handle n…
siegfriedpammer Mar 2, 2019
9c62f11
Add new switch(string) pattern for Roslyn.
siegfriedpammer Mar 2, 2019
6e49efd
Extend ILInlining to work with StringToInt instructions inside Switch…
siegfriedpammer Mar 2, 2019
7671ac6
Fix switch on nullable for Roslyn. Ignore switch on bool because it i…
siegfriedpammer Mar 2, 2019
32bc246
Set VersionName = "preview1"
siegfriedpammer Mar 2, 2019
File filter...
Filter file types
Jump to…
Jump to file or symbol
Failed to load files and symbols.
+38 −38
Diff settings

Always

Just for now

Adjust tests to sorted top-level-types.

  • Loading branch information...
dgrunwald committed Feb 24, 2019
commit 67124b3b9d0d9810fa5209f3201f8281556a3c2c
@@ -1,4 +1,3 @@

// C:\Users\Siegfried\Documents\Visual Studio 2017\Projects\ConsoleApp13\ConsoleApplication1\bin\Debug\ConsoleApplication1.exe
// ConsoleApplication1, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
// Global type: <Module>
@@ -170,10 +169,10 @@ public static int main(string[] argv)
}
namespace _003CStartupCode_0024ConsoleApplication1_003E
{
internal static class _0024Program
internal static class _0024AssemblyInfo
{
}
internal static class _0024AssemblyInfo
internal static class _0024Program
{
}
}
@@ -172,10 +172,10 @@ public static int main(string[] argv)
}
namespace _003CStartupCode_0024ConsoleApplication1_003E
{
internal static class _0024Program
internal static class _0024AssemblyInfo
{
}
internal static class _0024AssemblyInfo
internal static class _0024Program
{
}
}
@@ -12,16 +12,7 @@
[assembly: TargetFramework(".NETCoreApp,Version=v2.1", FrameworkDisplayName = "")]
[assembly: AssemblyConfiguration("Debug")]
[assembly: AssemblyFileVersion("1.0.0.0")]
namespace Microsoft.VisualBasic
{
[AttributeUsage(AttributeTargets.Assembly | AttributeTargets.Module | AttributeTargets.Class, Inherited = false)]
[CompilerGenerated]
[EditorBrowsable(EditorBrowsableState.Never)]
[Embedded]
internal sealed class Embedded : Attribute
{
}
}

namespace Issue1325
{
[StandardModule]
@@ -40,19 +31,7 @@ public static void TestCode(Test t, int i)
t.Unparameterized = str + "asdf";
}
}
}
namespace Microsoft.VisualBasic.CompilerServices
{
[EditorBrowsable(EditorBrowsableState.Never)]
[AttributeUsage(AttributeTargets.Class, Inherited = false)]
[CompilerGenerated]
[Embedded]
internal sealed class StandardModuleAttribute : Attribute
{
}
}
namespace Issue1325
{

internal class Test
{
[DebuggerBrowsable(DebuggerBrowsableState.Never)]
@@ -71,4 +50,24 @@ internal class Test
set;
}
}
}
}
namespace Microsoft.VisualBasic
{
[AttributeUsage(AttributeTargets.Assembly | AttributeTargets.Module | AttributeTargets.Class, Inherited = false)]
[CompilerGenerated]
[EditorBrowsable(EditorBrowsableState.Never)]
[Embedded]
internal sealed class Embedded : Attribute
{
}
}
namespace Microsoft.VisualBasic.CompilerServices
{
[EditorBrowsable(EditorBrowsableState.Never)]
[AttributeUsage(AttributeTargets.Class, Inherited = false)]
[CompilerGenerated]
[Embedded]
internal sealed class StandardModuleAttribute : Attribute
{
}
}
@@ -1,6 +1,17 @@
using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;

[CompilerGenerated]
internal sealed class _003CPrivateImplementationDetails_003E
{
[StructLayout(LayoutKind.Explicit, Pack = 1, Size = 12)]
private struct __StaticArrayInitTypeSize_003D12
{
}
internal static readonly __StaticArrayInitTypeSize_003D12 E429CCA3F703A39CC5954A6572FEC9086135B34E/* Not supported: data(01 00 00 00 02 00 00 00 03 00 00 00) */;
}

namespace ICSharpCode.Decompiler.Tests.TestCases.Ugly
{
public class NoArrayInitializers
@@ -21,12 +32,3 @@ public int[] VariableArray(int a, int b)
}
}
}
[CompilerGenerated]
internal sealed class _003CPrivateImplementationDetails_003E
{
[StructLayout(LayoutKind.Explicit, Pack = 1, Size = 12)]
private struct __StaticArrayInitTypeSize_003D12
{
}
internal static readonly __StaticArrayInitTypeSize_003D12 E429CCA3F703A39CC5954A6572FEC9086135B34E/* Not supported: data(01 00 00 00 02 00 00 00 03 00 00 00) */;
}
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.