20 references to Intersect
Microsoft.CodeAnalysis.CSharp (20)
Binder\Binder.ValueChecks.cs (20)
1973escapeScope = escapeScope.Intersect(argEscape); 2063escapeScope = escapeScope.Intersect(argumentEscape); 2079escapeScope = escapeScope.Intersect(GetValEscape(receiver, localScopeDepth)); 2129escapeScope = escapeScope.Intersect(argEscape); 2947inferredDestinationValEscape = inferredDestinationValEscape.Intersect(GetValEscape(argument, localScopeDepth)); 3045inferredDestinationValEscape = inferredDestinationValEscape.Intersect(isRefEscape 3498.Intersect(GetRefEscape(conditional.Alternative, localScopeDepth)); 4233return consEscape.Intersect(GetValEscape(conditional.Alternative, localScopeDepth)); 4239.Intersect(GetValEscape(coalescingOp.RightOperand, localScopeDepth)); 4397escape = escape.Intersect(GetValEscape(initializerOpt, localScopeDepth)); 4412escape = escape.Intersect(GetValEscape(initializerOpt, localScopeDepth)); 4422.Intersect(GetValEscape(withExpression.InitializerExpression, localScopeDepth)); 4560.Intersect(GetValEscape(compound.Right, localScopeDepth)); 4580.Intersect(GetValEscape(binary.Right, localScopeDepth)); 4586.Intersect(range.RightOperandOpt is { } right ? GetValEscape(right, localScopeDepth) : SafeContext.CallingMethod); 4724narrowestScope = narrowestScope.Intersect(GetValEscape(element, localScopeDepth)); 4742result = result.Intersect(exprResult); 4825receiverEscapeScope = escapeScope.Intersect(receiverEscapeScope); 4829return receiverEscapeScope.Intersect(rightEscapeScope); 4854result = result.Intersect(GetValEscape(expression, localScopeDepth));