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

Update nullability on some LINQ expression methods #44844

Merged
merged 1 commit into from
Nov 18, 2020
Merged
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 @@ -834,7 +834,7 @@ internal Expression() { }
public new TDelegate Compile() { throw null; }
public new TDelegate Compile(bool preferInterpretation) { throw null; }
public new TDelegate Compile(System.Runtime.CompilerServices.DebugInfoGenerator debugInfoGenerator) { throw null; }
public System.Linq.Expressions.Expression<TDelegate>? Update(System.Linq.Expressions.Expression body, System.Collections.Generic.IEnumerable<System.Linq.Expressions.ParameterExpression>? parameters) { throw null; }
public System.Linq.Expressions.Expression<TDelegate> Update(System.Linq.Expressions.Expression body, System.Collections.Generic.IEnumerable<System.Linq.Expressions.ParameterExpression>? parameters) { throw null; }
}
public sealed partial class GotoExpression : System.Linq.Expressions.Expression
{
Expand Down Expand Up @@ -1008,7 +1008,7 @@ internal MethodCallExpression() { }
public sealed override System.Type Type { get { throw null; } }
protected internal override System.Linq.Expressions.Expression Accept(System.Linq.Expressions.ExpressionVisitor visitor) { throw null; }
System.Linq.Expressions.Expression System.Linq.Expressions.IArgumentProvider.GetArgument(int index) { throw null; }
public System.Linq.Expressions.MethodCallExpression Update(System.Linq.Expressions.Expression @object, System.Collections.Generic.IEnumerable<System.Linq.Expressions.Expression>? arguments) { throw null; }
public System.Linq.Expressions.MethodCallExpression Update(System.Linq.Expressions.Expression? @object, System.Collections.Generic.IEnumerable<System.Linq.Expressions.Expression>? arguments) { throw null; }
}
public partial class NewArrayExpression : System.Linq.Expressions.Expression
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ internal Expression(Expression body)
/// <param name="body">The <see cref="LambdaExpression.Body" /> property of the result.</param>
/// <param name="parameters">The <see cref="LambdaExpression.Parameters" /> property of the result.</param>
/// <returns>This expression if no children changed, or an expression with the updated children.</returns>
public Expression<TDelegate>? Update(Expression body, IEnumerable<ParameterExpression>? parameters)
public Expression<TDelegate> Update(Expression body, IEnumerable<ParameterExpression>? parameters)
{
if (body == Body)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ internal MethodCallExpression(MethodInfo method)
/// <param name="object">The <see cref="Object"/> property of the result.</param>
/// <param name="arguments">The <see cref="Arguments"/> property of the result.</param>
/// <returns>This expression if no children changed, or an expression with the updated children.</returns>
public MethodCallExpression Update(Expression @object, IEnumerable<Expression>? arguments)
public MethodCallExpression Update(Expression? @object, IEnumerable<Expression>? arguments)
{
if (@object == Object)
{
Expand Down