From f37921b01ffa82f29e7e9a829b8c2c8d5483f43b Mon Sep 17 00:00:00 2001 From: Charles Stoner <10732005+cston@users.noreply.github.com> Date: Mon, 9 Sep 2024 13:37:55 -0700 Subject: [PATCH 1/6] dotnet build /t:GenerateReferenceAssemblySource --- .../ref/System.Linq.Expressions.cs | 200 +++++++++++++++--- 1 file changed, 171 insertions(+), 29 deletions(-) diff --git a/src/libraries/System.Linq.Expressions/ref/System.Linq.Expressions.cs b/src/libraries/System.Linq.Expressions/ref/System.Linq.Expressions.cs index 015cfb079d360a..e537caf82ff42d 100644 --- a/src/libraries/System.Linq.Expressions/ref/System.Linq.Expressions.cs +++ b/src/libraries/System.Linq.Expressions/ref/System.Linq.Expressions.cs @@ -6,6 +6,7 @@ namespace System.Dynamic { + [System.Diagnostics.CodeAnalysis.RequiresDynamicCodeAttribute("Creating a call site may require dynamic code generation.")] public abstract partial class BinaryOperationBinder : System.Dynamic.DynamicMetaObjectBinder { protected BinaryOperationBinder(System.Linq.Expressions.ExpressionType operation) { } @@ -32,9 +33,10 @@ public CallInfo(int argCount, System.Collections.Generic.IEnumerable arg public CallInfo(int argCount, params string[] argNames) { } public int ArgumentCount { get { throw null; } } public System.Collections.ObjectModel.ReadOnlyCollection ArgumentNames { get { throw null; } } - public override bool Equals([System.Diagnostics.CodeAnalysis.NotNullWhen(true)] object? obj) { throw null; } + public override bool Equals([System.Diagnostics.CodeAnalysis.NotNullWhenAttribute(true)] object? obj) { throw null; } public override int GetHashCode() { throw null; } } + [System.Diagnostics.CodeAnalysis.RequiresDynamicCodeAttribute("Creating a call site may require dynamic code generation.")] public abstract partial class ConvertBinder : System.Dynamic.DynamicMetaObjectBinder { protected ConvertBinder(System.Type type, bool @explicit) { } @@ -45,6 +47,7 @@ protected ConvertBinder(System.Type type, bool @explicit) { } public System.Dynamic.DynamicMetaObject FallbackConvert(System.Dynamic.DynamicMetaObject target) { throw null; } public abstract System.Dynamic.DynamicMetaObject FallbackConvert(System.Dynamic.DynamicMetaObject target, System.Dynamic.DynamicMetaObject? errorSuggestion); } + [System.Diagnostics.CodeAnalysis.RequiresDynamicCodeAttribute("Creating a call site may require dynamic code generation.")] public abstract partial class CreateInstanceBinder : System.Dynamic.DynamicMetaObjectBinder { protected CreateInstanceBinder(System.Dynamic.CallInfo callInfo) { } @@ -54,6 +57,7 @@ protected CreateInstanceBinder(System.Dynamic.CallInfo callInfo) { } public System.Dynamic.DynamicMetaObject FallbackCreateInstance(System.Dynamic.DynamicMetaObject target, System.Dynamic.DynamicMetaObject[] args) { throw null; } public abstract System.Dynamic.DynamicMetaObject FallbackCreateInstance(System.Dynamic.DynamicMetaObject target, System.Dynamic.DynamicMetaObject[] args, System.Dynamic.DynamicMetaObject? errorSuggestion); } + [System.Diagnostics.CodeAnalysis.RequiresDynamicCodeAttribute("Creating a call site may require dynamic code generation.")] public abstract partial class DeleteIndexBinder : System.Dynamic.DynamicMetaObjectBinder { protected DeleteIndexBinder(System.Dynamic.CallInfo callInfo) { } @@ -63,6 +67,7 @@ protected DeleteIndexBinder(System.Dynamic.CallInfo callInfo) { } public System.Dynamic.DynamicMetaObject FallbackDeleteIndex(System.Dynamic.DynamicMetaObject target, System.Dynamic.DynamicMetaObject[] indexes) { throw null; } public abstract System.Dynamic.DynamicMetaObject FallbackDeleteIndex(System.Dynamic.DynamicMetaObject target, System.Dynamic.DynamicMetaObject[] indexes, System.Dynamic.DynamicMetaObject? errorSuggestion); } + [System.Diagnostics.CodeAnalysis.RequiresDynamicCodeAttribute("Creating a call site may require dynamic code generation.")] public abstract partial class DeleteMemberBinder : System.Dynamic.DynamicMetaObjectBinder { protected DeleteMemberBinder(string name, bool ignoreCase) { } @@ -99,6 +104,7 @@ public DynamicMetaObject(System.Linq.Expressions.Expression expression, System.D public static System.Dynamic.DynamicMetaObject Create(object value, System.Linq.Expressions.Expression expression) { throw null; } public virtual System.Collections.Generic.IEnumerable GetDynamicMemberNames() { throw null; } } + [System.Diagnostics.CodeAnalysis.RequiresDynamicCodeAttribute("Creating a call site may require dynamic code generation.")] public abstract partial class DynamicMetaObjectBinder : System.Runtime.CompilerServices.CallSiteBinder { protected DynamicMetaObjectBinder() { } @@ -109,6 +115,7 @@ protected DynamicMetaObjectBinder() { } public System.Dynamic.DynamicMetaObject Defer(params System.Dynamic.DynamicMetaObject[] args) { throw null; } public System.Linq.Expressions.Expression GetUpdateExpression(System.Type type) { throw null; } } + [System.Diagnostics.CodeAnalysis.RequiresDynamicCodeAttribute("Creating a call site may require dynamic code generation.")] public partial class DynamicObject : System.Dynamic.IDynamicMetaObjectProvider { protected DynamicObject() { } @@ -141,14 +148,15 @@ event System.ComponentModel.PropertyChangedEventHandler? System.ComponentModel.I bool System.Collections.Generic.ICollection>.Contains(System.Collections.Generic.KeyValuePair item) { throw null; } void System.Collections.Generic.ICollection>.CopyTo(System.Collections.Generic.KeyValuePair[] array, int arrayIndex) { } bool System.Collections.Generic.ICollection>.Remove(System.Collections.Generic.KeyValuePair item) { throw null; } - void System.Collections.Generic.IDictionary.Add(string key, object? value) { } + void System.Collections.Generic.IDictionary.Add(string key, object value) { } bool System.Collections.Generic.IDictionary.ContainsKey(string key) { throw null; } bool System.Collections.Generic.IDictionary.Remove(string key) { throw null; } - bool System.Collections.Generic.IDictionary.TryGetValue(string key, out object? value) { throw null; } - System.Collections.Generic.IEnumerator> System.Collections.Generic.IEnumerable>.GetEnumerator() { throw null; } + bool System.Collections.Generic.IDictionary.TryGetValue(string key, out object value) { throw null; } + System.Collections.Generic.IEnumerator> System.Collections.Generic.IEnumerable>.GetEnumerator() { throw null; } System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } System.Dynamic.DynamicMetaObject System.Dynamic.IDynamicMetaObjectProvider.GetMetaObject(System.Linq.Expressions.Expression parameter) { throw null; } } + [System.Diagnostics.CodeAnalysis.RequiresDynamicCodeAttribute("Creating a call site may require dynamic code generation.")] public abstract partial class GetIndexBinder : System.Dynamic.DynamicMetaObjectBinder { protected GetIndexBinder(System.Dynamic.CallInfo callInfo) { } @@ -158,6 +166,7 @@ protected GetIndexBinder(System.Dynamic.CallInfo callInfo) { } public System.Dynamic.DynamicMetaObject FallbackGetIndex(System.Dynamic.DynamicMetaObject target, System.Dynamic.DynamicMetaObject[] indexes) { throw null; } public abstract System.Dynamic.DynamicMetaObject FallbackGetIndex(System.Dynamic.DynamicMetaObject target, System.Dynamic.DynamicMetaObject[] indexes, System.Dynamic.DynamicMetaObject? errorSuggestion); } + [System.Diagnostics.CodeAnalysis.RequiresDynamicCodeAttribute("Creating a call site may require dynamic code generation.")] public abstract partial class GetMemberBinder : System.Dynamic.DynamicMetaObjectBinder { protected GetMemberBinder(string name, bool ignoreCase) { } @@ -176,6 +185,7 @@ public partial interface IInvokeOnGetBinder { bool InvokeOnGet { get; } } + [System.Diagnostics.CodeAnalysis.RequiresDynamicCodeAttribute("Creating a call site may require dynamic code generation.")] public abstract partial class InvokeBinder : System.Dynamic.DynamicMetaObjectBinder { protected InvokeBinder(System.Dynamic.CallInfo callInfo) { } @@ -185,6 +195,7 @@ protected InvokeBinder(System.Dynamic.CallInfo callInfo) { } public System.Dynamic.DynamicMetaObject FallbackInvoke(System.Dynamic.DynamicMetaObject target, System.Dynamic.DynamicMetaObject[] args) { throw null; } public abstract System.Dynamic.DynamicMetaObject FallbackInvoke(System.Dynamic.DynamicMetaObject target, System.Dynamic.DynamicMetaObject[] args, System.Dynamic.DynamicMetaObject? errorSuggestion); } + [System.Diagnostics.CodeAnalysis.RequiresDynamicCodeAttribute("Creating a call site may require dynamic code generation.")] public abstract partial class InvokeMemberBinder : System.Dynamic.DynamicMetaObjectBinder { protected InvokeMemberBinder(string name, bool ignoreCase, System.Dynamic.CallInfo callInfo) { } @@ -197,6 +208,7 @@ protected InvokeMemberBinder(string name, bool ignoreCase, System.Dynamic.CallIn public System.Dynamic.DynamicMetaObject FallbackInvokeMember(System.Dynamic.DynamicMetaObject target, System.Dynamic.DynamicMetaObject[] args) { throw null; } public abstract System.Dynamic.DynamicMetaObject FallbackInvokeMember(System.Dynamic.DynamicMetaObject target, System.Dynamic.DynamicMetaObject[] args, System.Dynamic.DynamicMetaObject? errorSuggestion); } + [System.Diagnostics.CodeAnalysis.RequiresDynamicCodeAttribute("Creating a call site may require dynamic code generation.")] public abstract partial class SetIndexBinder : System.Dynamic.DynamicMetaObjectBinder { protected SetIndexBinder(System.Dynamic.CallInfo callInfo) { } @@ -206,6 +218,7 @@ protected SetIndexBinder(System.Dynamic.CallInfo callInfo) { } public System.Dynamic.DynamicMetaObject FallbackSetIndex(System.Dynamic.DynamicMetaObject target, System.Dynamic.DynamicMetaObject[] indexes, System.Dynamic.DynamicMetaObject value) { throw null; } public abstract System.Dynamic.DynamicMetaObject FallbackSetIndex(System.Dynamic.DynamicMetaObject target, System.Dynamic.DynamicMetaObject[] indexes, System.Dynamic.DynamicMetaObject value, System.Dynamic.DynamicMetaObject? errorSuggestion); } + [System.Diagnostics.CodeAnalysis.RequiresDynamicCodeAttribute("Creating a call site may require dynamic code generation.")] public abstract partial class SetMemberBinder : System.Dynamic.DynamicMetaObjectBinder { protected SetMemberBinder(string name, bool ignoreCase) { } @@ -216,6 +229,7 @@ protected SetMemberBinder(string name, bool ignoreCase) { } public System.Dynamic.DynamicMetaObject FallbackSetMember(System.Dynamic.DynamicMetaObject target, System.Dynamic.DynamicMetaObject value) { throw null; } public abstract System.Dynamic.DynamicMetaObject FallbackSetMember(System.Dynamic.DynamicMetaObject target, System.Dynamic.DynamicMetaObject value, System.Dynamic.DynamicMetaObject? errorSuggestion); } + [System.Diagnostics.CodeAnalysis.RequiresDynamicCodeAttribute("Creating a call site may require dynamic code generation.")] public abstract partial class UnaryOperationBinder : System.Dynamic.DynamicMetaObjectBinder { protected UnaryOperationBinder(System.Linq.Expressions.ExpressionType operation) { } @@ -332,40 +346,49 @@ public partial class DynamicExpression : System.Linq.Expressions.Expression, Sys internal DynamicExpression() { } public System.Collections.ObjectModel.ReadOnlyCollection Arguments { get { throw null; } } public System.Runtime.CompilerServices.CallSiteBinder Binder { get { throw null; } } + public override bool CanReduce { get { throw null; } } public System.Type DelegateType { get { throw null; } } public sealed override System.Linq.Expressions.ExpressionType NodeType { get { throw null; } } int System.Linq.Expressions.IArgumentProvider.ArgumentCount { get { throw null; } } public override System.Type Type { get { throw null; } } protected internal override System.Linq.Expressions.Expression Accept(System.Linq.Expressions.ExpressionVisitor visitor) { throw null; } + [System.Diagnostics.CodeAnalysis.RequiresDynamicCodeAttribute("Delegate creation requires dynamic code generation.")] public static new System.Linq.Expressions.DynamicExpression Dynamic(System.Runtime.CompilerServices.CallSiteBinder binder, System.Type returnType, System.Collections.Generic.IEnumerable arguments) { throw null; } + [System.Diagnostics.CodeAnalysis.RequiresDynamicCodeAttribute("Delegate creation requires dynamic code generation.")] public static new System.Linq.Expressions.DynamicExpression Dynamic(System.Runtime.CompilerServices.CallSiteBinder binder, System.Type returnType, System.Linq.Expressions.Expression arg0) { throw null; } + [System.Diagnostics.CodeAnalysis.RequiresDynamicCodeAttribute("Delegate creation requires dynamic code generation.")] public static new System.Linq.Expressions.DynamicExpression Dynamic(System.Runtime.CompilerServices.CallSiteBinder binder, System.Type returnType, System.Linq.Expressions.Expression arg0, System.Linq.Expressions.Expression arg1) { throw null; } + [System.Diagnostics.CodeAnalysis.RequiresDynamicCodeAttribute("Delegate creation requires dynamic code generation.")] public static new System.Linq.Expressions.DynamicExpression Dynamic(System.Runtime.CompilerServices.CallSiteBinder binder, System.Type returnType, System.Linq.Expressions.Expression arg0, System.Linq.Expressions.Expression arg1, System.Linq.Expressions.Expression arg2) { throw null; } + [System.Diagnostics.CodeAnalysis.RequiresDynamicCodeAttribute("Delegate creation requires dynamic code generation.")] public static new System.Linq.Expressions.DynamicExpression Dynamic(System.Runtime.CompilerServices.CallSiteBinder binder, System.Type returnType, System.Linq.Expressions.Expression arg0, System.Linq.Expressions.Expression arg1, System.Linq.Expressions.Expression arg2, System.Linq.Expressions.Expression arg3) { throw null; } + [System.Diagnostics.CodeAnalysis.RequiresDynamicCodeAttribute("Delegate creation requires dynamic code generation.")] public static new System.Linq.Expressions.DynamicExpression Dynamic(System.Runtime.CompilerServices.CallSiteBinder binder, System.Type returnType, params System.Linq.Expressions.Expression[] arguments) { throw null; } + [System.Diagnostics.CodeAnalysis.RequiresDynamicCodeAttribute("Delegate creation requires dynamic code generation.")] public static new System.Linq.Expressions.DynamicExpression MakeDynamic(System.Type delegateType, System.Runtime.CompilerServices.CallSiteBinder binder, System.Collections.Generic.IEnumerable? arguments) { throw null; } public static new System.Linq.Expressions.DynamicExpression MakeDynamic(System.Type delegateType, System.Runtime.CompilerServices.CallSiteBinder binder, System.Linq.Expressions.Expression arg0) { throw null; } public static new System.Linq.Expressions.DynamicExpression MakeDynamic(System.Type delegateType, System.Runtime.CompilerServices.CallSiteBinder binder, System.Linq.Expressions.Expression arg0, System.Linq.Expressions.Expression arg1) { throw null; } public static new System.Linq.Expressions.DynamicExpression MakeDynamic(System.Type delegateType, System.Runtime.CompilerServices.CallSiteBinder binder, System.Linq.Expressions.Expression arg0, System.Linq.Expressions.Expression arg1, System.Linq.Expressions.Expression arg2) { throw null; } public static new System.Linq.Expressions.DynamicExpression MakeDynamic(System.Type delegateType, System.Runtime.CompilerServices.CallSiteBinder binder, System.Linq.Expressions.Expression arg0, System.Linq.Expressions.Expression arg1, System.Linq.Expressions.Expression arg2, System.Linq.Expressions.Expression arg3) { throw null; } public static new System.Linq.Expressions.DynamicExpression MakeDynamic(System.Type delegateType, System.Runtime.CompilerServices.CallSiteBinder binder, params System.Linq.Expressions.Expression[]? arguments) { throw null; } + public override System.Linq.Expressions.Expression Reduce() { throw null; } System.Linq.Expressions.Expression System.Linq.Expressions.IArgumentProvider.GetArgument(int index) { throw null; } object System.Linq.Expressions.IDynamicExpression.CreateCallSite() { throw null; } System.Linq.Expressions.Expression System.Linq.Expressions.IDynamicExpression.Rewrite(System.Linq.Expressions.Expression[] args) { throw null; } public System.Linq.Expressions.DynamicExpression Update(System.Collections.Generic.IEnumerable? arguments) { throw null; } } - public abstract partial class DynamicExpressionVisitor : System.Linq.Expressions.ExpressionVisitor + public partial class DynamicExpressionVisitor : System.Linq.Expressions.ExpressionVisitor { - protected DynamicExpressionVisitor() { } + public DynamicExpressionVisitor() { } protected internal override System.Linq.Expressions.Expression VisitDynamic(System.Linq.Expressions.DynamicExpression node) { throw null; } } public sealed partial class ElementInit : System.Linq.Expressions.IArgumentProvider { internal ElementInit() { } public System.Reflection.MethodInfo AddMethod { get { throw null; } } + public int ArgumentCount { get { throw null; } } public System.Collections.ObjectModel.ReadOnlyCollection Arguments { get { throw null; } } - int System.Linq.Expressions.IArgumentProvider.ArgumentCount { get { throw null; } } - System.Linq.Expressions.Expression System.Linq.Expressions.IArgumentProvider.GetArgument(int index) { throw null; } + public System.Linq.Expressions.Expression GetArgument(int index) { throw null; } public override string ToString() { throw null; } public System.Linq.Expressions.ElementInit Update(System.Collections.Generic.IEnumerable arguments) { throw null; } } @@ -426,6 +449,7 @@ protected Expression(System.Linq.Expressions.ExpressionType nodeType, System.Typ public static System.Linq.Expressions.MethodCallExpression Call(System.Linq.Expressions.Expression? instance, System.Reflection.MethodInfo method, System.Linq.Expressions.Expression arg0, System.Linq.Expressions.Expression arg1) { throw null; } public static System.Linq.Expressions.MethodCallExpression Call(System.Linq.Expressions.Expression? instance, System.Reflection.MethodInfo method, System.Linq.Expressions.Expression arg0, System.Linq.Expressions.Expression arg1, System.Linq.Expressions.Expression arg2) { throw null; } public static System.Linq.Expressions.MethodCallExpression Call(System.Linq.Expressions.Expression? instance, System.Reflection.MethodInfo method, params System.Linq.Expressions.Expression[]? arguments) { throw null; } + [System.Diagnostics.CodeAnalysis.RequiresDynamicCodeAttribute("Calling a generic method requires dynamic code generation. This can be suppressed if the method is not generic.")] [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCodeAttribute("Creating Expressions requires unreferenced code because the members being referenced by the Expression may be trimmed.")] public static System.Linq.Expressions.MethodCallExpression Call(System.Linq.Expressions.Expression instance, string methodName, System.Type[]? typeArguments, params System.Linq.Expressions.Expression[]? arguments) { throw null; } public static System.Linq.Expressions.MethodCallExpression Call(System.Reflection.MethodInfo method, System.Collections.Generic.IEnumerable? arguments) { throw null; } @@ -435,6 +459,7 @@ protected Expression(System.Linq.Expressions.ExpressionType nodeType, System.Typ public static System.Linq.Expressions.MethodCallExpression Call(System.Reflection.MethodInfo method, System.Linq.Expressions.Expression arg0, System.Linq.Expressions.Expression arg1, System.Linq.Expressions.Expression arg2, System.Linq.Expressions.Expression arg3) { throw null; } public static System.Linq.Expressions.MethodCallExpression Call(System.Reflection.MethodInfo method, System.Linq.Expressions.Expression arg0, System.Linq.Expressions.Expression arg1, System.Linq.Expressions.Expression arg2, System.Linq.Expressions.Expression arg3, System.Linq.Expressions.Expression arg4) { throw null; } public static System.Linq.Expressions.MethodCallExpression Call(System.Reflection.MethodInfo method, params System.Linq.Expressions.Expression[]? arguments) { throw null; } + [System.Diagnostics.CodeAnalysis.RequiresDynamicCodeAttribute("Calling a generic method requires dynamic code generation. This can be suppressed if the method is not generic.")] [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCodeAttribute("Calling a generic method cannot be statically analyzed. It's not possible to guarantee the availability of requirements of the generic method. This can be suppressed if the method is not generic.")] public static System.Linq.Expressions.MethodCallExpression Call([System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembersAttribute(System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.NonPublicMethods | System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicMethods)] System.Type type, string methodName, System.Type[]? typeArguments, params System.Linq.Expressions.Expression[]? arguments) { throw null; } public static System.Linq.Expressions.CatchBlock Catch(System.Linq.Expressions.ParameterExpression variable, System.Linq.Expressions.Expression body) { throw null; } @@ -463,11 +488,17 @@ protected Expression(System.Linq.Expressions.ExpressionType nodeType, System.Typ public static System.Linq.Expressions.BinaryExpression DivideAssign(System.Linq.Expressions.Expression left, System.Linq.Expressions.Expression right) { throw null; } public static System.Linq.Expressions.BinaryExpression DivideAssign(System.Linq.Expressions.Expression left, System.Linq.Expressions.Expression right, System.Reflection.MethodInfo? method) { throw null; } public static System.Linq.Expressions.BinaryExpression DivideAssign(System.Linq.Expressions.Expression left, System.Linq.Expressions.Expression right, System.Reflection.MethodInfo? method, System.Linq.Expressions.LambdaExpression? conversion) { throw null; } + [System.Diagnostics.CodeAnalysis.RequiresDynamicCodeAttribute("Delegate creation requires dynamic code generation.")] public static System.Linq.Expressions.DynamicExpression Dynamic(System.Runtime.CompilerServices.CallSiteBinder binder, System.Type returnType, System.Collections.Generic.IEnumerable arguments) { throw null; } + [System.Diagnostics.CodeAnalysis.RequiresDynamicCodeAttribute("Delegate creation requires dynamic code generation.")] public static System.Linq.Expressions.DynamicExpression Dynamic(System.Runtime.CompilerServices.CallSiteBinder binder, System.Type returnType, System.Linq.Expressions.Expression arg0) { throw null; } + [System.Diagnostics.CodeAnalysis.RequiresDynamicCodeAttribute("Delegate creation requires dynamic code generation.")] public static System.Linq.Expressions.DynamicExpression Dynamic(System.Runtime.CompilerServices.CallSiteBinder binder, System.Type returnType, System.Linq.Expressions.Expression arg0, System.Linq.Expressions.Expression arg1) { throw null; } + [System.Diagnostics.CodeAnalysis.RequiresDynamicCodeAttribute("Delegate creation requires dynamic code generation.")] public static System.Linq.Expressions.DynamicExpression Dynamic(System.Runtime.CompilerServices.CallSiteBinder binder, System.Type returnType, System.Linq.Expressions.Expression arg0, System.Linq.Expressions.Expression arg1, System.Linq.Expressions.Expression arg2) { throw null; } + [System.Diagnostics.CodeAnalysis.RequiresDynamicCodeAttribute("Delegate creation requires dynamic code generation.")] public static System.Linq.Expressions.DynamicExpression Dynamic(System.Runtime.CompilerServices.CallSiteBinder binder, System.Type returnType, System.Linq.Expressions.Expression arg0, System.Linq.Expressions.Expression arg1, System.Linq.Expressions.Expression arg2, System.Linq.Expressions.Expression arg3) { throw null; } + [System.Diagnostics.CodeAnalysis.RequiresDynamicCodeAttribute("Delegate creation requires dynamic code generation.")] public static System.Linq.Expressions.DynamicExpression Dynamic(System.Runtime.CompilerServices.CallSiteBinder binder, System.Type returnType, params System.Linq.Expressions.Expression[] arguments) { throw null; } public static System.Linq.Expressions.ElementInit ElementInit(System.Reflection.MethodInfo addMethod, System.Collections.Generic.IEnumerable arguments) { throw null; } public static System.Linq.Expressions.ElementInit ElementInit(System.Reflection.MethodInfo addMethod, params System.Linq.Expressions.Expression[] arguments) { throw null; } @@ -483,8 +514,11 @@ protected Expression(System.Linq.Expressions.ExpressionType nodeType, System.Typ [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCodeAttribute("Creating Expressions requires unreferenced code because the members being referenced by the Expression may be trimmed.")] public static System.Linq.Expressions.MemberExpression Field(System.Linq.Expressions.Expression expression, string fieldName) { throw null; } public static System.Linq.Expressions.MemberExpression Field(System.Linq.Expressions.Expression? expression, [System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembersAttribute(System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.NonPublicFields | System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicFields)] System.Type type, string fieldName) { throw null; } + [System.Diagnostics.CodeAnalysis.RequiresDynamicCodeAttribute("Delegate creation requires dynamic code generation.")] public static System.Type GetActionType(params System.Type[]? typeArgs) { throw null; } + [System.Diagnostics.CodeAnalysis.RequiresDynamicCodeAttribute("Delegate creation requires dynamic code generation.")] public static System.Type GetDelegateType(params System.Type[] typeArgs) { throw null; } + [System.Diagnostics.CodeAnalysis.RequiresDynamicCodeAttribute("Delegate creation requires dynamic code generation.")] public static System.Type GetFuncType(params System.Type[]? typeArgs) { throw null; } public static System.Linq.Expressions.GotoExpression Goto(System.Linq.Expressions.LabelTarget target) { throw null; } public static System.Linq.Expressions.GotoExpression Goto(System.Linq.Expressions.LabelTarget target, System.Linq.Expressions.Expression? value) { throw null; } @@ -510,11 +544,17 @@ protected Expression(System.Linq.Expressions.ExpressionType nodeType, System.Typ public static System.Linq.Expressions.LabelTarget Label(string? name) { throw null; } public static System.Linq.Expressions.LabelTarget Label(System.Type type) { throw null; } public static System.Linq.Expressions.LabelTarget Label(System.Type type, string? name) { throw null; } + [System.Diagnostics.CodeAnalysis.RequiresDynamicCodeAttribute("Delegate creation requires dynamic code generation.")] public static System.Linq.Expressions.LambdaExpression Lambda(System.Linq.Expressions.Expression body, bool tailCall, System.Collections.Generic.IEnumerable? parameters) { throw null; } + [System.Diagnostics.CodeAnalysis.RequiresDynamicCodeAttribute("Delegate creation requires dynamic code generation.")] public static System.Linq.Expressions.LambdaExpression Lambda(System.Linq.Expressions.Expression body, bool tailCall, params System.Linq.Expressions.ParameterExpression[]? parameters) { throw null; } + [System.Diagnostics.CodeAnalysis.RequiresDynamicCodeAttribute("Delegate creation requires dynamic code generation.")] public static System.Linq.Expressions.LambdaExpression Lambda(System.Linq.Expressions.Expression body, System.Collections.Generic.IEnumerable? parameters) { throw null; } + [System.Diagnostics.CodeAnalysis.RequiresDynamicCodeAttribute("Delegate creation requires dynamic code generation.")] public static System.Linq.Expressions.LambdaExpression Lambda(System.Linq.Expressions.Expression body, params System.Linq.Expressions.ParameterExpression[]? parameters) { throw null; } + [System.Diagnostics.CodeAnalysis.RequiresDynamicCodeAttribute("Delegate creation requires dynamic code generation.")] public static System.Linq.Expressions.LambdaExpression Lambda(System.Linq.Expressions.Expression body, string? name, bool tailCall, System.Collections.Generic.IEnumerable? parameters) { throw null; } + [System.Diagnostics.CodeAnalysis.RequiresDynamicCodeAttribute("Delegate creation requires dynamic code generation.")] public static System.Linq.Expressions.LambdaExpression Lambda(System.Linq.Expressions.Expression body, string? name, System.Collections.Generic.IEnumerable? parameters) { throw null; } public static System.Linq.Expressions.LambdaExpression Lambda(System.Type delegateType, System.Linq.Expressions.Expression body, bool tailCall, System.Collections.Generic.IEnumerable? parameters) { throw null; } public static System.Linq.Expressions.LambdaExpression Lambda(System.Type delegateType, System.Linq.Expressions.Expression body, bool tailCall, params System.Linq.Expressions.ParameterExpression[]? parameters) { throw null; } @@ -544,13 +584,17 @@ protected Expression(System.Linq.Expressions.ExpressionType nodeType, System.Typ [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCodeAttribute("The Property metadata or other accessor may be trimmed.")] public static System.Linq.Expressions.MemberListBinding ListBind(System.Reflection.MethodInfo propertyAccessor, params System.Linq.Expressions.ElementInit[] initializers) { throw null; } public static System.Linq.Expressions.ListInitExpression ListInit(System.Linq.Expressions.NewExpression newExpression, System.Collections.Generic.IEnumerable initializers) { throw null; } + [System.Diagnostics.CodeAnalysis.RequiresDynamicCodeAttribute("Calling a generic method requires dynamic code generation. This can be suppressed if the method is not generic.")] [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCodeAttribute("Creating Expressions requires unreferenced code because the members being referenced by the Expression may be trimmed.")] public static System.Linq.Expressions.ListInitExpression ListInit(System.Linq.Expressions.NewExpression newExpression, System.Collections.Generic.IEnumerable initializers) { throw null; } public static System.Linq.Expressions.ListInitExpression ListInit(System.Linq.Expressions.NewExpression newExpression, params System.Linq.Expressions.ElementInit[] initializers) { throw null; } + [System.Diagnostics.CodeAnalysis.RequiresDynamicCodeAttribute("Calling a generic method requires dynamic code generation. This can be suppressed if the method is not generic.")] [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCodeAttribute("Creating Expressions requires unreferenced code because the members being referenced by the Expression may be trimmed.")] public static System.Linq.Expressions.ListInitExpression ListInit(System.Linq.Expressions.NewExpression newExpression, params System.Linq.Expressions.Expression[] initializers) { throw null; } + [System.Diagnostics.CodeAnalysis.RequiresDynamicCodeAttribute("Calling a generic method requires dynamic code generation. This can be suppressed if the method is not generic.")] [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCodeAttribute("Creating Expressions requires unreferenced code because the members being referenced by the Expression may be trimmed.")] public static System.Linq.Expressions.ListInitExpression ListInit(System.Linq.Expressions.NewExpression newExpression, System.Reflection.MethodInfo? addMethod, System.Collections.Generic.IEnumerable initializers) { throw null; } + [System.Diagnostics.CodeAnalysis.RequiresDynamicCodeAttribute("Calling a generic method requires dynamic code generation. This can be suppressed if the method is not generic.")] [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCodeAttribute("Creating Expressions requires unreferenced code because the members being referenced by the Expression may be trimmed.")] public static System.Linq.Expressions.ListInitExpression ListInit(System.Linq.Expressions.NewExpression newExpression, System.Reflection.MethodInfo? addMethod, params System.Linq.Expressions.Expression[] initializers) { throw null; } public static System.Linq.Expressions.LoopExpression Loop(System.Linq.Expressions.Expression body) { throw null; } @@ -560,11 +604,17 @@ protected Expression(System.Linq.Expressions.ExpressionType nodeType, System.Typ public static System.Linq.Expressions.BinaryExpression MakeBinary(System.Linq.Expressions.ExpressionType binaryType, System.Linq.Expressions.Expression left, System.Linq.Expressions.Expression right, bool liftToNull, System.Reflection.MethodInfo? method) { throw null; } public static System.Linq.Expressions.BinaryExpression MakeBinary(System.Linq.Expressions.ExpressionType binaryType, System.Linq.Expressions.Expression left, System.Linq.Expressions.Expression right, bool liftToNull, System.Reflection.MethodInfo? method, System.Linq.Expressions.LambdaExpression? conversion) { throw null; } public static System.Linq.Expressions.CatchBlock MakeCatchBlock(System.Type type, System.Linq.Expressions.ParameterExpression? variable, System.Linq.Expressions.Expression body, System.Linq.Expressions.Expression? filter) { throw null; } + [System.Diagnostics.CodeAnalysis.RequiresDynamicCodeAttribute("Delegate creation requires dynamic code generation.")] public static System.Linq.Expressions.DynamicExpression MakeDynamic(System.Type delegateType, System.Runtime.CompilerServices.CallSiteBinder binder, System.Collections.Generic.IEnumerable? arguments) { throw null; } + [System.Diagnostics.CodeAnalysis.RequiresDynamicCodeAttribute("Delegate creation requires dynamic code generation.")] public static System.Linq.Expressions.DynamicExpression MakeDynamic(System.Type delegateType, System.Runtime.CompilerServices.CallSiteBinder binder, System.Linq.Expressions.Expression arg0) { throw null; } + [System.Diagnostics.CodeAnalysis.RequiresDynamicCodeAttribute("Delegate creation requires dynamic code generation.")] public static System.Linq.Expressions.DynamicExpression MakeDynamic(System.Type delegateType, System.Runtime.CompilerServices.CallSiteBinder binder, System.Linq.Expressions.Expression arg0, System.Linq.Expressions.Expression arg1) { throw null; } + [System.Diagnostics.CodeAnalysis.RequiresDynamicCodeAttribute("Delegate creation requires dynamic code generation.")] public static System.Linq.Expressions.DynamicExpression MakeDynamic(System.Type delegateType, System.Runtime.CompilerServices.CallSiteBinder binder, System.Linq.Expressions.Expression arg0, System.Linq.Expressions.Expression arg1, System.Linq.Expressions.Expression arg2) { throw null; } + [System.Diagnostics.CodeAnalysis.RequiresDynamicCodeAttribute("Delegate creation requires dynamic code generation.")] public static System.Linq.Expressions.DynamicExpression MakeDynamic(System.Type delegateType, System.Runtime.CompilerServices.CallSiteBinder binder, System.Linq.Expressions.Expression arg0, System.Linq.Expressions.Expression arg1, System.Linq.Expressions.Expression arg2, System.Linq.Expressions.Expression arg3) { throw null; } + [System.Diagnostics.CodeAnalysis.RequiresDynamicCodeAttribute("Delegate creation requires dynamic code generation.")] public static System.Linq.Expressions.DynamicExpression MakeDynamic(System.Type delegateType, System.Runtime.CompilerServices.CallSiteBinder binder, params System.Linq.Expressions.Expression[]? arguments) { throw null; } public static System.Linq.Expressions.GotoExpression MakeGoto(System.Linq.Expressions.GotoExpressionKind kind, System.Linq.Expressions.LabelTarget target, System.Linq.Expressions.Expression? value, System.Type type) { throw null; } public static System.Linq.Expressions.IndexExpression MakeIndex(System.Linq.Expressions.Expression instance, System.Reflection.PropertyInfo? indexer, System.Collections.Generic.IEnumerable? arguments) { throw null; } @@ -607,13 +657,13 @@ protected Expression(System.Linq.Expressions.ExpressionType nodeType, System.Typ public static System.Linq.Expressions.NewExpression New(System.Reflection.ConstructorInfo constructor, System.Collections.Generic.IEnumerable? arguments, params System.Reflection.MemberInfo[]? members) { throw null; } public static System.Linq.Expressions.NewExpression New(System.Reflection.ConstructorInfo constructor, params System.Linq.Expressions.Expression[]? arguments) { throw null; } public static System.Linq.Expressions.NewExpression New([System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembersAttribute(System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.NonPublicConstructors | System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicConstructors)] System.Type type) { throw null; } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Creating arrays at runtime requires dynamic code generation.")] + [System.Diagnostics.CodeAnalysis.RequiresDynamicCodeAttribute("Creating arrays at runtime requires dynamic code generation.")] public static System.Linq.Expressions.NewArrayExpression NewArrayBounds(System.Type type, System.Collections.Generic.IEnumerable bounds) { throw null; } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Creating arrays at runtime requires dynamic code generation.")] + [System.Diagnostics.CodeAnalysis.RequiresDynamicCodeAttribute("Creating arrays at runtime requires dynamic code generation.")] public static System.Linq.Expressions.NewArrayExpression NewArrayBounds(System.Type type, params System.Linq.Expressions.Expression[] bounds) { throw null; } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Creating arrays at runtime requires dynamic code generation.")] + [System.Diagnostics.CodeAnalysis.RequiresDynamicCodeAttribute("Creating arrays at runtime requires dynamic code generation.")] public static System.Linq.Expressions.NewArrayExpression NewArrayInit(System.Type type, System.Collections.Generic.IEnumerable initializers) { throw null; } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Creating arrays at runtime requires dynamic code generation.")] + [System.Diagnostics.CodeAnalysis.RequiresDynamicCodeAttribute("Creating arrays at runtime requires dynamic code generation.")] public static System.Linq.Expressions.NewArrayExpression NewArrayInit(System.Type type, params System.Linq.Expressions.Expression[] initializers) { throw null; } public static System.Linq.Expressions.UnaryExpression Not(System.Linq.Expressions.Expression expression) { throw null; } public static System.Linq.Expressions.UnaryExpression Not(System.Linq.Expressions.Expression expression, System.Reflection.MethodInfo? method) { throw null; } @@ -703,7 +753,9 @@ protected Expression(System.Linq.Expressions.ExpressionType nodeType, System.Typ public static System.Linq.Expressions.TryExpression TryCatchFinally(System.Linq.Expressions.Expression body, System.Linq.Expressions.Expression? @finally, params System.Linq.Expressions.CatchBlock[]? handlers) { throw null; } public static System.Linq.Expressions.TryExpression TryFault(System.Linq.Expressions.Expression body, System.Linq.Expressions.Expression? fault) { throw null; } public static System.Linq.Expressions.TryExpression TryFinally(System.Linq.Expressions.Expression body, System.Linq.Expressions.Expression? @finally) { throw null; } + [System.Diagnostics.CodeAnalysis.RequiresDynamicCodeAttribute("Delegate creation requires dynamic code generation.")] public static bool TryGetActionType(System.Type[] typeArgs, [System.Diagnostics.CodeAnalysis.NotNullWhenAttribute(true)] out System.Type? actionType) { throw null; } + [System.Diagnostics.CodeAnalysis.RequiresDynamicCodeAttribute("Delegate creation requires dynamic code generation.")] public static bool TryGetFuncType(System.Type[] typeArgs, [System.Diagnostics.CodeAnalysis.NotNullWhenAttribute(true)] out System.Type? funcType) { throw null; } public static System.Linq.Expressions.UnaryExpression TypeAs(System.Linq.Expressions.Expression expression, System.Type type) { throw null; } public static System.Linq.Expressions.TypeBinaryExpression TypeEqual(System.Linq.Expressions.Expression expression, System.Type type) { throw null; } @@ -849,7 +901,7 @@ protected ExpressionVisitor() { } protected internal virtual System.Linq.Expressions.Expression VisitUnary(System.Linq.Expressions.UnaryExpression node) { throw null; } public static System.Collections.ObjectModel.ReadOnlyCollection Visit(System.Collections.ObjectModel.ReadOnlyCollection nodes, System.Func elementVisitor) { throw null; } } - public sealed partial class Expression : System.Linq.Expressions.LambdaExpression + public partial class Expression : System.Linq.Expressions.LambdaExpression { internal Expression() { } protected internal override System.Linq.Expressions.Expression Accept(System.Linq.Expressions.ExpressionVisitor visitor) { throw null; } @@ -890,26 +942,26 @@ public partial interface IDynamicExpression : System.Linq.Expressions.IArgumentP public sealed partial class IndexExpression : System.Linq.Expressions.Expression, System.Linq.Expressions.IArgumentProvider { internal IndexExpression() { } + public int ArgumentCount { get { throw null; } } public System.Collections.ObjectModel.ReadOnlyCollection Arguments { get { throw null; } } public System.Reflection.PropertyInfo? Indexer { get { throw null; } } public sealed override System.Linq.Expressions.ExpressionType NodeType { get { throw null; } } public System.Linq.Expressions.Expression? Object { get { throw null; } } - int System.Linq.Expressions.IArgumentProvider.ArgumentCount { get { throw null; } } 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.Expression GetArgument(int index) { throw null; } public System.Linq.Expressions.IndexExpression Update(System.Linq.Expressions.Expression @object, System.Collections.Generic.IEnumerable? arguments) { throw null; } } - public sealed partial class InvocationExpression : System.Linq.Expressions.Expression, System.Linq.Expressions.IArgumentProvider + public partial class InvocationExpression : System.Linq.Expressions.Expression, System.Linq.Expressions.IArgumentProvider { internal InvocationExpression() { } + public virtual int ArgumentCount { get { throw null; } } public System.Collections.ObjectModel.ReadOnlyCollection Arguments { get { throw null; } } public System.Linq.Expressions.Expression Expression { get { throw null; } } public sealed override System.Linq.Expressions.ExpressionType NodeType { get { throw null; } } - int System.Linq.Expressions.IArgumentProvider.ArgumentCount { get { throw null; } } 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 virtual System.Linq.Expressions.Expression GetArgument(int index) { throw null; } public System.Linq.Expressions.InvocationExpression Update(System.Linq.Expressions.Expression expression, System.Collections.Generic.IEnumerable? arguments) { throw null; } } public sealed partial class LabelExpression : System.Linq.Expressions.Expression @@ -933,6 +985,9 @@ public abstract partial class LambdaExpression : System.Linq.Expressions.Express { internal LambdaExpression() { } public System.Linq.Expressions.Expression Body { get { throw null; } } + [System.Diagnostics.CodeAnalysis.FeatureGuardAttribute(typeof(System.Diagnostics.CodeAnalysis.RequiresDynamicCodeAttribute))] + public static bool CanCompileToIL { get { throw null; } } + public static bool CanInterpret { get { throw null; } } public string? Name { get { throw null; } } public sealed override System.Linq.Expressions.ExpressionType NodeType { get { throw null; } } public System.Collections.ObjectModel.ReadOnlyCollection Parameters { get { throw null; } } @@ -1022,17 +1077,17 @@ public sealed partial class MemberMemberBinding : System.Linq.Expressions.Member public partial class MethodCallExpression : System.Linq.Expressions.Expression, System.Linq.Expressions.IArgumentProvider { internal MethodCallExpression() { } + public virtual int ArgumentCount { get { throw null; } } public System.Collections.ObjectModel.ReadOnlyCollection Arguments { get { throw null; } } public System.Reflection.MethodInfo Method { get { throw null; } } public sealed override System.Linq.Expressions.ExpressionType NodeType { get { throw null; } } public System.Linq.Expressions.Expression? Object { get { throw null; } } - int System.Linq.Expressions.IArgumentProvider.ArgumentCount { get { throw null; } } 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 virtual System.Linq.Expressions.Expression GetArgument(int index) { throw null; } public System.Linq.Expressions.MethodCallExpression Update(System.Linq.Expressions.Expression? @object, System.Collections.Generic.IEnumerable? arguments) { throw null; } } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Creating arrays at runtime requires dynamic code generation.")] + [System.Diagnostics.CodeAnalysis.RequiresDynamicCodeAttribute("Creating arrays at runtime requires dynamic code generation.")] public partial class NewArrayExpression : System.Linq.Expressions.Expression { internal NewArrayExpression() { } @@ -1044,14 +1099,14 @@ internal NewArrayExpression() { } public partial class NewExpression : System.Linq.Expressions.Expression, System.Linq.Expressions.IArgumentProvider { internal NewExpression() { } + public int ArgumentCount { get { throw null; } } public System.Collections.ObjectModel.ReadOnlyCollection Arguments { get { throw null; } } public System.Reflection.ConstructorInfo? Constructor { get { throw null; } } public System.Collections.ObjectModel.ReadOnlyCollection? Members { get { throw null; } } public sealed override System.Linq.Expressions.ExpressionType NodeType { get { throw null; } } - int System.Linq.Expressions.IArgumentProvider.ArgumentCount { get { throw null; } } public 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.Expression GetArgument(int index) { throw null; } public System.Linq.Expressions.NewExpression Update(System.Collections.Generic.IEnumerable? arguments) { throw null; } } public partial class ParameterExpression : System.Linq.Expressions.Expression @@ -1137,6 +1192,15 @@ internal UnaryExpression() { } public System.Linq.Expressions.UnaryExpression Update(System.Linq.Expressions.Expression operand) { throw null; } } } +namespace System.Linq.Expressions.Interpreter +{ + public partial class LightLambda + { + internal LightLambda() { } + public object? Run(params object?[] arguments) { throw null; } + public object? RunVoid(params object?[] arguments) { throw null; } + } +} namespace System.Runtime.CompilerServices { public partial class CallSite @@ -1157,17 +1221,63 @@ public static partial class CallSiteHelpers { public static bool IsInternalFrame(System.Reflection.MethodBase mb) { throw null; } } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public static partial class CallSiteOps + { + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + [System.ObsoleteAttribute("CallSiteOps has been deprecated and is not supported.", true)] + public static void AddRule(System.Runtime.CompilerServices.CallSite site, T rule) where T : class { } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + [System.Diagnostics.CodeAnalysis.RequiresDynamicCodeAttribute("Creating arrays at runtime requires dynamic code generation.")] + [System.ObsoleteAttribute("CallSiteOps has been deprecated and is not supported.", true)] + public static T Bind(System.Runtime.CompilerServices.CallSiteBinder binder, System.Runtime.CompilerServices.CallSite site, object[] args) where T : class { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + [System.ObsoleteAttribute("CallSiteOps has been deprecated and is not supported.", true)] + public static void ClearMatch(System.Runtime.CompilerServices.CallSite site) { } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + [System.ObsoleteAttribute("CallSiteOps has been deprecated and is not supported.", true)] + public static System.Runtime.CompilerServices.CallSite CreateMatchmaker(System.Runtime.CompilerServices.CallSite site) where T : class { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + [System.ObsoleteAttribute("CallSiteOps has been deprecated and is not supported.", true)] + public static T[] GetCachedRules(System.Runtime.CompilerServices.RuleCache cache) where T : class { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + [System.ObsoleteAttribute("CallSiteOps has been deprecated and is not supported.", true)] + public static bool GetMatch(System.Runtime.CompilerServices.CallSite site) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + [System.ObsoleteAttribute("CallSiteOps has been deprecated and is not supported.", true)] + public static System.Runtime.CompilerServices.RuleCache GetRuleCache(System.Runtime.CompilerServices.CallSite site) where T : class { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + [System.ObsoleteAttribute("CallSiteOps has been deprecated and is not supported.", true)] + public static T[]? GetRules(System.Runtime.CompilerServices.CallSite site) where T : class { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + [System.ObsoleteAttribute("CallSiteOps has been deprecated and is not supported.", true)] + public static void MoveRule(System.Runtime.CompilerServices.RuleCache cache, T rule, int i) where T : class { } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + [System.ObsoleteAttribute("CallSiteOps has been deprecated and is not supported.", true)] + public static bool SetNotMatched(System.Runtime.CompilerServices.CallSite site) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + [System.ObsoleteAttribute("CallSiteOps has been deprecated and is not supported.", true)] + public static void UpdateRules(System.Runtime.CompilerServices.CallSite @this, int matched) where T : class { } + } public partial class CallSite : System.Runtime.CompilerServices.CallSite where T : class { internal CallSite() { } public T Target; public T Update { get { throw null; } } + [System.Diagnostics.CodeAnalysis.RequiresDynamicCodeAttribute("Creating arrays at runtime requires dynamic code generation.")] public static System.Runtime.CompilerServices.CallSite Create(System.Runtime.CompilerServices.CallSiteBinder binder) { throw null; } } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public sealed partial class Closure + { + public readonly object[] Constants; + public readonly object[]? Locals; + public Closure(object[] constants, object[]? locals) { } + } public abstract partial class DebugInfoGenerator { protected DebugInfoGenerator() { } - [System.ObsoleteAttribute("The CreatePdbGenerator API is not supported and throws PlatformNotSupportedException.", DiagnosticId = "SYSLIB0008", UrlFormat = "https://aka.ms/dotnet-warnings/{0}")] + [System.ObsoleteAttribute("The CreatePdbGenerator API is not supported and throws PlatformNotSupportedException.", DiagnosticId="SYSLIB0008", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] public static System.Runtime.CompilerServices.DebugInfoGenerator CreatePdbGenerator() { throw null; } public abstract void MarkSequencePoint(System.Linq.Expressions.LambdaExpression method, int ilOffset, System.Linq.Expressions.DebugInfoExpression sequencePoint); } @@ -1210,11 +1320,11 @@ public void Reverse() { } public void Reverse(int index, int count) { } void System.Collections.ICollection.CopyTo(System.Array array, int index) { } System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } - int System.Collections.IList.Add(object? value) { throw null; } - bool System.Collections.IList.Contains(object? value) { throw null; } - int System.Collections.IList.IndexOf(object? value) { throw null; } - void System.Collections.IList.Insert(int index, object? value) { } - void System.Collections.IList.Remove(object? value) { } + int System.Collections.IList.Add(object value) { throw null; } + bool System.Collections.IList.Contains(object value) { throw null; } + int System.Collections.IList.IndexOf(object value) { throw null; } + void System.Collections.IList.Insert(int index, object value) { } + void System.Collections.IList.Remove(object value) { } public T[] ToArray() { throw null; } public System.Collections.ObjectModel.ReadOnlyCollection ToReadOnlyCollection() { throw null; } } @@ -1223,4 +1333,36 @@ public partial class RuleCache where T : class { internal RuleCache() { } } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public static partial class RuntimeOps + { + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + [System.ObsoleteAttribute("RuntimeOps has been deprecated and is not supported.", true)] + public static System.Runtime.CompilerServices.IRuntimeVariables CreateRuntimeVariables() { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + [System.ObsoleteAttribute("RuntimeOps has been deprecated and is not supported.", true)] + public static System.Runtime.CompilerServices.IRuntimeVariables CreateRuntimeVariables(object[] data, long[] indexes) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + [System.ObsoleteAttribute("RuntimeOps has been deprecated and is not supported.", true)] + public static bool ExpandoCheckVersion(System.Dynamic.ExpandoObject expando, object? version) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + [System.ObsoleteAttribute("RuntimeOps has been deprecated and is not supported.", true)] + public static void ExpandoPromoteClass(System.Dynamic.ExpandoObject expando, object oldClass, object newClass) { } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + [System.ObsoleteAttribute("RuntimeOps has been deprecated and is not supported.", true)] + public static bool ExpandoTryDeleteValue(System.Dynamic.ExpandoObject expando, object? indexClass, int index, string name, bool ignoreCase) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + [System.ObsoleteAttribute("RuntimeOps has been deprecated and is not supported.", true)] + public static bool ExpandoTryGetValue(System.Dynamic.ExpandoObject expando, object? indexClass, int index, string name, bool ignoreCase, out object? value) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + [System.ObsoleteAttribute("RuntimeOps has been deprecated and is not supported.", true)] + public static object? ExpandoTrySetValue(System.Dynamic.ExpandoObject expando, object? indexClass, int index, object? value, string name, bool ignoreCase) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + [System.ObsoleteAttribute("RuntimeOps has been deprecated and is not supported.", true)] + public static System.Runtime.CompilerServices.IRuntimeVariables MergeRuntimeVariables(System.Runtime.CompilerServices.IRuntimeVariables first, System.Runtime.CompilerServices.IRuntimeVariables second, int[] indexes) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + [System.ObsoleteAttribute("RuntimeOps has been deprecated and is not supported.", true)] + [return: System.Diagnostics.CodeAnalysis.NotNullIfNotNullAttribute("expression")] + public static System.Linq.Expressions.Expression? Quote(System.Linq.Expressions.Expression? expression, object hoistedLocals, object[] locals) { throw null; } + } } From b6566e5495dffe43bd070c073fd833fde7d87c16 Mon Sep 17 00:00:00 2001 From: Charles Stoner <10732005+cston@users.noreply.github.com> Date: Mon, 9 Sep 2024 13:46:20 -0700 Subject: [PATCH 2/6] Revert unnecessary changes --- .../ref/System.Linq.Expressions.cs | 97 ++----------------- 1 file changed, 10 insertions(+), 87 deletions(-) diff --git a/src/libraries/System.Linq.Expressions/ref/System.Linq.Expressions.cs b/src/libraries/System.Linq.Expressions/ref/System.Linq.Expressions.cs index e537caf82ff42d..6cb02198f59d15 100644 --- a/src/libraries/System.Linq.Expressions/ref/System.Linq.Expressions.cs +++ b/src/libraries/System.Linq.Expressions/ref/System.Linq.Expressions.cs @@ -33,7 +33,7 @@ public CallInfo(int argCount, System.Collections.Generic.IEnumerable arg public CallInfo(int argCount, params string[] argNames) { } public int ArgumentCount { get { throw null; } } public System.Collections.ObjectModel.ReadOnlyCollection ArgumentNames { get { throw null; } } - public override bool Equals([System.Diagnostics.CodeAnalysis.NotNullWhenAttribute(true)] object? obj) { throw null; } + public override bool Equals([System.Diagnostics.CodeAnalysis.NotNullWhen(true)] object? obj) { throw null; } public override int GetHashCode() { throw null; } } [System.Diagnostics.CodeAnalysis.RequiresDynamicCodeAttribute("Creating a call site may require dynamic code generation.")] @@ -148,11 +148,11 @@ event System.ComponentModel.PropertyChangedEventHandler? System.ComponentModel.I bool System.Collections.Generic.ICollection>.Contains(System.Collections.Generic.KeyValuePair item) { throw null; } void System.Collections.Generic.ICollection>.CopyTo(System.Collections.Generic.KeyValuePair[] array, int arrayIndex) { } bool System.Collections.Generic.ICollection>.Remove(System.Collections.Generic.KeyValuePair item) { throw null; } - void System.Collections.Generic.IDictionary.Add(string key, object value) { } + void System.Collections.Generic.IDictionary.Add(string key, object? value) { } bool System.Collections.Generic.IDictionary.ContainsKey(string key) { throw null; } bool System.Collections.Generic.IDictionary.Remove(string key) { throw null; } - bool System.Collections.Generic.IDictionary.TryGetValue(string key, out object value) { throw null; } - System.Collections.Generic.IEnumerator> System.Collections.Generic.IEnumerable>.GetEnumerator() { throw null; } + bool System.Collections.Generic.IDictionary.TryGetValue(string key, out object? value) { throw null; } + System.Collections.Generic.IEnumerator> System.Collections.Generic.IEnumerable>.GetEnumerator() { throw null; } System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } System.Dynamic.DynamicMetaObject System.Dynamic.IDynamicMetaObjectProvider.GetMetaObject(System.Linq.Expressions.Expression parameter) { throw null; } } @@ -1221,44 +1221,6 @@ public static partial class CallSiteHelpers { public static bool IsInternalFrame(System.Reflection.MethodBase mb) { throw null; } } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public static partial class CallSiteOps - { - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - [System.ObsoleteAttribute("CallSiteOps has been deprecated and is not supported.", true)] - public static void AddRule(System.Runtime.CompilerServices.CallSite site, T rule) where T : class { } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - [System.Diagnostics.CodeAnalysis.RequiresDynamicCodeAttribute("Creating arrays at runtime requires dynamic code generation.")] - [System.ObsoleteAttribute("CallSiteOps has been deprecated and is not supported.", true)] - public static T Bind(System.Runtime.CompilerServices.CallSiteBinder binder, System.Runtime.CompilerServices.CallSite site, object[] args) where T : class { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - [System.ObsoleteAttribute("CallSiteOps has been deprecated and is not supported.", true)] - public static void ClearMatch(System.Runtime.CompilerServices.CallSite site) { } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - [System.ObsoleteAttribute("CallSiteOps has been deprecated and is not supported.", true)] - public static System.Runtime.CompilerServices.CallSite CreateMatchmaker(System.Runtime.CompilerServices.CallSite site) where T : class { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - [System.ObsoleteAttribute("CallSiteOps has been deprecated and is not supported.", true)] - public static T[] GetCachedRules(System.Runtime.CompilerServices.RuleCache cache) where T : class { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - [System.ObsoleteAttribute("CallSiteOps has been deprecated and is not supported.", true)] - public static bool GetMatch(System.Runtime.CompilerServices.CallSite site) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - [System.ObsoleteAttribute("CallSiteOps has been deprecated and is not supported.", true)] - public static System.Runtime.CompilerServices.RuleCache GetRuleCache(System.Runtime.CompilerServices.CallSite site) where T : class { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - [System.ObsoleteAttribute("CallSiteOps has been deprecated and is not supported.", true)] - public static T[]? GetRules(System.Runtime.CompilerServices.CallSite site) where T : class { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - [System.ObsoleteAttribute("CallSiteOps has been deprecated and is not supported.", true)] - public static void MoveRule(System.Runtime.CompilerServices.RuleCache cache, T rule, int i) where T : class { } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - [System.ObsoleteAttribute("CallSiteOps has been deprecated and is not supported.", true)] - public static bool SetNotMatched(System.Runtime.CompilerServices.CallSite site) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - [System.ObsoleteAttribute("CallSiteOps has been deprecated and is not supported.", true)] - public static void UpdateRules(System.Runtime.CompilerServices.CallSite @this, int matched) where T : class { } - } public partial class CallSite : System.Runtime.CompilerServices.CallSite where T : class { internal CallSite() { } @@ -1267,17 +1229,10 @@ internal CallSite() { } [System.Diagnostics.CodeAnalysis.RequiresDynamicCodeAttribute("Creating arrays at runtime requires dynamic code generation.")] public static System.Runtime.CompilerServices.CallSite Create(System.Runtime.CompilerServices.CallSiteBinder binder) { throw null; } } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public sealed partial class Closure - { - public readonly object[] Constants; - public readonly object[]? Locals; - public Closure(object[] constants, object[]? locals) { } - } public abstract partial class DebugInfoGenerator { protected DebugInfoGenerator() { } - [System.ObsoleteAttribute("The CreatePdbGenerator API is not supported and throws PlatformNotSupportedException.", DiagnosticId="SYSLIB0008", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] + [System.ObsoleteAttribute("The CreatePdbGenerator API is not supported and throws PlatformNotSupportedException.", DiagnosticId = "SYSLIB0008", UrlFormat = "https://aka.ms/dotnet-warnings/{0}")] public static System.Runtime.CompilerServices.DebugInfoGenerator CreatePdbGenerator() { throw null; } public abstract void MarkSequencePoint(System.Linq.Expressions.LambdaExpression method, int ilOffset, System.Linq.Expressions.DebugInfoExpression sequencePoint); } @@ -1320,11 +1275,11 @@ public void Reverse() { } public void Reverse(int index, int count) { } void System.Collections.ICollection.CopyTo(System.Array array, int index) { } System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } - int System.Collections.IList.Add(object value) { throw null; } - bool System.Collections.IList.Contains(object value) { throw null; } - int System.Collections.IList.IndexOf(object value) { throw null; } - void System.Collections.IList.Insert(int index, object value) { } - void System.Collections.IList.Remove(object value) { } + int System.Collections.IList.Add(object? value) { throw null; } + bool System.Collections.IList.Contains(object? value) { throw null; } + int System.Collections.IList.IndexOf(object? value) { throw null; } + void System.Collections.IList.Insert(int index, object? value) { } + void System.Collections.IList.Remove(object? value) { } public T[] ToArray() { throw null; } public System.Collections.ObjectModel.ReadOnlyCollection ToReadOnlyCollection() { throw null; } } @@ -1333,36 +1288,4 @@ public partial class RuleCache where T : class { internal RuleCache() { } } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public static partial class RuntimeOps - { - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - [System.ObsoleteAttribute("RuntimeOps has been deprecated and is not supported.", true)] - public static System.Runtime.CompilerServices.IRuntimeVariables CreateRuntimeVariables() { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - [System.ObsoleteAttribute("RuntimeOps has been deprecated and is not supported.", true)] - public static System.Runtime.CompilerServices.IRuntimeVariables CreateRuntimeVariables(object[] data, long[] indexes) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - [System.ObsoleteAttribute("RuntimeOps has been deprecated and is not supported.", true)] - public static bool ExpandoCheckVersion(System.Dynamic.ExpandoObject expando, object? version) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - [System.ObsoleteAttribute("RuntimeOps has been deprecated and is not supported.", true)] - public static void ExpandoPromoteClass(System.Dynamic.ExpandoObject expando, object oldClass, object newClass) { } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - [System.ObsoleteAttribute("RuntimeOps has been deprecated and is not supported.", true)] - public static bool ExpandoTryDeleteValue(System.Dynamic.ExpandoObject expando, object? indexClass, int index, string name, bool ignoreCase) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - [System.ObsoleteAttribute("RuntimeOps has been deprecated and is not supported.", true)] - public static bool ExpandoTryGetValue(System.Dynamic.ExpandoObject expando, object? indexClass, int index, string name, bool ignoreCase, out object? value) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - [System.ObsoleteAttribute("RuntimeOps has been deprecated and is not supported.", true)] - public static object? ExpandoTrySetValue(System.Dynamic.ExpandoObject expando, object? indexClass, int index, object? value, string name, bool ignoreCase) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - [System.ObsoleteAttribute("RuntimeOps has been deprecated and is not supported.", true)] - public static System.Runtime.CompilerServices.IRuntimeVariables MergeRuntimeVariables(System.Runtime.CompilerServices.IRuntimeVariables first, System.Runtime.CompilerServices.IRuntimeVariables second, int[] indexes) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - [System.ObsoleteAttribute("RuntimeOps has been deprecated and is not supported.", true)] - [return: System.Diagnostics.CodeAnalysis.NotNullIfNotNullAttribute("expression")] - public static System.Linq.Expressions.Expression? Quote(System.Linq.Expressions.Expression? expression, object hoistedLocals, object[] locals) { throw null; } - } } From d6da23f397894f4f564970d34f389c247bf3b2ea Mon Sep 17 00:00:00 2001 From: Charles Stoner <10732005+cston@users.noreply.github.com> Date: Mon, 9 Sep 2024 15:32:51 -0700 Subject: [PATCH 3/6] Revert API changes --- .../ref/System.Linq.Expressions.cs | 42 +++++++------------ 1 file changed, 14 insertions(+), 28 deletions(-) diff --git a/src/libraries/System.Linq.Expressions/ref/System.Linq.Expressions.cs b/src/libraries/System.Linq.Expressions/ref/System.Linq.Expressions.cs index 6cb02198f59d15..5282c94bcf44a0 100644 --- a/src/libraries/System.Linq.Expressions/ref/System.Linq.Expressions.cs +++ b/src/libraries/System.Linq.Expressions/ref/System.Linq.Expressions.cs @@ -346,7 +346,6 @@ public partial class DynamicExpression : System.Linq.Expressions.Expression, Sys internal DynamicExpression() { } public System.Collections.ObjectModel.ReadOnlyCollection Arguments { get { throw null; } } public System.Runtime.CompilerServices.CallSiteBinder Binder { get { throw null; } } - public override bool CanReduce { get { throw null; } } public System.Type DelegateType { get { throw null; } } public sealed override System.Linq.Expressions.ExpressionType NodeType { get { throw null; } } int System.Linq.Expressions.IArgumentProvider.ArgumentCount { get { throw null; } } @@ -371,24 +370,23 @@ internal DynamicExpression() { } public static new System.Linq.Expressions.DynamicExpression MakeDynamic(System.Type delegateType, System.Runtime.CompilerServices.CallSiteBinder binder, System.Linq.Expressions.Expression arg0, System.Linq.Expressions.Expression arg1, System.Linq.Expressions.Expression arg2) { throw null; } public static new System.Linq.Expressions.DynamicExpression MakeDynamic(System.Type delegateType, System.Runtime.CompilerServices.CallSiteBinder binder, System.Linq.Expressions.Expression arg0, System.Linq.Expressions.Expression arg1, System.Linq.Expressions.Expression arg2, System.Linq.Expressions.Expression arg3) { throw null; } public static new System.Linq.Expressions.DynamicExpression MakeDynamic(System.Type delegateType, System.Runtime.CompilerServices.CallSiteBinder binder, params System.Linq.Expressions.Expression[]? arguments) { throw null; } - public override System.Linq.Expressions.Expression Reduce() { throw null; } System.Linq.Expressions.Expression System.Linq.Expressions.IArgumentProvider.GetArgument(int index) { throw null; } object System.Linq.Expressions.IDynamicExpression.CreateCallSite() { throw null; } System.Linq.Expressions.Expression System.Linq.Expressions.IDynamicExpression.Rewrite(System.Linq.Expressions.Expression[] args) { throw null; } public System.Linq.Expressions.DynamicExpression Update(System.Collections.Generic.IEnumerable? arguments) { throw null; } } - public partial class DynamicExpressionVisitor : System.Linq.Expressions.ExpressionVisitor + public abstract partial class DynamicExpressionVisitor : System.Linq.Expressions.ExpressionVisitor { - public DynamicExpressionVisitor() { } + protected DynamicExpressionVisitor() { } protected internal override System.Linq.Expressions.Expression VisitDynamic(System.Linq.Expressions.DynamicExpression node) { throw null; } } public sealed partial class ElementInit : System.Linq.Expressions.IArgumentProvider { internal ElementInit() { } public System.Reflection.MethodInfo AddMethod { get { throw null; } } - public int ArgumentCount { get { throw null; } } public System.Collections.ObjectModel.ReadOnlyCollection Arguments { get { throw null; } } - public System.Linq.Expressions.Expression GetArgument(int index) { throw null; } + int System.Linq.Expressions.IArgumentProvider.ArgumentCount { get { throw null; } } + System.Linq.Expressions.Expression System.Linq.Expressions.IArgumentProvider.GetArgument(int index) { throw null; } public override string ToString() { throw null; } public System.Linq.Expressions.ElementInit Update(System.Collections.Generic.IEnumerable arguments) { throw null; } } @@ -901,7 +899,7 @@ protected ExpressionVisitor() { } protected internal virtual System.Linq.Expressions.Expression VisitUnary(System.Linq.Expressions.UnaryExpression node) { throw null; } public static System.Collections.ObjectModel.ReadOnlyCollection Visit(System.Collections.ObjectModel.ReadOnlyCollection nodes, System.Func elementVisitor) { throw null; } } - public partial class Expression : System.Linq.Expressions.LambdaExpression + public sealed partial class Expression : System.Linq.Expressions.LambdaExpression { internal Expression() { } protected internal override System.Linq.Expressions.Expression Accept(System.Linq.Expressions.ExpressionVisitor visitor) { throw null; } @@ -942,26 +940,26 @@ public partial interface IDynamicExpression : System.Linq.Expressions.IArgumentP public sealed partial class IndexExpression : System.Linq.Expressions.Expression, System.Linq.Expressions.IArgumentProvider { internal IndexExpression() { } - public int ArgumentCount { get { throw null; } } public System.Collections.ObjectModel.ReadOnlyCollection Arguments { get { throw null; } } public System.Reflection.PropertyInfo? Indexer { get { throw null; } } public sealed override System.Linq.Expressions.ExpressionType NodeType { get { throw null; } } public System.Linq.Expressions.Expression? Object { get { throw null; } } + int System.Linq.Expressions.IArgumentProvider.ArgumentCount { get { throw null; } } public sealed override System.Type Type { get { throw null; } } protected internal override System.Linq.Expressions.Expression Accept(System.Linq.Expressions.ExpressionVisitor visitor) { throw null; } - public System.Linq.Expressions.Expression GetArgument(int index) { throw null; } + System.Linq.Expressions.Expression System.Linq.Expressions.IArgumentProvider.GetArgument(int index) { throw null; } public System.Linq.Expressions.IndexExpression Update(System.Linq.Expressions.Expression @object, System.Collections.Generic.IEnumerable? arguments) { throw null; } } - public partial class InvocationExpression : System.Linq.Expressions.Expression, System.Linq.Expressions.IArgumentProvider + public sealed partial class InvocationExpression : System.Linq.Expressions.Expression, System.Linq.Expressions.IArgumentProvider { internal InvocationExpression() { } - public virtual int ArgumentCount { get { throw null; } } public System.Collections.ObjectModel.ReadOnlyCollection Arguments { get { throw null; } } public System.Linq.Expressions.Expression Expression { get { throw null; } } public sealed override System.Linq.Expressions.ExpressionType NodeType { get { throw null; } } + int System.Linq.Expressions.IArgumentProvider.ArgumentCount { get { throw null; } } public sealed override System.Type Type { get { throw null; } } protected internal override System.Linq.Expressions.Expression Accept(System.Linq.Expressions.ExpressionVisitor visitor) { throw null; } - public virtual System.Linq.Expressions.Expression GetArgument(int index) { throw null; } + System.Linq.Expressions.Expression System.Linq.Expressions.IArgumentProvider.GetArgument(int index) { throw null; } public System.Linq.Expressions.InvocationExpression Update(System.Linq.Expressions.Expression expression, System.Collections.Generic.IEnumerable? arguments) { throw null; } } public sealed partial class LabelExpression : System.Linq.Expressions.Expression @@ -985,9 +983,6 @@ public abstract partial class LambdaExpression : System.Linq.Expressions.Express { internal LambdaExpression() { } public System.Linq.Expressions.Expression Body { get { throw null; } } - [System.Diagnostics.CodeAnalysis.FeatureGuardAttribute(typeof(System.Diagnostics.CodeAnalysis.RequiresDynamicCodeAttribute))] - public static bool CanCompileToIL { get { throw null; } } - public static bool CanInterpret { get { throw null; } } public string? Name { get { throw null; } } public sealed override System.Linq.Expressions.ExpressionType NodeType { get { throw null; } } public System.Collections.ObjectModel.ReadOnlyCollection Parameters { get { throw null; } } @@ -1077,14 +1072,14 @@ public sealed partial class MemberMemberBinding : System.Linq.Expressions.Member public partial class MethodCallExpression : System.Linq.Expressions.Expression, System.Linq.Expressions.IArgumentProvider { internal MethodCallExpression() { } - public virtual int ArgumentCount { get { throw null; } } public System.Collections.ObjectModel.ReadOnlyCollection Arguments { get { throw null; } } public System.Reflection.MethodInfo Method { get { throw null; } } public sealed override System.Linq.Expressions.ExpressionType NodeType { get { throw null; } } public System.Linq.Expressions.Expression? Object { get { throw null; } } + int System.Linq.Expressions.IArgumentProvider.ArgumentCount { get { throw null; } } public sealed override System.Type Type { get { throw null; } } protected internal override System.Linq.Expressions.Expression Accept(System.Linq.Expressions.ExpressionVisitor visitor) { throw null; } - public virtual System.Linq.Expressions.Expression GetArgument(int index) { 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? arguments) { throw null; } } [System.Diagnostics.CodeAnalysis.RequiresDynamicCodeAttribute("Creating arrays at runtime requires dynamic code generation.")] @@ -1099,14 +1094,14 @@ internal NewArrayExpression() { } public partial class NewExpression : System.Linq.Expressions.Expression, System.Linq.Expressions.IArgumentProvider { internal NewExpression() { } - public int ArgumentCount { get { throw null; } } public System.Collections.ObjectModel.ReadOnlyCollection Arguments { get { throw null; } } public System.Reflection.ConstructorInfo? Constructor { get { throw null; } } public System.Collections.ObjectModel.ReadOnlyCollection? Members { get { throw null; } } public sealed override System.Linq.Expressions.ExpressionType NodeType { get { throw null; } } + int System.Linq.Expressions.IArgumentProvider.ArgumentCount { get { throw null; } } public override System.Type Type { get { throw null; } } protected internal override System.Linq.Expressions.Expression Accept(System.Linq.Expressions.ExpressionVisitor visitor) { throw null; } - public System.Linq.Expressions.Expression GetArgument(int index) { throw null; } + System.Linq.Expressions.Expression System.Linq.Expressions.IArgumentProvider.GetArgument(int index) { throw null; } public System.Linq.Expressions.NewExpression Update(System.Collections.Generic.IEnumerable? arguments) { throw null; } } public partial class ParameterExpression : System.Linq.Expressions.Expression @@ -1192,15 +1187,6 @@ internal UnaryExpression() { } public System.Linq.Expressions.UnaryExpression Update(System.Linq.Expressions.Expression operand) { throw null; } } } -namespace System.Linq.Expressions.Interpreter -{ - public partial class LightLambda - { - internal LightLambda() { } - public object? Run(params object?[] arguments) { throw null; } - public object? RunVoid(params object?[] arguments) { throw null; } - } -} namespace System.Runtime.CompilerServices { public partial class CallSite From 24f6a966781f9435c56988cb21abf3d2a83c89ae Mon Sep 17 00:00:00 2001 From: Charles Stoner <10732005+cston@users.noreply.github.com> Date: Mon, 9 Sep 2024 20:08:16 -0700 Subject: [PATCH 4/6] build ... /p:ApiCompatGenerateSuppressionFile=true --- .../src/CompatibilitySuppressions.xml | 308 +----------------- 1 file changed, 1 insertion(+), 307 deletions(-) diff --git a/src/libraries/System.Linq.Expressions/src/CompatibilitySuppressions.xml b/src/libraries/System.Linq.Expressions/src/CompatibilitySuppressions.xml index 2524d0e9645e56..b88ca7a5e23bdb 100644 --- a/src/libraries/System.Linq.Expressions/src/CompatibilitySuppressions.xml +++ b/src/libraries/System.Linq.Expressions/src/CompatibilitySuppressions.xml @@ -1,5 +1,5 @@  - + CP0001 @@ -97,312 +97,6 @@ ref/net9.0/System.Linq.Expressions.dll lib/net9.0/System.Linq.Expressions.dll - - CP0016 - M:System.Linq.Expressions.DynamicExpression.Dynamic(System.Runtime.CompilerServices.CallSiteBinder,System.Type,System.Collections.Generic.IEnumerable{System.Linq.Expressions.Expression}):[T:System.Diagnostics.CodeAnalysis.RequiresDynamicCodeAttribute] - ref/net9.0/System.Linq.Expressions.dll - lib/net9.0/System.Linq.Expressions.dll - - - CP0016 - M:System.Linq.Expressions.DynamicExpression.Dynamic(System.Runtime.CompilerServices.CallSiteBinder,System.Type,System.Linq.Expressions.Expression,System.Linq.Expressions.Expression,System.Linq.Expressions.Expression,System.Linq.Expressions.Expression):[T:System.Diagnostics.CodeAnalysis.RequiresDynamicCodeAttribute] - ref/net9.0/System.Linq.Expressions.dll - lib/net9.0/System.Linq.Expressions.dll - - - CP0016 - M:System.Linq.Expressions.DynamicExpression.Dynamic(System.Runtime.CompilerServices.CallSiteBinder,System.Type,System.Linq.Expressions.Expression,System.Linq.Expressions.Expression,System.Linq.Expressions.Expression):[T:System.Diagnostics.CodeAnalysis.RequiresDynamicCodeAttribute] - ref/net9.0/System.Linq.Expressions.dll - lib/net9.0/System.Linq.Expressions.dll - - - CP0016 - M:System.Linq.Expressions.DynamicExpression.Dynamic(System.Runtime.CompilerServices.CallSiteBinder,System.Type,System.Linq.Expressions.Expression,System.Linq.Expressions.Expression):[T:System.Diagnostics.CodeAnalysis.RequiresDynamicCodeAttribute] - ref/net9.0/System.Linq.Expressions.dll - lib/net9.0/System.Linq.Expressions.dll - - - CP0016 - M:System.Linq.Expressions.DynamicExpression.Dynamic(System.Runtime.CompilerServices.CallSiteBinder,System.Type,System.Linq.Expressions.Expression):[T:System.Diagnostics.CodeAnalysis.RequiresDynamicCodeAttribute] - ref/net9.0/System.Linq.Expressions.dll - lib/net9.0/System.Linq.Expressions.dll - - - CP0016 - M:System.Linq.Expressions.DynamicExpression.Dynamic(System.Runtime.CompilerServices.CallSiteBinder,System.Type,System.Linq.Expressions.Expression[]):[T:System.Diagnostics.CodeAnalysis.RequiresDynamicCodeAttribute] - ref/net9.0/System.Linq.Expressions.dll - lib/net9.0/System.Linq.Expressions.dll - - - CP0016 - M:System.Linq.Expressions.DynamicExpression.MakeDynamic(System.Type,System.Runtime.CompilerServices.CallSiteBinder,System.Collections.Generic.IEnumerable{System.Linq.Expressions.Expression}):[T:System.Diagnostics.CodeAnalysis.RequiresDynamicCodeAttribute] - ref/net9.0/System.Linq.Expressions.dll - lib/net9.0/System.Linq.Expressions.dll - - - CP0016 - M:System.Linq.Expressions.Expression.Call(System.Linq.Expressions.Expression,System.String,System.Type[],System.Linq.Expressions.Expression[]):[T:System.Diagnostics.CodeAnalysis.RequiresDynamicCodeAttribute] - ref/net9.0/System.Linq.Expressions.dll - lib/net9.0/System.Linq.Expressions.dll - - - CP0016 - M:System.Linq.Expressions.Expression.Call(System.Type,System.String,System.Type[],System.Linq.Expressions.Expression[]):[T:System.Diagnostics.CodeAnalysis.RequiresDynamicCodeAttribute] - ref/net9.0/System.Linq.Expressions.dll - lib/net9.0/System.Linq.Expressions.dll - - - CP0016 - M:System.Linq.Expressions.Expression.Dynamic(System.Runtime.CompilerServices.CallSiteBinder,System.Type,System.Collections.Generic.IEnumerable{System.Linq.Expressions.Expression}):[T:System.Diagnostics.CodeAnalysis.RequiresDynamicCodeAttribute] - ref/net9.0/System.Linq.Expressions.dll - lib/net9.0/System.Linq.Expressions.dll - - - CP0016 - M:System.Linq.Expressions.Expression.Dynamic(System.Runtime.CompilerServices.CallSiteBinder,System.Type,System.Linq.Expressions.Expression,System.Linq.Expressions.Expression,System.Linq.Expressions.Expression,System.Linq.Expressions.Expression):[T:System.Diagnostics.CodeAnalysis.RequiresDynamicCodeAttribute] - ref/net9.0/System.Linq.Expressions.dll - lib/net9.0/System.Linq.Expressions.dll - - - CP0016 - M:System.Linq.Expressions.Expression.Dynamic(System.Runtime.CompilerServices.CallSiteBinder,System.Type,System.Linq.Expressions.Expression,System.Linq.Expressions.Expression,System.Linq.Expressions.Expression):[T:System.Diagnostics.CodeAnalysis.RequiresDynamicCodeAttribute] - ref/net9.0/System.Linq.Expressions.dll - lib/net9.0/System.Linq.Expressions.dll - - - CP0016 - M:System.Linq.Expressions.Expression.Dynamic(System.Runtime.CompilerServices.CallSiteBinder,System.Type,System.Linq.Expressions.Expression,System.Linq.Expressions.Expression):[T:System.Diagnostics.CodeAnalysis.RequiresDynamicCodeAttribute] - ref/net9.0/System.Linq.Expressions.dll - lib/net9.0/System.Linq.Expressions.dll - - - CP0016 - M:System.Linq.Expressions.Expression.Dynamic(System.Runtime.CompilerServices.CallSiteBinder,System.Type,System.Linq.Expressions.Expression):[T:System.Diagnostics.CodeAnalysis.RequiresDynamicCodeAttribute] - ref/net9.0/System.Linq.Expressions.dll - lib/net9.0/System.Linq.Expressions.dll - - - CP0016 - M:System.Linq.Expressions.Expression.Dynamic(System.Runtime.CompilerServices.CallSiteBinder,System.Type,System.Linq.Expressions.Expression[]):[T:System.Diagnostics.CodeAnalysis.RequiresDynamicCodeAttribute] - ref/net9.0/System.Linq.Expressions.dll - lib/net9.0/System.Linq.Expressions.dll - - - CP0016 - M:System.Linq.Expressions.Expression.GetActionType(System.Type[]):[T:System.Diagnostics.CodeAnalysis.RequiresDynamicCodeAttribute] - ref/net9.0/System.Linq.Expressions.dll - lib/net9.0/System.Linq.Expressions.dll - - - CP0016 - M:System.Linq.Expressions.Expression.GetDelegateType(System.Type[]):[T:System.Diagnostics.CodeAnalysis.RequiresDynamicCodeAttribute] - ref/net9.0/System.Linq.Expressions.dll - lib/net9.0/System.Linq.Expressions.dll - - - CP0016 - M:System.Linq.Expressions.Expression.GetFuncType(System.Type[]):[T:System.Diagnostics.CodeAnalysis.RequiresDynamicCodeAttribute] - ref/net9.0/System.Linq.Expressions.dll - lib/net9.0/System.Linq.Expressions.dll - - - CP0016 - M:System.Linq.Expressions.Expression.Lambda(System.Linq.Expressions.Expression,System.Boolean,System.Collections.Generic.IEnumerable{System.Linq.Expressions.ParameterExpression}):[T:System.Diagnostics.CodeAnalysis.RequiresDynamicCodeAttribute] - ref/net9.0/System.Linq.Expressions.dll - lib/net9.0/System.Linq.Expressions.dll - - - CP0016 - M:System.Linq.Expressions.Expression.Lambda(System.Linq.Expressions.Expression,System.Boolean,System.Linq.Expressions.ParameterExpression[]):[T:System.Diagnostics.CodeAnalysis.RequiresDynamicCodeAttribute] - ref/net9.0/System.Linq.Expressions.dll - lib/net9.0/System.Linq.Expressions.dll - - - CP0016 - M:System.Linq.Expressions.Expression.Lambda(System.Linq.Expressions.Expression,System.Collections.Generic.IEnumerable{System.Linq.Expressions.ParameterExpression}):[T:System.Diagnostics.CodeAnalysis.RequiresDynamicCodeAttribute] - ref/net9.0/System.Linq.Expressions.dll - lib/net9.0/System.Linq.Expressions.dll - - - CP0016 - M:System.Linq.Expressions.Expression.Lambda(System.Linq.Expressions.Expression,System.Linq.Expressions.ParameterExpression[]):[T:System.Diagnostics.CodeAnalysis.RequiresDynamicCodeAttribute] - ref/net9.0/System.Linq.Expressions.dll - lib/net9.0/System.Linq.Expressions.dll - - - CP0016 - M:System.Linq.Expressions.Expression.Lambda(System.Linq.Expressions.Expression,System.String,System.Boolean,System.Collections.Generic.IEnumerable{System.Linq.Expressions.ParameterExpression}):[T:System.Diagnostics.CodeAnalysis.RequiresDynamicCodeAttribute] - ref/net9.0/System.Linq.Expressions.dll - lib/net9.0/System.Linq.Expressions.dll - - - CP0016 - M:System.Linq.Expressions.Expression.Lambda(System.Linq.Expressions.Expression,System.String,System.Collections.Generic.IEnumerable{System.Linq.Expressions.ParameterExpression}):[T:System.Diagnostics.CodeAnalysis.RequiresDynamicCodeAttribute] - ref/net9.0/System.Linq.Expressions.dll - lib/net9.0/System.Linq.Expressions.dll - - - CP0016 - M:System.Linq.Expressions.Expression.ListInit(System.Linq.Expressions.NewExpression,System.Collections.Generic.IEnumerable{System.Linq.Expressions.Expression}):[T:System.Diagnostics.CodeAnalysis.RequiresDynamicCodeAttribute] - ref/net9.0/System.Linq.Expressions.dll - lib/net9.0/System.Linq.Expressions.dll - - - CP0016 - M:System.Linq.Expressions.Expression.ListInit(System.Linq.Expressions.NewExpression,System.Linq.Expressions.Expression[]):[T:System.Diagnostics.CodeAnalysis.RequiresDynamicCodeAttribute] - ref/net9.0/System.Linq.Expressions.dll - lib/net9.0/System.Linq.Expressions.dll - - - CP0016 - M:System.Linq.Expressions.Expression.ListInit(System.Linq.Expressions.NewExpression,System.Reflection.MethodInfo,System.Collections.Generic.IEnumerable{System.Linq.Expressions.Expression}):[T:System.Diagnostics.CodeAnalysis.RequiresDynamicCodeAttribute] - ref/net9.0/System.Linq.Expressions.dll - lib/net9.0/System.Linq.Expressions.dll - - - CP0016 - M:System.Linq.Expressions.Expression.ListInit(System.Linq.Expressions.NewExpression,System.Reflection.MethodInfo,System.Linq.Expressions.Expression[]):[T:System.Diagnostics.CodeAnalysis.RequiresDynamicCodeAttribute] - ref/net9.0/System.Linq.Expressions.dll - lib/net9.0/System.Linq.Expressions.dll - - - CP0016 - M:System.Linq.Expressions.Expression.MakeDynamic(System.Type,System.Runtime.CompilerServices.CallSiteBinder,System.Collections.Generic.IEnumerable{System.Linq.Expressions.Expression}):[T:System.Diagnostics.CodeAnalysis.RequiresDynamicCodeAttribute] - ref/net9.0/System.Linq.Expressions.dll - lib/net9.0/System.Linq.Expressions.dll - - - CP0016 - M:System.Linq.Expressions.Expression.MakeDynamic(System.Type,System.Runtime.CompilerServices.CallSiteBinder,System.Linq.Expressions.Expression,System.Linq.Expressions.Expression,System.Linq.Expressions.Expression,System.Linq.Expressions.Expression):[T:System.Diagnostics.CodeAnalysis.RequiresDynamicCodeAttribute] - ref/net9.0/System.Linq.Expressions.dll - lib/net9.0/System.Linq.Expressions.dll - - - CP0016 - M:System.Linq.Expressions.Expression.MakeDynamic(System.Type,System.Runtime.CompilerServices.CallSiteBinder,System.Linq.Expressions.Expression,System.Linq.Expressions.Expression,System.Linq.Expressions.Expression):[T:System.Diagnostics.CodeAnalysis.RequiresDynamicCodeAttribute] - ref/net9.0/System.Linq.Expressions.dll - lib/net9.0/System.Linq.Expressions.dll - - - CP0016 - M:System.Linq.Expressions.Expression.MakeDynamic(System.Type,System.Runtime.CompilerServices.CallSiteBinder,System.Linq.Expressions.Expression,System.Linq.Expressions.Expression):[T:System.Diagnostics.CodeAnalysis.RequiresDynamicCodeAttribute] - ref/net9.0/System.Linq.Expressions.dll - lib/net9.0/System.Linq.Expressions.dll - - - CP0016 - M:System.Linq.Expressions.Expression.MakeDynamic(System.Type,System.Runtime.CompilerServices.CallSiteBinder,System.Linq.Expressions.Expression):[T:System.Diagnostics.CodeAnalysis.RequiresDynamicCodeAttribute] - ref/net9.0/System.Linq.Expressions.dll - lib/net9.0/System.Linq.Expressions.dll - - - CP0016 - M:System.Linq.Expressions.Expression.MakeDynamic(System.Type,System.Runtime.CompilerServices.CallSiteBinder,System.Linq.Expressions.Expression[]):[T:System.Diagnostics.CodeAnalysis.RequiresDynamicCodeAttribute] - ref/net9.0/System.Linq.Expressions.dll - lib/net9.0/System.Linq.Expressions.dll - - - CP0016 - M:System.Linq.Expressions.Expression.TryGetActionType(System.Type[],System.Type@):[T:System.Diagnostics.CodeAnalysis.RequiresDynamicCodeAttribute] - ref/net9.0/System.Linq.Expressions.dll - lib/net9.0/System.Linq.Expressions.dll - - - CP0016 - M:System.Linq.Expressions.Expression.TryGetFuncType(System.Type[],System.Type@):[T:System.Diagnostics.CodeAnalysis.RequiresDynamicCodeAttribute] - ref/net9.0/System.Linq.Expressions.dll - lib/net9.0/System.Linq.Expressions.dll - - - CP0016 - M:System.Runtime.CompilerServices.CallSite`1.Create(System.Runtime.CompilerServices.CallSiteBinder):[T:System.Diagnostics.CodeAnalysis.RequiresDynamicCodeAttribute] - ref/net9.0/System.Linq.Expressions.dll - lib/net9.0/System.Linq.Expressions.dll - - - CP0016 - T:System.Dynamic.BinaryOperationBinder:[T:System.Diagnostics.CodeAnalysis.RequiresDynamicCodeAttribute] - ref/net9.0/System.Linq.Expressions.dll - lib/net9.0/System.Linq.Expressions.dll - - - CP0016 - T:System.Dynamic.ConvertBinder:[T:System.Diagnostics.CodeAnalysis.RequiresDynamicCodeAttribute] - ref/net9.0/System.Linq.Expressions.dll - lib/net9.0/System.Linq.Expressions.dll - - - CP0016 - T:System.Dynamic.CreateInstanceBinder:[T:System.Diagnostics.CodeAnalysis.RequiresDynamicCodeAttribute] - ref/net9.0/System.Linq.Expressions.dll - lib/net9.0/System.Linq.Expressions.dll - - - CP0016 - T:System.Dynamic.DeleteIndexBinder:[T:System.Diagnostics.CodeAnalysis.RequiresDynamicCodeAttribute] - ref/net9.0/System.Linq.Expressions.dll - lib/net9.0/System.Linq.Expressions.dll - - - CP0016 - T:System.Dynamic.DeleteMemberBinder:[T:System.Diagnostics.CodeAnalysis.RequiresDynamicCodeAttribute] - ref/net9.0/System.Linq.Expressions.dll - lib/net9.0/System.Linq.Expressions.dll - - - CP0016 - T:System.Dynamic.DynamicMetaObjectBinder:[T:System.Diagnostics.CodeAnalysis.RequiresDynamicCodeAttribute] - ref/net9.0/System.Linq.Expressions.dll - lib/net9.0/System.Linq.Expressions.dll - - - CP0016 - T:System.Dynamic.DynamicObject:[T:System.Diagnostics.CodeAnalysis.RequiresDynamicCodeAttribute] - ref/net9.0/System.Linq.Expressions.dll - lib/net9.0/System.Linq.Expressions.dll - - - CP0016 - T:System.Dynamic.GetIndexBinder:[T:System.Diagnostics.CodeAnalysis.RequiresDynamicCodeAttribute] - ref/net9.0/System.Linq.Expressions.dll - lib/net9.0/System.Linq.Expressions.dll - - - CP0016 - T:System.Dynamic.GetMemberBinder:[T:System.Diagnostics.CodeAnalysis.RequiresDynamicCodeAttribute] - ref/net9.0/System.Linq.Expressions.dll - lib/net9.0/System.Linq.Expressions.dll - - - CP0016 - T:System.Dynamic.InvokeBinder:[T:System.Diagnostics.CodeAnalysis.RequiresDynamicCodeAttribute] - ref/net9.0/System.Linq.Expressions.dll - lib/net9.0/System.Linq.Expressions.dll - - - CP0016 - T:System.Dynamic.InvokeMemberBinder:[T:System.Diagnostics.CodeAnalysis.RequiresDynamicCodeAttribute] - ref/net9.0/System.Linq.Expressions.dll - lib/net9.0/System.Linq.Expressions.dll - - - CP0016 - T:System.Dynamic.SetIndexBinder:[T:System.Diagnostics.CodeAnalysis.RequiresDynamicCodeAttribute] - ref/net9.0/System.Linq.Expressions.dll - lib/net9.0/System.Linq.Expressions.dll - - - CP0016 - T:System.Dynamic.SetMemberBinder:[T:System.Diagnostics.CodeAnalysis.RequiresDynamicCodeAttribute] - ref/net9.0/System.Linq.Expressions.dll - lib/net9.0/System.Linq.Expressions.dll - - - CP0016 - T:System.Dynamic.UnaryOperationBinder:[T:System.Diagnostics.CodeAnalysis.RequiresDynamicCodeAttribute] - ref/net9.0/System.Linq.Expressions.dll - lib/net9.0/System.Linq.Expressions.dll - CP0020 M:System.Linq.Expressions.DynamicExpressionVisitor.#ctor From 69f07a6a2d6fd7d33fb0b683767d7cd53f3ece16 Mon Sep 17 00:00:00 2001 From: Charles Stoner <10732005+cston@users.noreply.github.com> Date: Mon, 9 Sep 2024 20:14:07 -0700 Subject: [PATCH 5/6] Update link --- .../System.Linq.Expressions/src/CompatibilitySuppressions.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libraries/System.Linq.Expressions/src/CompatibilitySuppressions.xml b/src/libraries/System.Linq.Expressions/src/CompatibilitySuppressions.xml index b88ca7a5e23bdb..d43c6bf4e772b6 100644 --- a/src/libraries/System.Linq.Expressions/src/CompatibilitySuppressions.xml +++ b/src/libraries/System.Linq.Expressions/src/CompatibilitySuppressions.xml @@ -1,5 +1,5 @@  - + CP0001 From f4b8f1891c0e789373613a1afe858d0ee47bf718 Mon Sep 17 00:00:00 2001 From: Eric Erhardt Date: Tue, 10 Sep 2024 09:43:35 -0500 Subject: [PATCH 6/6] Resolve AOT warning in DependencyInjection ExpressionResolverBuilder Calling Expression.Lambda without a delegate type isn't AOT compatible. Fix this by passing the delegate type. --- .../src/ServiceLookup/Expressions/ExpressionResolverBuilder.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libraries/Microsoft.Extensions.DependencyInjection/src/ServiceLookup/Expressions/ExpressionResolverBuilder.cs b/src/libraries/Microsoft.Extensions.DependencyInjection/src/ServiceLookup/Expressions/ExpressionResolverBuilder.cs index 670c62ee2f69a8..dd6db1467ee7e8 100644 --- a/src/libraries/Microsoft.Extensions.DependencyInjection/src/ServiceLookup/Expressions/ExpressionResolverBuilder.cs +++ b/src/libraries/Microsoft.Extensions.DependencyInjection/src/ServiceLookup/Expressions/ExpressionResolverBuilder.cs @@ -32,6 +32,7 @@ internal sealed class ExpressionResolverBuilder : CallSiteVisitor), Expression.Call(ScopeParameter, ServiceLookupHelpers.CaptureDisposableMethodInfo, CaptureDisposableParameter), CaptureDisposableParameter);