29 references to Intersect
Microsoft.CodeAnalysis.CSharp (29)
Binder\Binder.ValueChecks.cs (27)
2231
escapeScope = escapeScope.
Intersect
(GetValEscapeOfInterpolatedStringHandlerCalls(expression));
2305
escapeScope = escapeScope.
Intersect
(argumentEscape);
2321
escapeScope = escapeScope.
Intersect
(GetValEscape(methodInvocationInfo.Receiver));
2358
escapeScope = escapeScope.
Intersect
(argEscape);
2386
escapeScope = escapeScope.
Intersect
(argEscape);
3207
inferredDestinationValEscape = inferredDestinationValEscape.
Intersect
(GetValEscape(argument));
3292
inferredDestinationValEscape = inferredDestinationValEscape.
Intersect
(isRefEscape
3752
.
Intersect
(GetRefEscape(conditional.Alternative));
4421
return consEscape.
Intersect
(GetValEscape(conditional.Alternative));
4427
.
Intersect
(GetValEscape(coalescingOp.RightOperand));
4539
escape = escape.
Intersect
(GetValEscape(initializerOpt));
4554
escape = escape.
Intersect
(GetValEscape(initializerOpt));
4564
.
Intersect
(GetValEscape(withExpression.InitializerExpression));
4621
.
Intersect
(GetValEscape(nullCoalescingAssignment.RightOperand));
4664
.
Intersect
(GetValEscape(compound.Right));
4677
.
Intersect
(GetValEscape(binary.Right));
4683
.
Intersect
(range.RightOperandOpt is { } right ? GetValEscape(right) : SafeContext.CallingMethod);
4807
scope = scope.
Intersect
(elementSafeContext);
4858
narrowestScope = narrowestScope.
Intersect
(GetValEscape(element));
4869
result = result.
Intersect
(expr is BoundCollectionElementInitializer colElement
4889
result = result.
Intersect
(exprResult);
4976
receiverEscapeScope = escapeScope.
Intersect
(receiverEscapeScope);
4980
return receiverEscapeScope.
Intersect
(rightEscapeScope);
5005
result = result.
Intersect
(GetValEscape(expression));
5880
scope = scope.
Intersect
(GetValEscapeOfInterpolatedStringHandlerCalls(binary.Right));
5885
return scope.
Intersect
(getPartsScope(interpolatedString));
5904
scope = scope.
Intersect
(GetInvocationEscapeToReceiver(
Binder\RefSafetyAnalysis.cs (2)
1417
elementsScope = elementsScope.
Intersect
(spreadEscape);
1447
elementsScope = elementsScope.
Intersect
(elementSafeContext);