29 references to Intersect
Microsoft.CodeAnalysis.CSharp (29)
Binder\Binder.ValueChecks.cs (27)
2247
escapeScope = escapeScope.
Intersect
(GetValEscapeOfInterpolatedStringHandlerCalls(expression));
2321
escapeScope = escapeScope.
Intersect
(argumentEscape);
2337
escapeScope = escapeScope.
Intersect
(GetValEscape(methodInvocationInfo.Receiver));
2374
escapeScope = escapeScope.
Intersect
(argEscape);
2402
escapeScope = escapeScope.
Intersect
(argEscape);
3223
inferredDestinationValEscape = inferredDestinationValEscape.
Intersect
(GetValEscape(argument));
3308
inferredDestinationValEscape = inferredDestinationValEscape.
Intersect
(isRefEscape
3768
.
Intersect
(GetRefEscape(conditional.Alternative));
4437
return consEscape.
Intersect
(GetValEscape(conditional.Alternative));
4443
.
Intersect
(GetValEscape(coalescingOp.RightOperand));
4555
escape = escape.
Intersect
(GetValEscape(initializerOpt));
4570
escape = escape.
Intersect
(GetValEscape(initializerOpt));
4580
.
Intersect
(GetValEscape(withExpression.InitializerExpression));
4637
.
Intersect
(GetValEscape(nullCoalescingAssignment.RightOperand));
4680
.
Intersect
(GetValEscape(compound.Right));
4693
.
Intersect
(GetValEscape(binary.Right));
4699
.
Intersect
(range.RightOperandOpt is { } right ? GetValEscape(right) : SafeContext.CallingMethod);
4823
scope = scope.
Intersect
(elementSafeContext);
4874
narrowestScope = narrowestScope.
Intersect
(GetValEscape(element));
4885
result = result.
Intersect
(expr is BoundCollectionElementInitializer colElement
4905
result = result.
Intersect
(exprResult);
4992
receiverEscapeScope = escapeScope.
Intersect
(receiverEscapeScope);
4996
return receiverEscapeScope.
Intersect
(rightEscapeScope);
5021
result = result.
Intersect
(GetValEscape(expression));
5896
scope = scope.
Intersect
(GetValEscapeOfInterpolatedStringHandlerCalls(binary.Right));
5901
return scope.
Intersect
(getPartsScope(interpolatedString));
5920
scope = scope.
Intersect
(GetInvocationEscapeToReceiver(
Binder\RefSafetyAnalysis.cs (2)
1417
elementsScope = elementsScope.
Intersect
(spreadEscape);
1447
elementsScope = elementsScope.
Intersect
(elementSafeContext);