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)
2161case ConversionKind.ConditionalExpression or ConversionKind.SwitchExpression or ConversionKind.ObjectCreation when 9397case 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)
58assert(0, type: "C", convertedType: "C", symbol: "C..ctor()", ConversionKind.ObjectCreation); 59assert(1, type: "S", convertedType: "S", symbol: "S..ctor()", ConversionKind.ObjectCreation); 60assert(2, type: "S", convertedType: "S?", symbol: "S..ctor()", ConversionKind.ObjectCreation); 133assert(0, type: "C", convertedType: "C", symbol: "C..ctor()", ConversionKind.ObjectCreation); 134assert(1, type: "S", convertedType: "S", symbol: "S..ctor()", ConversionKind.ObjectCreation); 135assert(2, type: "S", convertedType: "S?", symbol: "S..ctor()", ConversionKind.ObjectCreation); 180assert(0, type: "C", convertedType: "C", symbol: "C..ctor()", ConversionKind.ObjectCreation); 181assert(1, type: "S", convertedType: "S", symbol: "S..ctor()", ConversionKind.ObjectCreation); 182assert(2, type: "S", convertedType: "S?", symbol: "S..ctor()", ConversionKind.ObjectCreation); 230assert(0, type: "C", convertedType: "C", symbol: "C..ctor()", constant: null, ConversionKind.ObjectCreation); 231assert(1, type: "S", convertedType: "S", symbol: "S..ctor()", constant: null, ConversionKind.ObjectCreation); 232assert(2, type: "S", convertedType: "S?", symbol: "S..ctor()", constant: null, ConversionKind.ObjectCreation); 233assert(3, type: "System.Int32", convertedType: "System.Int32", symbol: "System.Int32..ctor()", constant: "0", ConversionKind.ObjectCreation); 234assert(4, type: "System.Boolean", convertedType: "System.Boolean?", symbol: "System.Boolean..ctor()", constant: "False", ConversionKind.ObjectCreation); 848Assert.Equal(ConversionKind.ObjectCreation, model.GetConversion(@new).Kind); 889Assert.Equal(ConversionKind.ObjectCreation, model.GetConversion(@new).Kind); 2924assert(0, type: "System.Index", convertedType: "System.Index", symbol: "System.Index..ctor()", ConversionKind.ObjectCreation); 2925assert(1, type: "System.Index", convertedType: "System.Index", symbol: "System.Index..ctor()", ConversionKind.ObjectCreation); 2926assert(2, type: "System.Index", convertedType: "System.Index", symbol: "System.Index..ctor()", ConversionKind.ObjectCreation); 2927assert(3, type: "System.Index", convertedType: "System.Index", symbol: "System.Index..ctor()", ConversionKind.ObjectCreation);