1 write to ConstrainedToTypeOpt
Microsoft.CodeAnalysis.CSharp (1)
Generated\BoundNodes.xml.Generated.cs (1)
1747
this.
ConstrainedToTypeOpt
= constrainedToTypeOpt;
11 references to ConstrainedToTypeOpt
Microsoft.CodeAnalysis.CSharp (11)
BoundTree\NullabilityRewriter.cs (1)
108
BoundUserDefinedConditionalLogicalOperator logical => logical.Update(logical.OperatorKind, logical.LogicalOperator, logical.TrueOperator, logical.FalseOperator, logical.
ConstrainedToTypeOpt
, logical.ResultKind, logical.OriginalUserDefinedOperatorsOpt, leftChild, right, type!),
Generated\BoundNodes.xml.Generated.cs (3)
1765
if (operatorKind != this.OperatorKind || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(logicalOperator, this.LogicalOperator) || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(trueOperator, this.TrueOperator) || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(falseOperator, this.FalseOperator) || !TypeSymbol.Equals(constrainedToTypeOpt, this.
ConstrainedToTypeOpt
, TypeCompareKind.ConsiderEverything) || resultKind != this.ResultKind || originalUserDefinedOperatorsOpt != this.OriginalUserDefinedOperatorsOpt || left != this.Left || right != this.Right || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything))
11034
TypeSymbol? constrainedToTypeOpt = this.VisitType(node.
ConstrainedToTypeOpt
);
15319
new TreeDumperNode("constrainedToTypeOpt", node.
ConstrainedToTypeOpt
, null),
Lowering\LocalRewriter\LocalRewriter_BinaryOperator.cs (4)
80
return node.Update(operatorKind, node.LogicalOperator, node.TrueOperator, node.FalseOperator, node.
ConstrainedToTypeOpt
, node.ResultKind, loweredLeft, loweredRight, type);
87
var falseOperatorCall = BoundCall.Synthesized(syntax, receiverOpt: node.
ConstrainedToTypeOpt
is null ? null : new BoundTypeExpression(syntax, aliasOpt: null, node.
ConstrainedToTypeOpt
),
92
var andOperatorCall = LowerUserDefinedBinaryOperator(syntax, operatorKind & ~BinaryOperatorKind.Logical, boundTemp, loweredRight, type, node.LogicalOperator, node.
ConstrainedToTypeOpt
);
Lowering\MethodToClassRewriter.cs (1)
317
VisitType(node.
ConstrainedToTypeOpt
),
Operations\CSharpOperationFactory.cs (2)
1497
TypeSymbol? constrainedToTypeOpt = GetConstrainedToTypeForOperator(boundBinaryOperator.LogicalOperator, boundBinaryOperator.
ConstrainedToTypeOpt
) ??
1501
boundBinaryOperator.
ConstrainedToTypeOpt
);