20 references to Intersect
Microsoft.CodeAnalysis.CSharp (20)
Binder\Binder.ValueChecks.cs (20)
1974escapeScope = escapeScope.Intersect(argEscape);
2064escapeScope = escapeScope.Intersect(argumentEscape);
2080escapeScope = escapeScope.Intersect(GetValEscape(receiver, localScopeDepth));
2130escapeScope = escapeScope.Intersect(argEscape);
2948inferredDestinationValEscape = inferredDestinationValEscape.Intersect(GetValEscape(argument, localScopeDepth));
3046inferredDestinationValEscape = inferredDestinationValEscape.Intersect(isRefEscape
3497.Intersect(GetRefEscape(conditional.Alternative, localScopeDepth));
4218return consEscape.Intersect(GetValEscape(conditional.Alternative, localScopeDepth));
4224.Intersect(GetValEscape(coalescingOp.RightOperand, localScopeDepth));
4382escape = escape.Intersect(GetValEscape(initializerOpt, localScopeDepth));
4397escape = escape.Intersect(GetValEscape(initializerOpt, localScopeDepth));
4407.Intersect(GetValEscape(withExpression.InitializerExpression, localScopeDepth));
4520.Intersect(GetValEscape(compound.Right, localScopeDepth));
4540.Intersect(GetValEscape(binary.Right, localScopeDepth));
4546.Intersect(range.RightOperandOpt is { } right ? GetValEscape(right, localScopeDepth) : SafeContext.CallingMethod);
4684narrowestScope = narrowestScope.Intersect(GetValEscape(element, localScopeDepth));
4702result = result.Intersect(exprResult);
4785receiverEscapeScope = escapeScope.Intersect(receiverEscapeScope);
4789return receiverEscapeScope.Intersect(rightEscapeScope);
4814result = result.Intersect(GetValEscape(expression, localScopeDepth));