29 references to Intersect
Microsoft.CodeAnalysis.CSharp (29)
Binder\Binder.ValueChecks.cs (27)
2246
escapeScope = escapeScope.
Intersect
(GetValEscapeOfInterpolatedStringHandlerCalls(expression));
2320
escapeScope = escapeScope.
Intersect
(argumentEscape);
2336
escapeScope = escapeScope.
Intersect
(GetValEscape(methodInvocationInfo.Receiver));
2373
escapeScope = escapeScope.
Intersect
(argEscape);
2401
escapeScope = escapeScope.
Intersect
(argEscape);
3222
inferredDestinationValEscape = inferredDestinationValEscape.
Intersect
(GetValEscape(argument));
3307
inferredDestinationValEscape = inferredDestinationValEscape.
Intersect
(isRefEscape
3767
.
Intersect
(GetRefEscape(conditional.Alternative));
4436
return consEscape.
Intersect
(GetValEscape(conditional.Alternative));
4442
.
Intersect
(GetValEscape(coalescingOp.RightOperand));
4554
escape = escape.
Intersect
(GetValEscape(initializerOpt));
4569
escape = escape.
Intersect
(GetValEscape(initializerOpt));
4579
.
Intersect
(GetValEscape(withExpression.InitializerExpression));
4636
.
Intersect
(GetValEscape(nullCoalescingAssignment.RightOperand));
4679
.
Intersect
(GetValEscape(compound.Right));
4692
.
Intersect
(GetValEscape(binary.Right));
4698
.
Intersect
(range.RightOperandOpt is { } right ? GetValEscape(right) : SafeContext.CallingMethod);
4822
scope = scope.
Intersect
(elementSafeContext);
4873
narrowestScope = narrowestScope.
Intersect
(GetValEscape(element));
4884
result = result.
Intersect
(expr is BoundCollectionElementInitializer colElement
4904
result = result.
Intersect
(exprResult);
4991
receiverEscapeScope = escapeScope.
Intersect
(receiverEscapeScope);
4995
return receiverEscapeScope.
Intersect
(rightEscapeScope);
5020
result = result.
Intersect
(GetValEscape(expression));
5895
scope = scope.
Intersect
(GetValEscapeOfInterpolatedStringHandlerCalls(binary.Right));
5900
return scope.
Intersect
(getPartsScope(interpolatedString));
5919
scope = scope.
Intersect
(GetInvocationEscapeToReceiver(
Binder\RefSafetyAnalysis.cs (2)
1412
elementsScope = elementsScope.
Intersect
(spreadEscape);
1442
elementsScope = elementsScope.
Intersect
(elementSafeContext);