48 references to ImplicitNullable
Microsoft.CodeAnalysis.CSharp (48)
Binder\Binder_Operators.cs (2)
3664
case ConversionKind.
ImplicitNullable
:
3883
case ConversionKind.
ImplicitNullable
:
Binder\Semantics\Conversions\Conversion.cs (14)
319
internal static readonly Conversion ImplicitNullableWithExplicitEnumerationUnderlying = new Conversion(ConversionKind.
ImplicitNullable
, ExplicitEnumerationUnderlying);
320
internal static readonly Conversion ImplicitNullableWithPointerToIntegerUnderlying = new Conversion(ConversionKind.
ImplicitNullable
, PointerToIntegerUnderlying);
321
internal static readonly Conversion ImplicitNullableWithIdentityUnderlying = new Conversion(ConversionKind.
ImplicitNullable
, IdentityUnderlying);
322
internal static readonly Conversion ImplicitNullableWithImplicitNumericUnderlying = new Conversion(ConversionKind.
ImplicitNullable
, ImplicitNumericUnderlying);
323
internal static readonly Conversion ImplicitNullableWithExplicitNumericUnderlying = new Conversion(ConversionKind.
ImplicitNullable
, ExplicitNumericUnderlying);
324
internal static readonly Conversion ImplicitNullableWithImplicitConstantUnderlying = new Conversion(ConversionKind.
ImplicitNullable
, ImplicitConstantUnderlying);
350
Debug.Assert(kind == ConversionKind.
ImplicitNullable
|| kind == ConversionKind.ExplicitNullable);
354
ConversionKind.Identity => kind == ConversionKind.
ImplicitNullable
? ImplicitNullableWithIdentityUnderlying : ExplicitNullableWithIdentityUnderlying,
355
ConversionKind.ImplicitConstant => kind == ConversionKind.
ImplicitNullable
? ImplicitNullableWithImplicitConstantUnderlying : ExplicitNullableWithImplicitConstantUnderlying,
356
ConversionKind.ImplicitNumeric => kind == ConversionKind.
ImplicitNullable
? ImplicitNullableWithImplicitNumericUnderlying : ExplicitNullableWithImplicitNumericUnderlying,
357
ConversionKind.ExplicitNumeric => kind == ConversionKind.
ImplicitNullable
? ImplicitNullableWithExplicitNumericUnderlying : ExplicitNullableWithExplicitNumericUnderlying,
358
ConversionKind.ExplicitEnumeration => kind == ConversionKind.
ImplicitNullable
? ImplicitNullableWithExplicitEnumerationUnderlying : ExplicitNullableWithExplicitEnumerationUnderlying,
359
ConversionKind.ExplicitPointerToInteger => kind == ConversionKind.
ImplicitNullable
? ImplicitNullableWithPointerToIntegerUnderlying : ExplicitNullableWithPointerToIntegerUnderlying,
786
return Kind == ConversionKind.
ImplicitNullable
|| Kind == ConversionKind.ExplicitNullable;
Binder\Semantics\Conversions\ConversionEasyOut.cs (1)
31
const byte NUL = (byte)ConversionKind.
ImplicitNullable
;
Binder\Semantics\Conversions\ConversionKindExtensions.cs (1)
32
case
ImplicitNullable
:
Binder\Semantics\Conversions\ConversionsBase.cs (8)
491
if (convKind != ConversionKind.
ImplicitNullable
&& convKind != ConversionKind.ExplicitNullable)
591
case ConversionKind.
ImplicitNullable
:
663
{ Kind: ConversionKind.
ImplicitNullable
, UnderlyingConversions: [{ Kind: ConversionKind.CollectionExpression }] } => true,
915
case ConversionKind.
ImplicitNullable
:
1018
case ConversionKind.
ImplicitNullable
:
1176
return new Conversion(ConversionKind.
ImplicitNullable
, ImmutableArray.Create(underlyingConversion));
1312
return new Conversion(ConversionKind.
ImplicitNullable
, ImmutableArray.Create(underlyingTupleConversion));
2275
return new Conversion(ConversionKind.
ImplicitNullable
, ImmutableArray.Create(tupleConversion));
Binder\Semantics\Conversions\UserDefinedImplicitConversions.cs (1)
658
case ConversionKind.
ImplicitNullable
:
CodeGen\EmitConversion.cs (1)
175
case ConversionKind.
ImplicitNullable
:
Compilation\CSharpSemanticModel.cs (1)
2174
else if (highestBoundExpr is BoundConversion { ConversionKind: ConversionKind.
ImplicitNullable
, Conversion.UnderlyingConversions: [{ Kind: ConversionKind.CollectionExpression }] } boundConversion)
FlowAnalysis\AbstractFlowPass.cs (1)
2635
|| (expr is BoundConversion { ConversionKind: ConversionKind.ExplicitNullable or ConversionKind.
ImplicitNullable
} conv
FlowAnalysis\NullableWalker.cs (6)
8642
case ConversionKind.
ImplicitNullable
:
8870
conversion = Conversion.MakeNullableConversion(ConversionKind.
ImplicitNullable
, Conversion.Identity);
9047
case ConversionKind.
ImplicitNullable
:
9089
goto case ConversionKind.
ImplicitNullable
;
10374
underlyingConversion.Kind == ConversionKind.
ImplicitNullable
&&
11609
case ConversionKind.
ImplicitNullable
:
Lowering\ClosureConversion\ExpressionLambdaRewriter.cs (1)
724
case ConversionKind.
ImplicitNullable
:
Lowering\DiagnosticsPass_Warnings.cs (2)
580
if (conv.ConversionKind == ConversionKind.
ImplicitNullable
)
868
if (conv.ConversionKind == ConversionKind.ExplicitNullable || conv.ConversionKind == ConversionKind.
ImplicitNullable
)
Lowering\Extensions.cs (2)
61
case ConversionKind.
ImplicitNullable
:
115
case ConversionKind.
ImplicitNullable
:
Lowering\LocalRewriter\LocalRewriter_Call.cs (1)
585
case ConversionKind.
ImplicitNullable
:
Lowering\LocalRewriter\LocalRewriter_Conversion.cs (4)
61
case ConversionKind.
ImplicitNullable
when node.Conversion.UnderlyingConversions[0].Kind is ConversionKind.CollectionExpression:
365
case ConversionKind.
ImplicitNullable
:
1007
case BoundConversion { Conversion: { Kind: ConversionKind.
ImplicitNullable
}, Operand: var convertedArgument }
1012
case BoundConversion { Conversion: { Kind: ConversionKind.
ImplicitNullable
, UnderlyingConversions: var underlying }, Operand: var convertedArgument } conversion
Lowering\LocalRewriter\LocalRewriter_TupleBinaryOperator.cs (2)
89
(kind == ConversionKind.
ImplicitNullable
|| kind == ConversionKind.ExplicitNullable) &&
211
var conversion = Conversion.MakeNullableConversion(ConversionKind.
ImplicitNullable
, Conversion.Identity);