C#: Populate expression type nullability and nullable flow state.

This commit is contained in:
Calum Grant
2019-11-26 14:23:50 +00:00
committed by Calum Grant
parent 0327b83958
commit 6c9ebaba0b
12 changed files with 242 additions and 30 deletions

View File

@@ -58,7 +58,7 @@ namespace Semmle.Extraction.CSharp.Entities
}
var initInfo = new ExpressionInfo(Context,
new AnnotatedType(initializerType, Kinds.TypeAnnotation.NotAnnotated),
new AnnotatedType(initializerType, NullableAnnotation.None),
Context.Create(initializer.ThisOrBaseKeyword.GetLocation()),
Kinds.ExprKind.CONSTRUCTOR_INIT,
this,