C#: Update nullness analyses

Port the SSA-based logic from the Java nullness analyses.
This commit is contained in:
Tom Hvitved
2018-11-16 14:39:55 +01:00
parent d2a431e6f3
commit 80144a00c8
26 changed files with 1527 additions and 583 deletions

View File

@@ -0,0 +1,16 @@
using System;
class Good
{
void DoPrint(object o)
{
if (o != null)
Console.WriteLine(o.ToString());
}
void M()
{
DoPrint("Hello");
DoPrint(null);
}
}