29 references to Intersect
Microsoft.CodeAnalysis.CSharp (29)
Binder\Binder.ValueChecks.cs (27)
2247escapeScope = escapeScope.Intersect(GetValEscapeOfInterpolatedStringHandlerCalls(expression)); 2321escapeScope = escapeScope.Intersect(argumentEscape); 2337escapeScope = escapeScope.Intersect(GetValEscape(methodInvocationInfo.Receiver)); 2374escapeScope = escapeScope.Intersect(argEscape); 2402escapeScope = escapeScope.Intersect(argEscape); 3223inferredDestinationValEscape = inferredDestinationValEscape.Intersect(GetValEscape(argument)); 3308inferredDestinationValEscape = inferredDestinationValEscape.Intersect(isRefEscape 3768.Intersect(GetRefEscape(conditional.Alternative)); 4437return consEscape.Intersect(GetValEscape(conditional.Alternative)); 4443.Intersect(GetValEscape(coalescingOp.RightOperand)); 4555escape = escape.Intersect(GetValEscape(initializerOpt)); 4570escape = 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); 4823scope = scope.Intersect(elementSafeContext); 4874narrowestScope = narrowestScope.Intersect(GetValEscape(element)); 4885result = result.Intersect(expr is BoundCollectionElementInitializer colElement 4905result = result.Intersect(exprResult); 4992receiverEscapeScope = escapeScope.Intersect(receiverEscapeScope); 4996return receiverEscapeScope.Intersect(rightEscapeScope); 5021result = result.Intersect(GetValEscape(expression)); 5896scope = scope.Intersect(GetValEscapeOfInterpolatedStringHandlerCalls(binary.Right)); 5901return scope.Intersect(getPartsScope(interpolatedString)); 5920scope = scope.Intersect(GetInvocationEscapeToReceiver(
Binder\RefSafetyAnalysis.cs (2)
1417elementsScope = elementsScope.Intersect(spreadEscape); 1447elementsScope = elementsScope.Intersect(elementSafeContext);