27 references to ObjectCreation
Microsoft.CodeAnalysis.CSharp (7)
Binder\Semantics\Conversions\Conversion.cs (2)
274internal static Conversion ObjectCreation => new Conversion(ConversionKind.ObjectCreation); 708return Kind == ConversionKind.ObjectCreation;
Binder\Semantics\Conversions\ConversionKindExtensions.cs (1)
53case ObjectCreation:
FlowAnalysis\NullableWalker.cs (2)
2179case ConversionKind.ConditionalExpression or ConversionKind.SwitchExpression or ConversionKind.ObjectCreation when 9536case ConversionKind.ObjectCreation:
Lowering\LocalRewriter\LocalRewriter_Conversion.cs (1)
45case ConversionKind.ObjectCreation:
Lowering\LocalRewriter\LocalRewriter_TupleBinaryOperator.cs (1)
237case ConversionKind.ObjectCreation:
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (20)
Semantics\ImplicitObjectCreationTests.cs (20)
53assert(0, type: "C", convertedType: "C", symbol: "C..ctor()", ConversionKind.ObjectCreation); 54assert(1, type: "S", convertedType: "S", symbol: "S..ctor()", ConversionKind.ObjectCreation); 55assert(2, type: "S", convertedType: "S?", symbol: "S..ctor()", ConversionKind.ObjectCreation); 128assert(0, type: "C", convertedType: "C", symbol: "C..ctor()", ConversionKind.ObjectCreation); 129assert(1, type: "S", convertedType: "S", symbol: "S..ctor()", ConversionKind.ObjectCreation); 130assert(2, type: "S", convertedType: "S?", symbol: "S..ctor()", ConversionKind.ObjectCreation); 175assert(0, type: "C", convertedType: "C", symbol: "C..ctor()", ConversionKind.ObjectCreation); 176assert(1, type: "S", convertedType: "S", symbol: "S..ctor()", ConversionKind.ObjectCreation); 177assert(2, type: "S", convertedType: "S?", symbol: "S..ctor()", ConversionKind.ObjectCreation); 225assert(0, type: "C", convertedType: "C", symbol: "C..ctor()", constant: null, ConversionKind.ObjectCreation); 226assert(1, type: "S", convertedType: "S", symbol: "S..ctor()", constant: null, ConversionKind.ObjectCreation); 227assert(2, type: "S", convertedType: "S?", symbol: "S..ctor()", constant: null, ConversionKind.ObjectCreation); 228assert(3, type: "System.Int32", convertedType: "System.Int32", symbol: "System.Int32..ctor()", constant: "0", ConversionKind.ObjectCreation); 229assert(4, type: "System.Boolean", convertedType: "System.Boolean?", symbol: "System.Boolean..ctor()", constant: "False", ConversionKind.ObjectCreation); 843Assert.Equal(ConversionKind.ObjectCreation, model.GetConversion(@new).Kind); 884Assert.Equal(ConversionKind.ObjectCreation, model.GetConversion(@new).Kind); 2915assert(0, type: "System.Index", convertedType: "System.Index", symbol: "System.Index..ctor()", ConversionKind.ObjectCreation); 2916assert(1, type: "System.Index", convertedType: "System.Index", symbol: "System.Index..ctor()", ConversionKind.ObjectCreation); 2917assert(2, type: "System.Index", convertedType: "System.Index", symbol: "System.Index..ctor()", ConversionKind.ObjectCreation); 2918assert(3, type: "System.Index", convertedType: "System.Index", symbol: "System.Index..ctor()", ConversionKind.ObjectCreation);