From 3a58898e7898bcd473fcd6f4afa69a5d1e1a64ae Mon Sep 17 00:00:00 2001 From: Jose Perez Rodriguez Date: Thu, 22 Apr 2021 19:36:52 -0700 Subject: [PATCH] Update Reference assembly --- .../ref/Microsoft.VisualBasic.Core.cs | 89 +++++++++++++++++-- .../src/MatchingRefApiCompatBaseline.txt | 9 +- 2 files changed, 82 insertions(+), 16 deletions(-) diff --git a/src/libraries/Microsoft.VisualBasic.Core/ref/Microsoft.VisualBasic.Core.cs b/src/libraries/Microsoft.VisualBasic.Core/ref/Microsoft.VisualBasic.Core.cs index b1fbeff57db634..2710bf315c85b1 100644 --- a/src/libraries/Microsoft.VisualBasic.Core/ref/Microsoft.VisualBasic.Core.cs +++ b/src/libraries/Microsoft.VisualBasic.Core/ref/Microsoft.VisualBasic.Core.cs @@ -197,7 +197,9 @@ public ControlChars() { } public sealed partial class Conversion { internal Conversion() { } - public static object CTypeDynamic(object? Expression, System.Type TargetType) { throw null; } + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCodeAttribute("Calls Conversions.ChangeType")] + public static object CTypeDynamic(object? Expression, [System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembersAttribute(System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicParameterlessConstructor)] System.Type TargetType) { throw null; } + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCodeAttribute("Calls Conversions.ChangeType")] public static TargetType CTypeDynamic(object? Expression) { throw null; } public static string ErrorToString() { throw null; } public static string ErrorToString(int ErrorNumber) { throw null; } @@ -347,6 +349,7 @@ public static void ChDrive(string? Drive) { } public static void FileClose(params int[] FileNumbers) { } public static void FileCopy(string Source, string Destination) { } public static System.DateTime FileDateTime(string PathName) { throw null; } + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCodeAttribute("Calls VB6File.Get")] public static void FileGet(int FileNumber, ref System.Array Value, long RecordNumber = (long)-1, bool ArrayIsDynamic = false, bool StringIsFixedLength = false) { } public static void FileGet(int FileNumber, ref bool Value, long RecordNumber = (long)-1) { } public static void FileGet(int FileNumber, ref byte Value, long RecordNumber = (long)-1) { } @@ -359,10 +362,13 @@ public static void FileGet(int FileNumber, ref int Value, long RecordNumber = (l public static void FileGet(int FileNumber, ref long Value, long RecordNumber = (long)-1) { } public static void FileGet(int FileNumber, ref float Value, long RecordNumber = (long)-1) { } public static void FileGet(int FileNumber, ref string Value, long RecordNumber = (long)-1, bool StringIsFixedLength = false) { } + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCodeAttribute("VB6File.Get")] public static void FileGet(int FileNumber, ref System.ValueType Value, long RecordNumber = (long)-1) { } + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCodeAttribute("Calls VB6File.GetObject")] public static void FileGetObject(int FileNumber, ref object Value, long RecordNumber = (long)-1) { } public static long FileLen(string PathName) { throw null; } public static void FileOpen(int FileNumber, string FileName, Microsoft.VisualBasic.OpenMode Mode, Microsoft.VisualBasic.OpenAccess Access = Microsoft.VisualBasic.OpenAccess.Default, Microsoft.VisualBasic.OpenShare Share = Microsoft.VisualBasic.OpenShare.Default, int RecordLength = -1) { } + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCodeAttribute("Calls VB6File.Put")] public static void FilePut(int FileNumber, System.Array Value, long RecordNumber = (long)-1, bool ArrayIsDynamic = false, bool StringIsFixedLength = false) { } public static void FilePut(int FileNumber, bool Value, long RecordNumber = (long)-1) { } public static void FilePut(int FileNumber, byte Value, long RecordNumber = (long)-1) { } @@ -375,9 +381,11 @@ public static void FilePut(int FileNumber, int Value, long RecordNumber = (long) public static void FilePut(int FileNumber, long Value, long RecordNumber = (long)-1) { } public static void FilePut(int FileNumber, float Value, long RecordNumber = (long)-1) { } public static void FilePut(int FileNumber, string Value, long RecordNumber = (long)-1, bool StringIsFixedLength = false) { } + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCodeAttribute("Calls VB6File.Put")] public static void FilePut(int FileNumber, System.ValueType Value, long RecordNumber = (long)-1) { } [System.ObsoleteAttribute("This member has been deprecated. Please use FilePutObject to write Object types, or coerce FileNumber and RecordNumber to Integer for writing non-Object types. https://go.microsoft.com/fwlink/?linkid=14202")] public static void FilePut(object FileNumber, object Value, object RecordNumber) { } + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCodeAttribute("Calls VB6File.PutObject")] public static void FilePutObject(int FileNumber, object Value, long RecordNumber = (long)-1) { } public static void FileWidth(int FileNumber, int RecordWidth) { } public static int FreeFile() { throw null; } @@ -391,6 +399,7 @@ public static void Input(int FileNumber, ref double Value) { } public static void Input(int FileNumber, ref short Value) { } public static void Input(int FileNumber, ref int Value) { } public static void Input(int FileNumber, ref long Value) { } + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCodeAttribute("Calls Vb6File.Input")] public static void Input(int FileNumber, ref object Value) { } public static void Input(int FileNumber, ref float Value) { } public static void Input(int FileNumber, ref string Value) { } @@ -500,9 +509,11 @@ public static void AppActivate(int ProcessId) { } public static void AppActivate(string Title) { } [System.Runtime.Versioning.SupportedOSPlatformAttribute("windows")] public static void Beep() { } + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCodeAttribute("Calls InternalLateSet, LateGet and InternalLateCall")] public static object? CallByName(object? ObjectRef, string ProcName, Microsoft.VisualBasic.CallType UseCallType, params object?[] Args) { throw null; } public static object? Choose(double Index, params object?[] Choice) { throw null; } public static string Command() { throw null; } + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCodeAttribute("Calls Activator.CreateInstane on a type that cannot be statically analyzed.")] [System.Runtime.Versioning.SupportedOSPlatformAttribute("windows")] public static object CreateObject(string ProgId, string? ServerName = "") { throw null; } [System.Runtime.Versioning.SupportedOSPlatformAttribute("windows")] @@ -511,6 +522,7 @@ public static void DeleteSetting(string AppName, string? Section = null, string? public static string Environ(int Expression) { throw null; } [System.Runtime.Versioning.SupportedOSPlatformAttribute("windows")] public static string[,]? GetAllSettings(string AppName, string Section) { throw null; } + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCodeAttribute("Calls Activator.CreateInstane on a type that cannot be statically analyzed.")] [System.Runtime.Versioning.SupportedOSPlatformAttribute("windows")] public static object? GetObject(string? PathName = null, string? Class = null) { throw null; } [System.Runtime.Versioning.SupportedOSPlatformAttribute("windows")] @@ -631,6 +643,7 @@ internal Strings() { } public static int Len(short Expression) { throw null; } public static int Len(int Expression) { throw null; } public static int Len(long Expression) { throw null; } + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCodeAttribute("Calls StructUtils.GetRecordLength")] public static int Len(object? Expression) { throw null; } [System.CLSCompliantAttribute(false)] public static int Len(sbyte Expression) { throw null; } @@ -770,9 +783,11 @@ internal CharType() { } public sealed partial class Conversions { internal Conversions() { } - public static object? ChangeType(object? Expression, System.Type TargetType) { throw null; } + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCodeAttribute("Calls ChangeType")] + public static object? ChangeType(object? Expression, [System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembersAttribute(System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicParameterlessConstructor)] System.Type TargetType) { throw null; } [System.ObsoleteAttribute("do not use this method", true)] - public static object FallbackUserDefinedConversion(object Expression, System.Type TargetType) { throw null; } + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCodeAttribute("Calls ObjectUserDefinedConversion")] + public static object FallbackUserDefinedConversion(object Expression, [System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembersAttribute(System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicParameterlessConstructor)] System.Type TargetType) { throw null; } public static string FromCharAndCount(char Value, int Count) { throw null; } public static string FromCharArray(char[] Value) { throw null; } public static string FromCharArraySubset(char[] Value, int StartIndex, int Length) { throw null; } @@ -890,30 +905,38 @@ public sealed partial class LateBinding internal LateBinding() { } [System.Diagnostics.DebuggerHiddenAttribute] [System.Diagnostics.DebuggerStepThroughAttribute] - public static void LateCall(object? o, System.Type? objType, string name, object?[]? args, string?[]? paramnames, bool[]? CopyBack) { } + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCodeAttribute("Calls InternalLateCall")] + public static void LateCall(object? o, [System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembersAttribute(System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.All)] System.Type? objType, string name, object?[]? args, string?[]? paramnames, bool[]? CopyBack) { } [System.Diagnostics.DebuggerHiddenAttribute] [System.Diagnostics.DebuggerStepThroughAttribute] - public static object? LateGet(object? o, System.Type? objType, string name, object?[]? args, string?[]? paramnames, bool[]? CopyBack) { throw null; } + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCodeAttribute("Uses Object.GetType which cannot be statically Analyzed")] + public static object? LateGet(object? o, [System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembersAttribute(System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.All)] System.Type? objType, string name, object?[]? args, string?[]? paramnames, bool[]? CopyBack) { throw null; } [System.Diagnostics.DebuggerHiddenAttribute] [System.Diagnostics.DebuggerStepThroughAttribute] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCodeAttribute("Uses Object.GetType which cannot be statically analyzed.")] public static object? LateIndexGet(object o, object?[]? args, string?[]? paramnames) { throw null; } [System.Diagnostics.DebuggerHiddenAttribute] [System.Diagnostics.DebuggerStepThroughAttribute] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCodeAttribute("Uses Object.GetType which cannot be statically analyzed.")] public static void LateIndexSet(object o, object?[] args, string?[]? paramnames) { } [System.Diagnostics.DebuggerHiddenAttribute] [System.Diagnostics.DebuggerStepThroughAttribute] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCodeAttribute("Calls LateIndexSet")] public static void LateIndexSetComplex(object o, object?[] args, string?[]? paramnames, bool OptimisticSet, bool RValueBase) { } [System.Diagnostics.DebuggerHiddenAttribute] [System.Diagnostics.DebuggerStepThroughAttribute] - public static void LateSet(object? o, System.Type? objType, string name, object?[]? args, string?[]? paramnames) { } + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCodeAttribute("Calls InternalLateSet")] + public static void LateSet(object? o, [System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembersAttribute(System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.All)] System.Type? objType, string name, object?[]? args, string?[]? paramnames) { } [System.Diagnostics.DebuggerHiddenAttribute] [System.Diagnostics.DebuggerStepThroughAttribute] - public static void LateSetComplex(object? o, System.Type? objType, string name, object?[]? args, string?[]? paramnames, bool OptimisticSet, bool RValueBase) { } + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCodeAttribute("Calls InternalLateSet")] + public static void LateSetComplex(object? o, [System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembersAttribute(System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.All)] System.Type? objType, string name, object?[]? args, string?[]? paramnames, bool OptimisticSet, bool RValueBase) { } } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public sealed partial class LikeOperator { internal LikeOperator() { } + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCodeAttribute("Calls InvokeUserDefinedOperator")] public static object LikeObject(object? Source, object? Pattern, Microsoft.VisualBasic.CompareMethod CompareOption) { throw null; } public static bool LikeString(string? Source, string? Pattern, Microsoft.VisualBasic.CompareMethod CompareOption) { throw null; } } @@ -930,39 +953,57 @@ public sealed partial class NewLateBinding internal NewLateBinding() { } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] [System.ObsoleteAttribute("do not use this method", true)] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCodeAttribute("Calls ObjectLateCall")] public static object? FallbackCall(object Instance, string MemberName, object[] Arguments, string[] ArgumentNames, bool IgnoreReturn) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] [System.ObsoleteAttribute("do not use this method", true)] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCodeAttribute("Calls ObjectLateGet")] public static object? FallbackGet(object Instance, string MemberName, object[] Arguments, string[] ArgumentNames) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] [System.ObsoleteAttribute("do not use this method", true)] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCodeAttribute("Calls ObjectLateIndexSet")] public static void FallbackIndexSet(object Instance, object[] Arguments, string[] ArgumentNames) { } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] [System.ObsoleteAttribute("do not use this method", true)] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCodeAttribute("Calls ObjectLateIndexSetComplex")] public static void FallbackIndexSetComplex(object Instance, object[] Arguments, string[] ArgumentNames, bool OptimisticSet, bool RValueBase) { } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] [System.ObsoleteAttribute("do not use this method", true)] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCodeAttribute("Calls IDOBinder.IDOFallbackInvokeDefault")] public static object? FallbackInvokeDefault1(object Instance, object[] Arguments, string[] ArgumentNames, bool ReportErrors) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] [System.ObsoleteAttribute("do not use this method", true)] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCodeAttribute("Calls ObjectLateInvokeDefault")] public static object? FallbackInvokeDefault2(object Instance, object[] Arguments, string[] ArgumentNames, bool ReportErrors) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] [System.ObsoleteAttribute("do not use this method", true)] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCodeAttribute("Calls ObjectLateSet")] public static void FallbackSet(object Instance, string MemberName, object[] Arguments) { } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] [System.ObsoleteAttribute("do not use this method", true)] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCodeAttribute("Calls ObjectLateSetComplex")] public static void FallbackSetComplex(object Instance, string MemberName, object[] Arguments, bool OptimisticSet, bool RValueBase) { } + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCodeAttribute("Calls ObjectLateCall")] public static object? LateCall(object? Instance, System.Type? Type, string MemberName, object?[]? Arguments, string?[]? ArgumentNames, System.Type?[]? TypeArguments, bool[]? CopyBack, bool IgnoreReturn) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCodeAttribute("Calls InternalLateInvokeDefault")] public static object? LateCallInvokeDefault(object? Instance, object?[]? Arguments, string?[]? ArgumentNames, bool ReportErrors) { throw null; } + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCodeAttribute("Calls ObjectLateGet")] public static object? LateGet(object? Instance, System.Type? Type, string MemberName, object?[]? Arguments, string?[]? ArgumentNames, System.Type?[]? TypeArguments, bool[]? CopyBack) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCodeAttribute("Calls InternalLateInvokeDefault")] public static object? LateGetInvokeDefault(object Instance, object?[]? Arguments, string?[]? ArgumentNames, bool ReportErrors) { throw null; } + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCodeAttribute("Calls InternalLateInvokeDefault")] public static object? LateIndexGet(object Instance, object?[]? Arguments, string?[]? ArgumentNames) { throw null; } + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCodeAttribute("Calls ObjectLateIndexSet")] public static void LateIndexSet(object Instance, object?[]? Arguments, string?[]? ArgumentNames) { } + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCodeAttribute("Calls ObjectLateIndexSetComplex")] public static void LateIndexSetComplex(object Instance, object?[]? Arguments, string?[]? ArgumentNames, bool OptimisticSet, bool RValueBase) { } + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCodeAttribute("Calls ObjectLateSet")] public static void LateSet(object? Instance, System.Type? Type, string MemberName, object?[]? Arguments, string?[]? ArgumentNames, System.Type[]? TypeArguments) { } + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCodeAttribute("Calls Container.InvokeMethod which is unsafe.")] public static void LateSet(object? Instance, System.Type? Type, string MemberName, object?[]? Arguments, string?[]? ArgumentNames, System.Type[]? TypeArguments, bool OptimisticSet, bool RValueBase, Microsoft.VisualBasic.CallType CallType) { } + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCodeAttribute("Calls ObjectLateSetComplex")] public static void LateSetComplex(object? Instance, System.Type? Type, string MemberName, object?[]? Arguments, string?[]? ArgumentNames, System.Type[]? TypeArguments, bool OptimisticSet, bool RValueBase) { } } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] @@ -974,8 +1015,10 @@ public static void CheckForSyncLockOnValueType(object? Expression) { } public sealed partial class ForLoopControl { internal ForLoopControl() { } + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCodeAttribute("Cannot statically analyze which targetType will be.")] public static bool ForLoopInitObj(object Counter, object Start, object Limit, object StepValue, ref object LoopForResult, ref object CounterResult) { throw null; } public static bool ForNextCheckDec(decimal count, decimal limit, decimal StepValue) { throw null; } + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCodeAttribute("Cannot statically analyze which targetType will be.")] public static bool ForNextCheckObj(object Counter, object LoopObj, ref object CounterResult) { throw null; } public static bool ForNextCheckR4(float count, float limit, float StepValue) { throw null; } public static bool ForNextCheckR8(double count, double limit, double StepValue) { throw null; } @@ -993,7 +1036,7 @@ public ObjectType() { } public static object GetObjectValuePrimitive(object? o) { throw null; } public static object IDivObj(object? o1, object? o2) { throw null; } public static bool LikeObj(object? vLeft, object? vRight, Microsoft.VisualBasic.CompareMethod CompareOption) { throw null; } - public static object ModObj(object? o1, object?o2) { throw null; } + public static object ModObj(object? o1, object? o2) { throw null; } public static object MulObj(object? o1, object? o2) { throw null; } public static object NegObj(object? obj) { throw null; } public static object NotObj(object? obj) { throw null; } @@ -1010,36 +1053,65 @@ public ObjectType() { } public sealed partial class Operators { internal Operators() { } + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCodeAttribute("Calls InvokeUserDefinedOperator")] public static object? AddObject(object? Left, object? Right) { throw null; } + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCodeAttribute("Calls InvokeUserDefinedOperator")] public static object? AndObject(object? Left, object? Right) { throw null; } + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCodeAttribute("Calls InvokeUserDefinedOperator")] public static object? CompareObjectEqual(object? Left, object? Right, bool TextCompare) { throw null; } + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCodeAttribute("Calls InvokeUserDefinedOperator")] public static object? CompareObjectGreater(object? Left, object? Right, bool TextCompare) { throw null; } + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCodeAttribute("Calls InvokeUserDefinedOperator")] public static object? CompareObjectGreaterEqual(object? Left, object? Right, bool TextCompare) { throw null; } + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCodeAttribute("Calls InvokeUserDefinedOperator")] public static object? CompareObjectLess(object? Left, object? Right, bool TextCompare) { throw null; } + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCodeAttribute("Calls InvokeUserDefinedOperator")] public static object? CompareObjectLessEqual(object? Left, object? Right, bool TextCompare) { throw null; } + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCodeAttribute("Calls InvokeUserDefinedOperator")] public static object? CompareObjectNotEqual(object? Left, object? Right, bool TextCompare) { throw null; } public static int CompareString(string? Left, string? Right, bool TextCompare) { throw null; } + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCodeAttribute("Calls InvokeUserDefinedOperator")] public static object? ConcatenateObject(object? Left, object? Right) { throw null; } + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCodeAttribute("Calls InvokeUserDefinedOperator")] public static bool ConditionalCompareObjectEqual(object? Left, object? Right, bool TextCompare) { throw null; } + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCodeAttribute("Calls InvokeUserDefinedOperator")] public static bool ConditionalCompareObjectGreater(object? Left, object? Right, bool TextCompare) { throw null; } + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCodeAttribute("Calls InvokeUserDefinedOperator")] public static bool ConditionalCompareObjectGreaterEqual(object? Left, object? Right, bool TextCompare) { throw null; } + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCodeAttribute("Calls InvokeUserDefinedOperator")] public static bool ConditionalCompareObjectLess(object? Left, object? Right, bool TextCompare) { throw null; } + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCodeAttribute("Calls InvokeUserDefinedOperator")] public static bool ConditionalCompareObjectLessEqual(object? Left, object? Right, bool TextCompare) { throw null; } + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCodeAttribute("Calls InvokeUserDefinedOperator")] public static bool ConditionalCompareObjectNotEqual(object? Left, object? Right, bool TextCompare) { throw null; } + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCodeAttribute("Calls InvokeUserDefinedOperator")] public static object? DivideObject(object? Left, object? Right) { throw null; } + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCodeAttribute("Calls InvokeUserDefinedOperator")] public static object? ExponentObject(object? Left, object? Right) { throw null; } [System.ObsoleteAttribute("do not use this method", true)] + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCodeAttribute("Calls InvokeObjectUserDefinedOperator")] public static object? FallbackInvokeUserDefinedOperator(object? vbOp, object?[]? arguments) { throw null; } + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCodeAttribute("Calls InvokeUserDefinedOperator")] public static object? IntDivideObject(object? Left, object? Right) { throw null; } + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCodeAttribute("Calls InvokeUserDefinedOperator")] public static object? LeftShiftObject(object? Operand, object? Amount) { throw null; } + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCodeAttribute("Calls InvokeUserDefinedOperator")] public static object? ModObject(object? Left, object? Right) { throw null; } + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCodeAttribute("Calls InvokeUserDefinedOperator")] public static object? MultiplyObject(object? Left, object? Right) { throw null; } + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCodeAttribute("Calls InvokeUserDefinedOperator")] public static object? NegateObject(object? Operand) { throw null; } + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCodeAttribute("Calls InvokeUserDefinedOperator")] public static object? NotObject(object? Operand) { throw null; } + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCodeAttribute("Calls InvokeUserDefinedOperator")] public static object? OrObject(object? Left, object? Right) { throw null; } + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCodeAttribute("Calls InvokeUserDefinedOperator")] public static object? PlusObject(object? Operand) { throw null; } + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCodeAttribute("Calls InvokeUserDefinedOperator")] public static object? RightShiftObject(object? Operand, object? Amount) { throw null; } + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCodeAttribute("Calls InvokeUserDefinedOperator")] public static object? SubtractObject(object? Left, object? Right) { throw null; } + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCodeAttribute("Calls InvokeUserDefinedOperator")] public static object? XorObject(object? Left, object? Right) { throw null; } } [System.AttributeUsageAttribute(System.AttributeTargets.Parameter, Inherited=false, AllowMultiple=false)] @@ -1128,6 +1200,7 @@ internal Utils() { } public sealed partial class Versioned { internal Versioned() { } + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCodeAttribute("Calls LateSet, IDOSet, LateGet, and LateCall which are unsafe")] public static object? CallByName(object? Instance, string MethodName, Microsoft.VisualBasic.CallType UseCallType, params object?[]? Arguments) { throw null; } public static bool IsNumeric(object? Expression) { throw null; } public static string? SystemTypeName(string? VbName) { throw null; } diff --git a/src/libraries/Microsoft.VisualBasic.Core/src/MatchingRefApiCompatBaseline.txt b/src/libraries/Microsoft.VisualBasic.Core/src/MatchingRefApiCompatBaseline.txt index 5c31a108d70684..e7285872ee998b 100644 --- a/src/libraries/Microsoft.VisualBasic.Core/src/MatchingRefApiCompatBaseline.txt +++ b/src/libraries/Microsoft.VisualBasic.Core/src/MatchingRefApiCompatBaseline.txt @@ -1,6 +1,5 @@ Compat issues with assembly Microsoft.VisualBasic.Core: ParameterNamesCannotChange : Parameter name on member 'Microsoft.VisualBasic.ComClassAttribute.InterfaceShadows.set(System.Boolean)' is 'value' in the reference but 'AutoPropertyValue' in the implementation. -CannotRemoveAttribute : Attribute 'System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembersAttribute' exists on parameter 'TargetType' on member 'Microsoft.VisualBasic.Conversion.CTypeDynamic(System.Object, System.Type)' in the implementation but not the reference. ParameterNamesCannotChange : Parameter name on member 'Microsoft.VisualBasic.DateAndTime.DateString.set(System.String)' is 'value' in the reference but 'Value' in the implementation. ParameterNamesCannotChange : Parameter name on member 'Microsoft.VisualBasic.DateAndTime.TimeOfDay.set(System.DateTime)' is 'value' in the reference but 'Value' in the implementation. ParameterNamesCannotChange : Parameter name on member 'Microsoft.VisualBasic.DateAndTime.TimeString.set(System.String)' is 'value' in the reference but 'Value' in the implementation. @@ -10,10 +9,4 @@ ParameterNamesCannotChange : Parameter name on member 'Microsoft.VisualBasic.Err ParameterNamesCannotChange : Parameter name on member 'Microsoft.VisualBasic.ErrObject.HelpFile.set(System.String)' is 'value' in the reference but 'Value' in the implementation. ParameterNamesCannotChange : Parameter name on member 'Microsoft.VisualBasic.ErrObject.Number.set(System.Int32)' is 'value' in the reference but 'Value' in the implementation. ParameterNamesCannotChange : Parameter name on member 'Microsoft.VisualBasic.ErrObject.Source.set(System.String)' is 'value' in the reference but 'Value' in the implementation. -CannotRemoveAttribute : Attribute 'System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembersAttribute' exists on parameter 'TargetType' on member 'Microsoft.VisualBasic.CompilerServices.Conversions.ChangeType(System.Object, System.Type)' in the implementation but not the reference. -CannotRemoveAttribute : Attribute 'System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembersAttribute' exists on parameter 'TargetType' on member 'Microsoft.VisualBasic.CompilerServices.Conversions.FallbackUserDefinedConversion(System.Object, System.Type)' in the implementation but not the reference. -CannotRemoveAttribute : Attribute 'System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembersAttribute' exists on parameter 'objType' on member 'Microsoft.VisualBasic.CompilerServices.LateBinding.LateCall(System.Object, System.Type, System.String, System.Object[], System.String[], System.Boolean[])' in the implementation but not the reference. -CannotRemoveAttribute : Attribute 'System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembersAttribute' exists on parameter 'objType' on member 'Microsoft.VisualBasic.CompilerServices.LateBinding.LateGet(System.Object, System.Type, System.String, System.Object[], System.String[], System.Boolean[])' in the implementation but not the reference. -CannotRemoveAttribute : Attribute 'System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembersAttribute' exists on parameter 'objType' on member 'Microsoft.VisualBasic.CompilerServices.LateBinding.LateSet(System.Object, System.Type, System.String, System.Object[], System.String[])' in the implementation but not the reference. -CannotRemoveAttribute : Attribute 'System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembersAttribute' exists on parameter 'objType' on member 'Microsoft.VisualBasic.CompilerServices.LateBinding.LateSetComplex(System.Object, System.Type, System.String, System.Object[], System.String[], System.Boolean, System.Boolean)' in the implementation but not the reference. -Total Issues: 17 +Total Issues: 10