25 references to Intersect
Microsoft.CodeAnalysis.CSharp (25)
Binder\Binder.ValueChecks.cs (25)
2192escapeScope = escapeScope.Intersect(GetValEscapeOfInterpolatedStringHandlerCalls(expression, localScopeDepth)); 2267escapeScope = escapeScope.Intersect(argumentEscape); 2283escapeScope = escapeScope.Intersect(GetValEscape(methodInvocationInfo.Receiver, localScopeDepth)); 2321escapeScope = escapeScope.Intersect(argEscape); 2350escapeScope = escapeScope.Intersect(argEscape); 3201inferredDestinationValEscape = inferredDestinationValEscape.Intersect(GetValEscape(argument, localScopeDepth)); 3287inferredDestinationValEscape = inferredDestinationValEscape.Intersect(isRefEscape 3740.Intersect(GetRefEscape(conditional.Alternative, localScopeDepth)); 4411return consEscape.Intersect(GetValEscape(conditional.Alternative, localScopeDepth)); 4417.Intersect(GetValEscape(coalescingOp.RightOperand, localScopeDepth)); 4537escape = escape.Intersect(GetValEscape(initializerOpt, localScopeDepth)); 4552escape = escape.Intersect(GetValEscape(initializerOpt, localScopeDepth)); 4562.Intersect(GetValEscape(withExpression.InitializerExpression, localScopeDepth)); 4670.Intersect(GetValEscape(compound.Right, localScopeDepth)); 4684.Intersect(GetValEscape(binary.Right, localScopeDepth)); 4690.Intersect(range.RightOperandOpt is { } right ? GetValEscape(right, localScopeDepth) : SafeContext.CallingMethod); 4822narrowestScope = narrowestScope.Intersect(GetValEscape(element, localScopeDepth)); 4833result = result.Intersect(expr is BoundCollectionElementInitializer colElement 4854result = result.Intersect(exprResult); 4941receiverEscapeScope = escapeScope.Intersect(receiverEscapeScope); 4945return receiverEscapeScope.Intersect(rightEscapeScope); 4970result = result.Intersect(GetValEscape(expression, localScopeDepth)); 5853scope = scope.Intersect(GetValEscapeOfInterpolatedStringHandlerCalls(binary.Right, localScopeDepth)); 5858return scope.Intersect(getPartsScope(interpolatedString, localScopeDepth)); 5877scope = scope.Intersect(GetInvocationEscapeToReceiver(