Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cause debugger to step through argument-check methods #1321

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Diagnostics.Contracts;
using System.Linq;
using System.Linq.Expressions;
Expand Down Expand Up @@ -763,6 +764,7 @@ protected virtual Expression BindCustomMethodExpressionOrNull(SingleValueFunctio
return null;
}

[DebuggerStepThrough]
private static void CheckArgumentNull(SingleValueFunctionCallNode node, QueryBinderContext context, string nodeName)
{
if (node == null || node.Name != nodeName)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.Diagnostics.Contracts;
using System.Linq;
using System.Linq.Expressions;
Expand Down Expand Up @@ -1452,6 +1453,7 @@ protected static Expression ApplyNullPropagationForFilterBody(Expression body, Q
return body;
}

[DebuggerStepThrough]
private static void CheckArgumentNull<T>(T node, QueryBinderContext context) where T : QueryNode
{
if (node == null)
Expand Down