26 references to Intersect
Microsoft.CodeAnalysis.CSharp (26)
Binder\Binder.ValueChecks.cs (26)
2243escapeScope = escapeScope.Intersect(GetValEscapeOfInterpolatedStringHandlerCalls(expression)); 2317escapeScope = escapeScope.Intersect(argumentEscape); 2333escapeScope = escapeScope.Intersect(GetValEscape(methodInvocationInfo.Receiver)); 2370escapeScope = escapeScope.Intersect(argEscape); 2398escapeScope = escapeScope.Intersect(argEscape); 3244inferredDestinationValEscape = inferredDestinationValEscape.Intersect(GetValEscape(argument)); 3329inferredDestinationValEscape = inferredDestinationValEscape.Intersect(isRefEscape 3782.Intersect(GetRefEscape(conditional.Alternative)); 4442return consEscape.Intersect(GetValEscape(conditional.Alternative)); 4448.Intersect(GetValEscape(coalescingOp.RightOperand)); 4560escape = escape.Intersect(GetValEscape(initializerOpt)); 4575escape = escape.Intersect(GetValEscape(initializerOpt)); 4585.Intersect(GetValEscape(withExpression.InitializerExpression)); 4642.Intersect(GetValEscape(nullCoalescingAssignment.RightOperand)); 4685.Intersect(GetValEscape(compound.Right)); 4698.Intersect(GetValEscape(binary.Right)); 4704.Intersect(range.RightOperandOpt is { } right ? GetValEscape(right) : SafeContext.CallingMethod); 4843narrowestScope = narrowestScope.Intersect(GetValEscape(element)); 4854result = result.Intersect(expr is BoundCollectionElementInitializer colElement 4874result = result.Intersect(exprResult); 4961receiverEscapeScope = escapeScope.Intersect(receiverEscapeScope); 4965return receiverEscapeScope.Intersect(rightEscapeScope); 4990result = result.Intersect(GetValEscape(expression)); 5860scope = scope.Intersect(GetValEscapeOfInterpolatedStringHandlerCalls(binary.Right)); 5865return scope.Intersect(getPartsScope(interpolatedString)); 5884scope = scope.Intersect(GetInvocationEscapeToReceiver(