29 references to Intersect
Microsoft.CodeAnalysis.CSharp (29)
Binder\Binder.ValueChecks.cs (27)
2246escapeScope = escapeScope.Intersect(GetValEscapeOfInterpolatedStringHandlerCalls(expression)); 2320escapeScope = escapeScope.Intersect(argumentEscape); 2336escapeScope = escapeScope.Intersect(GetValEscape(methodInvocationInfo.Receiver)); 2373escapeScope = escapeScope.Intersect(argEscape); 2401escapeScope = escapeScope.Intersect(argEscape); 3222inferredDestinationValEscape = inferredDestinationValEscape.Intersect(GetValEscape(argument)); 3307inferredDestinationValEscape = inferredDestinationValEscape.Intersect(isRefEscape 3767.Intersect(GetRefEscape(conditional.Alternative)); 4436return consEscape.Intersect(GetValEscape(conditional.Alternative)); 4442.Intersect(GetValEscape(coalescingOp.RightOperand)); 4554escape = escape.Intersect(GetValEscape(initializerOpt)); 4569escape = escape.Intersect(GetValEscape(initializerOpt)); 4579.Intersect(GetValEscape(withExpression.InitializerExpression)); 4636.Intersect(GetValEscape(nullCoalescingAssignment.RightOperand)); 4679.Intersect(GetValEscape(compound.Right)); 4692.Intersect(GetValEscape(binary.Right)); 4698.Intersect(range.RightOperandOpt is { } right ? GetValEscape(right) : SafeContext.CallingMethod); 4822scope = scope.Intersect(elementSafeContext); 4873narrowestScope = narrowestScope.Intersect(GetValEscape(element)); 4884result = result.Intersect(expr is BoundCollectionElementInitializer colElement 4904result = result.Intersect(exprResult); 4991receiverEscapeScope = escapeScope.Intersect(receiverEscapeScope); 4995return receiverEscapeScope.Intersect(rightEscapeScope); 5020result = result.Intersect(GetValEscape(expression)); 5895scope = scope.Intersect(GetValEscapeOfInterpolatedStringHandlerCalls(binary.Right)); 5900return scope.Intersect(getPartsScope(interpolatedString)); 5919scope = scope.Intersect(GetInvocationEscapeToReceiver(
Binder\RefSafetyAnalysis.cs (2)
1412elementsScope = elementsScope.Intersect(spreadEscape); 1442elementsScope = elementsScope.Intersect(elementSafeContext);