25 references to Intersect
Microsoft.CodeAnalysis.CSharp (25)
Binder\Binder.ValueChecks.cs (25)
2190escapeScope = escapeScope.Intersect(GetValEscapeOfInterpolatedStringHandlerCalls(expression, localScopeDepth));
2265escapeScope = escapeScope.Intersect(argumentEscape);
2281escapeScope = escapeScope.Intersect(GetValEscape(methodInvocationInfo.Receiver, localScopeDepth));
2319escapeScope = escapeScope.Intersect(argEscape);
2348escapeScope = escapeScope.Intersect(argEscape);
3193inferredDestinationValEscape = inferredDestinationValEscape.Intersect(GetValEscape(argument, localScopeDepth));
3279inferredDestinationValEscape = inferredDestinationValEscape.Intersect(isRefEscape
3732.Intersect(GetRefEscape(conditional.Alternative, localScopeDepth));
4383return consEscape.Intersect(GetValEscape(conditional.Alternative, localScopeDepth));
4389.Intersect(GetValEscape(coalescingOp.RightOperand, localScopeDepth));
4499escape = escape.Intersect(GetValEscape(initializerOpt, localScopeDepth));
4514escape = escape.Intersect(GetValEscape(initializerOpt, localScopeDepth));
4524.Intersect(GetValEscape(withExpression.InitializerExpression, localScopeDepth));
4632.Intersect(GetValEscape(compound.Right, localScopeDepth));
4646.Intersect(GetValEscape(binary.Right, localScopeDepth));
4652.Intersect(range.RightOperandOpt is { } right ? GetValEscape(right, localScopeDepth) : SafeContext.CallingMethod);
4784narrowestScope = narrowestScope.Intersect(GetValEscape(element, localScopeDepth));
4795result = result.Intersect(expr is BoundCollectionElementInitializer colElement
4816result = result.Intersect(exprResult);
4903receiverEscapeScope = escapeScope.Intersect(receiverEscapeScope);
4907return receiverEscapeScope.Intersect(rightEscapeScope);
4932result = result.Intersect(GetValEscape(expression, localScopeDepth));
5805scope = scope.Intersect(GetValEscapeOfInterpolatedStringHandlerCalls(binary.Right, localScopeDepth));
5810return scope.Intersect(getPartsScope(interpolatedString, localScopeDepth));
5829scope = scope.Intersect(GetInvocationEscapeToReceiver(