29 references to Intersect
Microsoft.CodeAnalysis.CSharp (29)
Binder\Binder.ValueChecks.cs (27)
2249escapeScope = escapeScope.Intersect(GetValEscapeOfInterpolatedStringHandlerCalls(expression)); 2323escapeScope = escapeScope.Intersect(argumentEscape); 2339escapeScope = escapeScope.Intersect(GetValEscape(methodInvocationInfo.Receiver)); 2376escapeScope = escapeScope.Intersect(argEscape); 2404escapeScope = escapeScope.Intersect(argEscape); 3250inferredDestinationValEscape = inferredDestinationValEscape.Intersect(GetValEscape(argument)); 3335inferredDestinationValEscape = inferredDestinationValEscape.Intersect(isRefEscape 3788.Intersect(GetRefEscape(conditional.Alternative)); 4449return consEscape.Intersect(GetValEscape(conditional.Alternative)); 4455.Intersect(GetValEscape(coalescingOp.RightOperand)); 4567escape = escape.Intersect(GetValEscape(initializerOpt)); 4582escape = escape.Intersect(GetValEscape(initializerOpt)); 4592.Intersect(GetValEscape(withExpression.InitializerExpression)); 4649.Intersect(GetValEscape(nullCoalescingAssignment.RightOperand)); 4692.Intersect(GetValEscape(compound.Right)); 4705.Intersect(GetValEscape(binary.Right)); 4711.Intersect(range.RightOperandOpt is { } right ? GetValEscape(right) : SafeContext.CallingMethod); 4835scope = scope.Intersect(elementSafeContext); 4886narrowestScope = narrowestScope.Intersect(GetValEscape(element)); 4897result = result.Intersect(expr is BoundCollectionElementInitializer colElement 4917result = result.Intersect(exprResult); 5004receiverEscapeScope = escapeScope.Intersect(receiverEscapeScope); 5008return receiverEscapeScope.Intersect(rightEscapeScope); 5033result = result.Intersect(GetValEscape(expression)); 5904scope = scope.Intersect(GetValEscapeOfInterpolatedStringHandlerCalls(binary.Right)); 5909return scope.Intersect(getPartsScope(interpolatedString)); 5928scope = scope.Intersect(GetInvocationEscapeToReceiver(
Binder\RefSafetyAnalysis.cs (2)
1382elementsScope = elementsScope.Intersect(spreadEscape); 1412elementsScope = elementsScope.Intersect(elementSafeContext);