26 references to Intersect
Microsoft.CodeAnalysis.CSharp (26)
Binder\Binder.ValueChecks.cs (26)
2248escapeScope = escapeScope.Intersect(GetValEscapeOfInterpolatedStringHandlerCalls(expression)); 2322escapeScope = escapeScope.Intersect(argumentEscape); 2338escapeScope = escapeScope.Intersect(GetValEscape(methodInvocationInfo.Receiver)); 2375escapeScope = escapeScope.Intersect(argEscape); 2403escapeScope = escapeScope.Intersect(argEscape); 3249inferredDestinationValEscape = inferredDestinationValEscape.Intersect(GetValEscape(argument)); 3334inferredDestinationValEscape = inferredDestinationValEscape.Intersect(isRefEscape 3787.Intersect(GetRefEscape(conditional.Alternative)); 4447return consEscape.Intersect(GetValEscape(conditional.Alternative)); 4453.Intersect(GetValEscape(coalescingOp.RightOperand)); 4565escape = escape.Intersect(GetValEscape(initializerOpt)); 4580escape = escape.Intersect(GetValEscape(initializerOpt)); 4590.Intersect(GetValEscape(withExpression.InitializerExpression)); 4647.Intersect(GetValEscape(nullCoalescingAssignment.RightOperand)); 4690.Intersect(GetValEscape(compound.Right)); 4703.Intersect(GetValEscape(binary.Right)); 4709.Intersect(range.RightOperandOpt is { } right ? GetValEscape(right) : SafeContext.CallingMethod); 4848narrowestScope = narrowestScope.Intersect(GetValEscape(element)); 4859result = result.Intersect(expr is BoundCollectionElementInitializer colElement 4879result = result.Intersect(exprResult); 4966receiverEscapeScope = escapeScope.Intersect(receiverEscapeScope); 4970return receiverEscapeScope.Intersect(rightEscapeScope); 4995result = result.Intersect(GetValEscape(expression)); 5865scope = scope.Intersect(GetValEscapeOfInterpolatedStringHandlerCalls(binary.Right)); 5870return scope.Intersect(getPartsScope(interpolatedString)); 5889scope = scope.Intersect(GetInvocationEscapeToReceiver(