29 references to Intersect
Microsoft.CodeAnalysis.CSharp (29)
Binder\Binder.ValueChecks.cs (27)
2249
escapeScope = escapeScope.
Intersect
(GetValEscapeOfInterpolatedStringHandlerCalls(expression));
2323
escapeScope = escapeScope.
Intersect
(argumentEscape);
2339
escapeScope = escapeScope.
Intersect
(GetValEscape(methodInvocationInfo.Receiver));
2376
escapeScope = escapeScope.
Intersect
(argEscape);
2404
escapeScope = escapeScope.
Intersect
(argEscape);
3250
inferredDestinationValEscape = inferredDestinationValEscape.
Intersect
(GetValEscape(argument));
3335
inferredDestinationValEscape = inferredDestinationValEscape.
Intersect
(isRefEscape
3788
.
Intersect
(GetRefEscape(conditional.Alternative));
4449
return consEscape.
Intersect
(GetValEscape(conditional.Alternative));
4455
.
Intersect
(GetValEscape(coalescingOp.RightOperand));
4567
escape = escape.
Intersect
(GetValEscape(initializerOpt));
4582
escape = escape.
Intersect
(GetValEscape(initializerOpt));
4592
.
Intersect
(GetValEscape(withExpression.InitializerExpression));
4649
.
Intersect
(GetValEscape(nullCoalescingAssignment.RightOperand));
4692
.
Intersect
(GetValEscape(compound.Right));
4705
.
Intersect
(GetValEscape(binary.Right));
4711
.
Intersect
(range.RightOperandOpt is { } right ? GetValEscape(right) : SafeContext.CallingMethod);
4835
scope = scope.
Intersect
(elementSafeContext);
4886
narrowestScope = narrowestScope.
Intersect
(GetValEscape(element));
4897
result = result.
Intersect
(expr is BoundCollectionElementInitializer colElement
4917
result = result.
Intersect
(exprResult);
5004
receiverEscapeScope = escapeScope.
Intersect
(receiverEscapeScope);
5008
return receiverEscapeScope.
Intersect
(rightEscapeScope);
5033
result = result.
Intersect
(GetValEscape(expression));
5904
scope = scope.
Intersect
(GetValEscapeOfInterpolatedStringHandlerCalls(binary.Right));
5909
return scope.
Intersect
(getPartsScope(interpolatedString));
5928
scope = scope.
Intersect
(GetInvocationEscapeToReceiver(
Binder\RefSafetyAnalysis.cs (2)
1382
elementsScope = elementsScope.
Intersect
(spreadEscape);
1412
elementsScope = elementsScope.
Intersect
(elementSafeContext);