29 references to Intersect
Microsoft.CodeAnalysis.CSharp (29)
Binder\Binder.ValueChecks.cs (27)
2231escapeScope = escapeScope.Intersect(GetValEscapeOfInterpolatedStringHandlerCalls(expression)); 2305escapeScope = escapeScope.Intersect(argumentEscape); 2321escapeScope = escapeScope.Intersect(GetValEscape(methodInvocationInfo.Receiver)); 2358escapeScope = escapeScope.Intersect(argEscape); 2386escapeScope = escapeScope.Intersect(argEscape); 3207inferredDestinationValEscape = inferredDestinationValEscape.Intersect(GetValEscape(argument)); 3292inferredDestinationValEscape = inferredDestinationValEscape.Intersect(isRefEscape 3752.Intersect(GetRefEscape(conditional.Alternative)); 4421return consEscape.Intersect(GetValEscape(conditional.Alternative)); 4427.Intersect(GetValEscape(coalescingOp.RightOperand)); 4539escape = escape.Intersect(GetValEscape(initializerOpt)); 4554escape = 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); 4807scope = scope.Intersect(elementSafeContext); 4858narrowestScope = narrowestScope.Intersect(GetValEscape(element)); 4869result = result.Intersect(expr is BoundCollectionElementInitializer colElement 4889result = result.Intersect(exprResult); 4976receiverEscapeScope = escapeScope.Intersect(receiverEscapeScope); 4980return receiverEscapeScope.Intersect(rightEscapeScope); 5005result = result.Intersect(GetValEscape(expression)); 5880scope = scope.Intersect(GetValEscapeOfInterpolatedStringHandlerCalls(binary.Right)); 5885return scope.Intersect(getPartsScope(interpolatedString)); 5904scope = scope.Intersect(GetInvocationEscapeToReceiver(
Binder\RefSafetyAnalysis.cs (2)
1417elementsScope = elementsScope.Intersect(spreadEscape); 1447elementsScope = elementsScope.Intersect(elementSafeContext);