26 references to Intersect
Microsoft.CodeAnalysis.CSharp (26)
Binder\Binder.ValueChecks.cs (26)
2193escapeScope = escapeScope.Intersect(GetValEscapeOfInterpolatedStringHandlerCalls(expression)); 2267escapeScope = escapeScope.Intersect(argumentEscape); 2283escapeScope = escapeScope.Intersect(GetValEscape(methodInvocationInfo.Receiver)); 2320escapeScope = escapeScope.Intersect(argEscape); 2348escapeScope = escapeScope.Intersect(argEscape); 3194inferredDestinationValEscape = inferredDestinationValEscape.Intersect(GetValEscape(argument)); 3279inferredDestinationValEscape = inferredDestinationValEscape.Intersect(isRefEscape 3732.Intersect(GetRefEscape(conditional.Alternative)); 4390return consEscape.Intersect(GetValEscape(conditional.Alternative)); 4396.Intersect(GetValEscape(coalescingOp.RightOperand)); 4508escape = escape.Intersect(GetValEscape(initializerOpt)); 4523escape = escape.Intersect(GetValEscape(initializerOpt)); 4533.Intersect(GetValEscape(withExpression.InitializerExpression)); 4592.Intersect(GetValEscape(nullCoalescingAssignment.RightOperand)); 4635.Intersect(GetValEscape(compound.Right)); 4648.Intersect(GetValEscape(binary.Right)); 4654.Intersect(range.RightOperandOpt is { } right ? GetValEscape(right) : SafeContext.CallingMethod); 4785narrowestScope = narrowestScope.Intersect(GetValEscape(element)); 4796result = result.Intersect(expr is BoundCollectionElementInitializer colElement 4816result = result.Intersect(exprResult); 4903receiverEscapeScope = escapeScope.Intersect(receiverEscapeScope); 4907return receiverEscapeScope.Intersect(rightEscapeScope); 4932result = result.Intersect(GetValEscape(expression)); 5799scope = scope.Intersect(GetValEscapeOfInterpolatedStringHandlerCalls(binary.Right)); 5804return scope.Intersect(getPartsScope(interpolatedString)); 5823scope = scope.Intersect(GetInvocationEscapeToReceiver(