25 references to Intersect
Microsoft.CodeAnalysis.CSharp (25)
Binder\Binder.ValueChecks.cs (25)
2190escapeScope = escapeScope.Intersect(GetValEscapeOfInterpolatedStringHandlerCalls(expression, localScopeDepth)); 2265escapeScope = escapeScope.Intersect(argumentEscape); 2281escapeScope = escapeScope.Intersect(GetValEscape(methodInvocationInfo.Receiver, localScopeDepth)); 2319escapeScope = escapeScope.Intersect(argEscape); 2348escapeScope = escapeScope.Intersect(argEscape); 3199inferredDestinationValEscape = inferredDestinationValEscape.Intersect(GetValEscape(argument, localScopeDepth)); 3285inferredDestinationValEscape = inferredDestinationValEscape.Intersect(isRefEscape 3738.Intersect(GetRefEscape(conditional.Alternative, localScopeDepth)); 4389return consEscape.Intersect(GetValEscape(conditional.Alternative, localScopeDepth)); 4395.Intersect(GetValEscape(coalescingOp.RightOperand, localScopeDepth)); 4505escape = escape.Intersect(GetValEscape(initializerOpt, localScopeDepth)); 4520escape = escape.Intersect(GetValEscape(initializerOpt, localScopeDepth)); 4530.Intersect(GetValEscape(withExpression.InitializerExpression, localScopeDepth)); 4638.Intersect(GetValEscape(compound.Right, localScopeDepth)); 4652.Intersect(GetValEscape(binary.Right, localScopeDepth)); 4658.Intersect(range.RightOperandOpt is { } right ? GetValEscape(right, localScopeDepth) : SafeContext.CallingMethod); 4790narrowestScope = narrowestScope.Intersect(GetValEscape(element, localScopeDepth)); 4801result = result.Intersect(expr is BoundCollectionElementInitializer colElement 4822result = result.Intersect(exprResult); 4909receiverEscapeScope = escapeScope.Intersect(receiverEscapeScope); 4913return receiverEscapeScope.Intersect(rightEscapeScope); 4938result = result.Intersect(GetValEscape(expression, localScopeDepth)); 5811scope = scope.Intersect(GetValEscapeOfInterpolatedStringHandlerCalls(binary.Right, localScopeDepth)); 5816return scope.Intersect(getPartsScope(interpolatedString, localScopeDepth)); 5835scope = scope.Intersect(GetInvocationEscapeToReceiver(