3 writes to IsSuppressed
Microsoft.CodeAnalysis.CSharp (3)
BoundTree\BoundExpression.cs (1)
45
result.
IsSuppressed
= suppress;
BoundTree\BoundExpressionWithNullability.cs (1)
14
IsSuppressed
= expression.IsSuppressed;
BoundTree\BoundNode.cs (1)
158
this.
IsSuppressed
= original.IsSuppressed;
185 references to IsSuppressed
Microsoft.CodeAnalysis.CSharp (185)
Binder\Binder_Conversions.cs (5)
273
.WithSuppression(source.
IsSuppressed
);
994
elementPlaceholder = (BoundValuePlaceholder)elementPlaceholder.WithSuppression(element.Expression.
IsSuppressed
);
1959
.WithSuppression(source.
IsSuppressed
);
1989
source.DefaultLabel, source.ReportedNotExhaustive, destination, hasErrors || source.HasErrors).WithSuppression(source.
IsSuppressed
);
2498
targetType).WithSuppression(sourceTuple.
IsSuppressed
);
Binder\Binder_Expressions.cs (4)
350
sourceTuple.HasErrors).WithSuppression(sourceTuple.
IsSuppressed
);
366
hasErrors: true).WithSuppression(defaultExpr.
IsSuppressed
);
3851
isSuppressed = receiver.
IsSuppressed
;
3860
isSuppressed = arguments[argumentIndex].
IsSuppressed
;
Binder\Binder_Operators.cs (2)
3878
if (expr.
IsSuppressed
)
4143
if (expr.
IsSuppressed
)
Binder\Binder_Statements.cs (1)
3463
if (expression.
IsSuppressed
)
BoundTree\BoundExpression.cs (2)
36
if (this.
IsSuppressed
== suppress)
42
Debug.Assert(suppress || !this.
IsSuppressed
);
BoundTree\BoundExpressionWithNullability.cs (1)
14
IsSuppressed = expression.
IsSuppressed
;
BoundTree\BoundNode.cs (2)
157
Debug.Assert(original is BoundExpression || !original.
IsSuppressed
);
158
this.IsSuppressed = original.
IsSuppressed
;
BoundTree\UnboundLambda.cs (1)
459
=> this.
IsSuppressed
? (BoundLambda)lambda.WithSuppression() : lambda;
FlowAnalysis\NullableWalker.cs (19)
2424
if (unwrappedValue.
IsSuppressed
)
3119
if (!expr.
IsSuppressed
&& RemoveConversion(expr, includeExplicitConversions: false).expression.Kind != BoundKind.ThrowExpression)
3721
bool shouldMakeNotNullRvalue(BoundExpression node) => node.
IsSuppressed
|| node.HasAnyErrors || !IsReachable();
6377
if (!node.
IsSuppressed
&& IsNullabilityMismatch(source, destination))
7828
if (!conversion.Exists && !argumentNoConversion.
IsSuppressed
)
7860
if (!argumentNoConversion.
IsSuppressed
)
7975
trackNullableStateForAssignment(parameterValue, lValueType, MakeSlot(argument), parameterWithState, argument.
IsSuppressed
, parameterAnnotations);
7978
if (!argument.
IsSuppressed
)
8019
trackNullableStateForAssignment(parameterValue, lValueType, MakeSlot(argument), parameterWithState, argument.
IsSuppressed
, parameterAnnotations);
8022
if (!argument.
IsSuppressed
)
8362
return expr.ConstantValueOpt == ConstantValue.NotAvailable || !expr.ConstantValueOpt.IsNull || expr.
IsSuppressed
? NullableAnnotation.NotAnnotated : NullableAnnotation.Annotated;
8580
if (!canConvertNestedNullability && reportMismatch && !sourceExpression.
IsSuppressed
)
9327
if (isSuppressed || conversionOperand.
IsSuppressed
)
10187
if (!group.
IsSuppressed
)
10220
if (!lambda.
IsSuppressed
)
10257
if (!arg.
IsSuppressed
&&
11731
if (!reportedDiagnostic && !(collectionExpression is BoundConversion { Operand: {
IsSuppressed
: true } }))
11819
if (node.Expression is not BoundConversion { Operand.
IsSuppressed
: true } &&
11856
isSuppressed: node.Expression is BoundConversion { Operand.
IsSuppressed
: true },
FlowAnalysis\NullableWalker_Patterns.cs (1)
1052
return node.
IsSuppressed
? GetOrCreatePlaceholderSlot(node) : MakeSlot(node);
Generated\BoundNodes.xml.Generated.cs (146)
15172
new TreeDumperNode("isSuppressed", node.
IsSuppressed
, null),
15181
new TreeDumperNode("isSuppressed", node.
IsSuppressed
, null),
15190
new TreeDumperNode("isSuppressed", node.
IsSuppressed
, null),
15197
new TreeDumperNode("isSuppressed", node.
IsSuppressed
, null),
15204
new TreeDumperNode("isSuppressed", node.
IsSuppressed
, null),
15211
new TreeDumperNode("isSuppressed", node.
IsSuppressed
, null),
15219
new TreeDumperNode("isSuppressed", node.
IsSuppressed
, null),
15226
new TreeDumperNode("isSuppressed", node.
IsSuppressed
, null),
15234
new TreeDumperNode("isSuppressed", node.
IsSuppressed
, null),
15241
new TreeDumperNode("isSuppressed", node.
IsSuppressed
, null),
15248
new TreeDumperNode("isSuppressed", node.
IsSuppressed
, null),
15255
new TreeDumperNode("isSuppressed", node.
IsSuppressed
, null),
15262
new TreeDumperNode("isSuppressed", node.
IsSuppressed
, null),
15270
new TreeDumperNode("isSuppressed", node.
IsSuppressed
, null),
15278
new TreeDumperNode("isSuppressed", node.
IsSuppressed
, null),
15288
new TreeDumperNode("isSuppressed", node.
IsSuppressed
, null),
15311
new TreeDumperNode("isSuppressed", node.
IsSuppressed
, null),
15319
new TreeDumperNode("isSuppressed", node.
IsSuppressed
, null),
15328
new TreeDumperNode("isSuppressed", node.
IsSuppressed
, null),
15342
new TreeDumperNode("isSuppressed", node.
IsSuppressed
, null),
15359
new TreeDumperNode("isSuppressed", node.
IsSuppressed
, null),
15368
new TreeDumperNode("isSuppressed", node.
IsSuppressed
, null),
15376
new TreeDumperNode("isSuppressed", node.
IsSuppressed
, null),
15385
new TreeDumperNode("isSuppressed", node.
IsSuppressed
, null),
15394
new TreeDumperNode("isSuppressed", node.
IsSuppressed
, null),
15405
new TreeDumperNode("isSuppressed", node.
IsSuppressed
, null),
15416
new TreeDumperNode("isSuppressed", node.
IsSuppressed
, null),
15425
new TreeDumperNode("isSuppressed", node.
IsSuppressed
, null),
15433
new TreeDumperNode("isSuppressed", node.
IsSuppressed
, null),
15442
new TreeDumperNode("isSuppressed", node.
IsSuppressed
, null),
15451
new TreeDumperNode("isSuppressed", node.
IsSuppressed
, null),
15461
new TreeDumperNode("isSuppressed", node.
IsSuppressed
, null),
15473
new TreeDumperNode("isSuppressed", node.
IsSuppressed
, null),
15484
new TreeDumperNode("isSuppressed", node.
IsSuppressed
, null),
15502
new TreeDumperNode("isSuppressed", node.
IsSuppressed
, null),
15518
new TreeDumperNode("isSuppressed", node.
IsSuppressed
, null),
15528
new TreeDumperNode("isSuppressed", node.
IsSuppressed
, null),
15538
new TreeDumperNode("isSuppressed", node.
IsSuppressed
, null),
15551
new TreeDumperNode("isSuppressed", node.
IsSuppressed
, null),
15560
new TreeDumperNode("isSuppressed", node.
IsSuppressed
, null),
15572
new TreeDumperNode("isSuppressed", node.
IsSuppressed
, null),
15586
new TreeDumperNode("isSuppressed", node.
IsSuppressed
, null),
15595
new TreeDumperNode("isSuppressed", node.
IsSuppressed
, null),
15603
new TreeDumperNode("isSuppressed", node.
IsSuppressed
, null),
15611
new TreeDumperNode("isSuppressed", node.
IsSuppressed
, null),
15633
new TreeDumperNode("isSuppressed", node.
IsSuppressed
, null),
15642
new TreeDumperNode("isSuppressed", node.
IsSuppressed
, null),
15658
new TreeDumperNode("isSuppressed", node.
IsSuppressed
, null),
15667
new TreeDumperNode("isSuppressed", node.
IsSuppressed
, null),
15676
new TreeDumperNode("isSuppressed", node.
IsSuppressed
, null),
15683
new TreeDumperNode("isSuppressed", node.
IsSuppressed
, null),
15690
new TreeDumperNode("isSuppressed", node.
IsSuppressed
, null),
15698
new TreeDumperNode("isSuppressed", node.
IsSuppressed
, null),
15705
new TreeDumperNode("isSuppressed", node.
IsSuppressed
, null),
15712
new TreeDumperNode("isSuppressed", node.
IsSuppressed
, null),
15719
new TreeDumperNode("isSuppressed", node.
IsSuppressed
, null),
15726
new TreeDumperNode("isSuppressed", node.
IsSuppressed
, null),
15734
new TreeDumperNode("isSuppressed", node.
IsSuppressed
, null),
15743
new TreeDumperNode("isSuppressed", node.
IsSuppressed
, null),
15752
new TreeDumperNode("isSuppressed", node.
IsSuppressed
, null),
15759
new TreeDumperNode("isSuppressed", node.
IsSuppressed
, null),
15768
new TreeDumperNode("isSuppressed", node.
IsSuppressed
, null),
15778
new TreeDumperNode("isSuppressed", node.
IsSuppressed
, null),
15789
new TreeDumperNode("isSuppressed", node.
IsSuppressed
, null),
15798
new TreeDumperNode("isSuppressed", node.
IsSuppressed
, null),
15812
new TreeDumperNode("isSuppressed", node.
IsSuppressed
, null),
15821
new TreeDumperNode("isSuppressed", node.
IsSuppressed
, null),
15828
new TreeDumperNode("isSuppressed", node.
IsSuppressed
, null),
15837
new TreeDumperNode("isSuppressed", node.
IsSuppressed
, null),
15849
new TreeDumperNode("isSuppressed", node.
IsSuppressed
, null),
16124
new TreeDumperNode("isSuppressed", node.
IsSuppressed
, null),
16132
new TreeDumperNode("isSuppressed", node.
IsSuppressed
, null),
16139
new TreeDumperNode("isSuppressed", node.
IsSuppressed
, null),
16146
new TreeDumperNode("isSuppressed", node.
IsSuppressed
, null),
16153
new TreeDumperNode("isSuppressed", node.
IsSuppressed
, null),
16160
new TreeDumperNode("isSuppressed", node.
IsSuppressed
, null),
16171
new TreeDumperNode("isSuppressed", node.
IsSuppressed
, null),
16180
new TreeDumperNode("isSuppressed", node.
IsSuppressed
, null),
16189
new TreeDumperNode("isSuppressed", node.
IsSuppressed
, null),
16197
new TreeDumperNode("isSuppressed", node.
IsSuppressed
, null),
16226
new TreeDumperNode("isSuppressed", node.
IsSuppressed
, null),
16262
new TreeDumperNode("isSuppressed", node.
IsSuppressed
, null),
16276
new TreeDumperNode("isSuppressed", node.
IsSuppressed
, null),
16448
new TreeDumperNode("isSuppressed", node.
IsSuppressed
, null),
16458
new TreeDumperNode("isSuppressed", node.
IsSuppressed
, null),
16468
new TreeDumperNode("isSuppressed", node.
IsSuppressed
, null),
16480
new TreeDumperNode("isSuppressed", node.
IsSuppressed
, null),
16492
new TreeDumperNode("isSuppressed", node.
IsSuppressed
, null),
16501
new TreeDumperNode("isSuppressed", node.
IsSuppressed
, null),
16514
new TreeDumperNode("isSuppressed", node.
IsSuppressed
, null),
16522
new TreeDumperNode("isSuppressed", node.
IsSuppressed
, null),
16531
new TreeDumperNode("isSuppressed", node.
IsSuppressed
, null),
16547
new TreeDumperNode("isSuppressed", node.
IsSuppressed
, null),
16557
new TreeDumperNode("isSuppressed", node.
IsSuppressed
, null),
16577
new TreeDumperNode("isSuppressed", node.
IsSuppressed
, null),
16589
new TreeDumperNode("isSuppressed", node.
IsSuppressed
, null),
16604
new TreeDumperNode("isSuppressed", node.
IsSuppressed
, null),
16616
new TreeDumperNode("isSuppressed", node.
IsSuppressed
, null),
16634
new TreeDumperNode("isSuppressed", node.
IsSuppressed
, null),
16642
new TreeDumperNode("isSuppressed", node.
IsSuppressed
, null),
16658
new TreeDumperNode("isSuppressed", node.
IsSuppressed
, null),
16665
new TreeDumperNode("isSuppressed", node.
IsSuppressed
, null),
16687
new TreeDumperNode("isSuppressed", node.
IsSuppressed
, null),
16699
new TreeDumperNode("isSuppressed", node.
IsSuppressed
, null),
16713
new TreeDumperNode("isSuppressed", node.
IsSuppressed
, null),
16723
new TreeDumperNode("isSuppressed", node.
IsSuppressed
, null),
16732
new TreeDumperNode("isSuppressed", node.
IsSuppressed
, null),
16749
new TreeDumperNode("isSuppressed", node.
IsSuppressed
, null),
16758
new TreeDumperNode("isSuppressed", node.
IsSuppressed
, null),
16767
new TreeDumperNode("isSuppressed", node.
IsSuppressed
, null),
16782
new TreeDumperNode("isSuppressed", node.
IsSuppressed
, null),
16792
new TreeDumperNode("isSuppressed", node.
IsSuppressed
, null),
16799
new TreeDumperNode("isSuppressed", node.
IsSuppressed
, null),
16809
new TreeDumperNode("isSuppressed", node.
IsSuppressed
, null),
16817
new TreeDumperNode("isSuppressed", node.
IsSuppressed
, null),
16826
new TreeDumperNode("isSuppressed", node.
IsSuppressed
, null),
16837
new TreeDumperNode("isSuppressed", node.
IsSuppressed
, null),
16846
new TreeDumperNode("isSuppressed", node.
IsSuppressed
, null),
16855
new TreeDumperNode("isSuppressed", node.
IsSuppressed
, null),
16865
new TreeDumperNode("isSuppressed", node.
IsSuppressed
, null),
16875
new TreeDumperNode("isSuppressed", node.
IsSuppressed
, null),
16888
new TreeDumperNode("isSuppressed", node.
IsSuppressed
, null),
16896
new TreeDumperNode("isSuppressed", node.
IsSuppressed
, null),
16908
new TreeDumperNode("isSuppressed", node.
IsSuppressed
, null),
16919
new TreeDumperNode("isSuppressed", node.
IsSuppressed
, null),
16937
new TreeDumperNode("isSuppressed", node.
IsSuppressed
, null),
16950
new TreeDumperNode("isSuppressed", node.
IsSuppressed
, null),
16961
new TreeDumperNode("isSuppressed", node.
IsSuppressed
, null),
16973
new TreeDumperNode("isSuppressed", node.
IsSuppressed
, null),
16985
new TreeDumperNode("isSuppressed", node.
IsSuppressed
, null),
16995
new TreeDumperNode("isSuppressed", node.
IsSuppressed
, null),
17008
new TreeDumperNode("isSuppressed", node.
IsSuppressed
, null),
17023
new TreeDumperNode("isSuppressed", node.
IsSuppressed
, null),
17032
new TreeDumperNode("isSuppressed", node.
IsSuppressed
, null),
17042
new TreeDumperNode("isSuppressed", node.
IsSuppressed
, null),
17049
new TreeDumperNode("isSuppressed", node.
IsSuppressed
, null),
17057
new TreeDumperNode("isSuppressed", node.
IsSuppressed
, null),
17068
new TreeDumperNode("isSuppressed", node.
IsSuppressed
, null),
17081
new TreeDumperNode("isSuppressed", node.
IsSuppressed
, null),
17227
new TreeDumperNode("isSuppressed", node.
IsSuppressed
, null),
17235
new TreeDumperNode("isSuppressed", node.
IsSuppressed
, null),
17244
new TreeDumperNode("isSuppressed", node.
IsSuppressed
, null),
17253
new TreeDumperNode("isSuppressed", node.
IsSuppressed
, null),
17262
new TreeDumperNode("isSuppressed", node.
IsSuppressed
, null),
17287
new TreeDumperNode("isSuppressed", node.
IsSuppressed
, null),
17297
new TreeDumperNode("isSuppressed", node.
IsSuppressed
, null),
Lowering\LocalRewriter\LocalRewriter_TupleBinaryOperator.cs (1)
462
hasErrors: expr.HasErrors).WithSuppression(expr.
IsSuppressed
);