Skip to content

Commit

Permalink
Mark some APIs as unsupported on MacCatalyst (#53075)
Browse files Browse the repository at this point in the history
  • Loading branch information
MaximLipnin authored May 21, 2021
1 parent 6854225 commit becccb2
Show file tree
Hide file tree
Showing 24 changed files with 145 additions and 53 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ namespace Microsoft.Extensions.Logging.Console
[UnsupportedOSPlatform("android")]
[UnsupportedOSPlatform("browser")]
[UnsupportedOSPlatform("ios")]
[UnsupportedOSPlatform("maccatalyst")]
[UnsupportedOSPlatform("tvos")]
internal sealed class AnsiParsingLogConsole : IConsole
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -403,24 +403,28 @@ public static void Input(int FileNumber, ref long Value) { }
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) { }
[System.Runtime.Versioning.UnsupportedOSPlatform("ios")]
[System.Runtime.Versioning.UnsupportedOSPlatform("macos")]
[System.Runtime.Versioning.UnsupportedOSPlatform("tvos")]
[System.Runtime.Versioning.UnsupportedOSPlatformAttribute("ios")]
[System.Runtime.Versioning.UnsupportedOSPlatformAttribute("maccatalyst")]
[System.Runtime.Versioning.UnsupportedOSPlatformAttribute("macos")]
[System.Runtime.Versioning.UnsupportedOSPlatformAttribute("tvos")]
public static string InputString(int FileNumber, int CharCount) { throw null; }
public static void Kill(string PathName) { }
public static string LineInput(int FileNumber) { throw null; }
public static long Loc(int FileNumber) { throw null; }
[System.Runtime.Versioning.UnsupportedOSPlatform("ios")]
[System.Runtime.Versioning.UnsupportedOSPlatform("macos")]
[System.Runtime.Versioning.UnsupportedOSPlatform("tvos")]
[System.Runtime.Versioning.UnsupportedOSPlatformAttribute("ios")]
[System.Runtime.Versioning.UnsupportedOSPlatformAttribute("maccatalyst")]
[System.Runtime.Versioning.UnsupportedOSPlatformAttribute("macos")]
[System.Runtime.Versioning.UnsupportedOSPlatformAttribute("tvos")]
public static void Lock(int FileNumber) { }
[System.Runtime.Versioning.UnsupportedOSPlatform("ios")]
[System.Runtime.Versioning.UnsupportedOSPlatform("macos")]
[System.Runtime.Versioning.UnsupportedOSPlatform("tvos")]
[System.Runtime.Versioning.UnsupportedOSPlatformAttribute("ios")]
[System.Runtime.Versioning.UnsupportedOSPlatformAttribute("maccatalyst")]
[System.Runtime.Versioning.UnsupportedOSPlatformAttribute("macos")]
[System.Runtime.Versioning.UnsupportedOSPlatformAttribute("tvos")]
public static void Lock(int FileNumber, long Record) { }
[System.Runtime.Versioning.UnsupportedOSPlatform("ios")]
[System.Runtime.Versioning.UnsupportedOSPlatform("macos")]
[System.Runtime.Versioning.UnsupportedOSPlatform("tvos")]
[System.Runtime.Versioning.UnsupportedOSPlatformAttribute("ios")]
[System.Runtime.Versioning.UnsupportedOSPlatformAttribute("maccatalyst")]
[System.Runtime.Versioning.UnsupportedOSPlatformAttribute("macos")]
[System.Runtime.Versioning.UnsupportedOSPlatformAttribute("tvos")]
public static void Lock(int FileNumber, long FromRecord, long ToRecord) { }
public static long LOF(int FileNumber) { throw null; }
public static void MkDir(string Path) { }
Expand All @@ -436,17 +440,20 @@ public static void SetAttr(string PathName, Microsoft.VisualBasic.FileAttribute
public static Microsoft.VisualBasic.SpcInfo SPC(short Count) { throw null; }
public static Microsoft.VisualBasic.TabInfo TAB() { throw null; }
public static Microsoft.VisualBasic.TabInfo TAB(short Column) { throw null; }
[System.Runtime.Versioning.UnsupportedOSPlatform("ios")]
[System.Runtime.Versioning.UnsupportedOSPlatform("macos")]
[System.Runtime.Versioning.UnsupportedOSPlatform("tvos")]
[System.Runtime.Versioning.UnsupportedOSPlatformAttribute("ios")]
[System.Runtime.Versioning.UnsupportedOSPlatformAttribute("maccatalyst")]
[System.Runtime.Versioning.UnsupportedOSPlatformAttribute("macos")]
[System.Runtime.Versioning.UnsupportedOSPlatformAttribute("tvos")]
public static void Unlock(int FileNumber) { }
[System.Runtime.Versioning.UnsupportedOSPlatform("ios")]
[System.Runtime.Versioning.UnsupportedOSPlatform("macos")]
[System.Runtime.Versioning.UnsupportedOSPlatform("tvos")]
[System.Runtime.Versioning.UnsupportedOSPlatformAttribute("ios")]
[System.Runtime.Versioning.UnsupportedOSPlatformAttribute("maccatalyst")]
[System.Runtime.Versioning.UnsupportedOSPlatformAttribute("macos")]
[System.Runtime.Versioning.UnsupportedOSPlatformAttribute("tvos")]
public static void Unlock(int FileNumber, long Record) { }
[System.Runtime.Versioning.UnsupportedOSPlatform("ios")]
[System.Runtime.Versioning.UnsupportedOSPlatform("macos")]
[System.Runtime.Versioning.UnsupportedOSPlatform("tvos")]
[System.Runtime.Versioning.UnsupportedOSPlatformAttribute("ios")]
[System.Runtime.Versioning.UnsupportedOSPlatformAttribute("maccatalyst")]
[System.Runtime.Versioning.UnsupportedOSPlatformAttribute("macos")]
[System.Runtime.Versioning.UnsupportedOSPlatformAttribute("tvos")]
public static void Unlock(int FileNumber, long FromRecord, long ToRecord) { }
public static void Write(int FileNumber, params object[] Output) { }
public static void WriteLine(int FileNumber, params object[] Output) { }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ Namespace Microsoft.VisualBasic.CompilerServices

' the implementation of Lock in base class VB6RandomFile does not handle m_lRecordLen=-1
<UnsupportedOSPlatform("ios")>
<UnsupportedOSPlatform("maccatalyst")>
<UnsupportedOSPlatform("macos")>
<UnsupportedOSPlatform("tvos")>
Friend Overloads Overrides Sub Lock(ByVal lStart As Long, ByVal lEnd As Long)
Expand All @@ -53,6 +54,7 @@ Namespace Microsoft.VisualBasic.CompilerServices

' see Lock description
<UnsupportedOSPlatform("ios")>
<UnsupportedOSPlatform("maccatalyst")>
<UnsupportedOSPlatform("macos")>
<UnsupportedOSPlatform("tvos")>
Friend Overloads Overrides Sub Unlock(ByVal lStart As Long, ByVal lEnd As Long)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -604,6 +604,7 @@ Namespace Microsoft.VisualBasic.CompilerServices
End Function

<UnsupportedOSPlatform("ios")>
<UnsupportedOSPlatform("maccatalyst")>
<UnsupportedOSPlatform("macos")>
<UnsupportedOSPlatform("tvos")>
Friend Overridable Overloads Sub Lock()
Expand All @@ -612,13 +613,15 @@ Namespace Microsoft.VisualBasic.CompilerServices
End Sub

<UnsupportedOSPlatform("ios")>
<UnsupportedOSPlatform("maccatalyst")>
<UnsupportedOSPlatform("macos")>
<UnsupportedOSPlatform("tvos")>
Friend Overridable Overloads Sub Unlock()
m_file.Unlock(0, Int32.MaxValue)
End Sub

<UnsupportedOSPlatform("ios")>
<UnsupportedOSPlatform("maccatalyst")>
<UnsupportedOSPlatform("macos")>
<UnsupportedOSPlatform("tvos")>
Friend Overridable Overloads Sub Lock(ByVal Record As Long)
Expand All @@ -630,6 +633,7 @@ Namespace Microsoft.VisualBasic.CompilerServices
End Sub

<UnsupportedOSPlatform("ios")>
<UnsupportedOSPlatform("maccatalyst")>
<UnsupportedOSPlatform("macos")>
<UnsupportedOSPlatform("tvos")>
Friend Overridable Overloads Sub Unlock(ByVal Record As Long)
Expand All @@ -641,6 +645,7 @@ Namespace Microsoft.VisualBasic.CompilerServices
End Sub

<UnsupportedOSPlatform("ios")>
<UnsupportedOSPlatform("maccatalyst")>
<UnsupportedOSPlatform("macos")>
<UnsupportedOSPlatform("tvos")>
Friend Overridable Overloads Sub Lock(ByVal RecordStart As Long, ByVal RecordEnd As Long)
Expand All @@ -652,6 +657,7 @@ Namespace Microsoft.VisualBasic.CompilerServices
End Sub

<UnsupportedOSPlatform("ios")>
<UnsupportedOSPlatform("maccatalyst")>
<UnsupportedOSPlatform("macos")>
<UnsupportedOSPlatform("tvos")>
Friend Overridable Overloads Sub Unlock(ByVal RecordStart As Long, ByVal RecordEnd As Long)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ Namespace Microsoft.VisualBasic.CompilerServices
End Sub

<UnsupportedOSPlatform("ios")>
<UnsupportedOSPlatform("maccatalyst")>
<UnsupportedOSPlatform("macos")>
<UnsupportedOSPlatform("tvos")>
Friend Overloads Overrides Sub Lock(ByVal lStart As Long, ByVal lEnd As Long)
Expand All @@ -140,6 +141,7 @@ Namespace Microsoft.VisualBasic.CompilerServices
End Sub

<UnsupportedOSPlatform("ios")>
<UnsupportedOSPlatform("maccatalyst")>
<UnsupportedOSPlatform("macos")>
<UnsupportedOSPlatform("tvos")>
Friend Overloads Overrides Sub Unlock(ByVal lStart As Long, ByVal lEnd As Long)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1010,6 +1010,7 @@ Namespace Microsoft.VisualBasic
End Sub

<UnsupportedOSPlatform("ios")>
<UnsupportedOSPlatform("maccatalyst")>
<UnsupportedOSPlatform("macos")>
<UnsupportedOSPlatform("tvos")>
Public Function InputString(ByVal FileNumber As Integer, ByVal CharCount As Integer) As String
Expand Down Expand Up @@ -1050,6 +1051,7 @@ Namespace Microsoft.VisualBasic
End Function

<UnsupportedOSPlatform("ios")>
<UnsupportedOSPlatform("maccatalyst")>
<UnsupportedOSPlatform("macos")>
<UnsupportedOSPlatform("tvos")>
Public Sub Lock(ByVal FileNumber As Integer)
Expand All @@ -1058,6 +1060,7 @@ Namespace Microsoft.VisualBasic
End Sub

<UnsupportedOSPlatform("ios")>
<UnsupportedOSPlatform("maccatalyst")>
<UnsupportedOSPlatform("macos")>
<UnsupportedOSPlatform("tvos")>
Public Sub Lock(ByVal FileNumber As Integer, ByVal Record As Long)
Expand All @@ -1066,6 +1069,7 @@ Namespace Microsoft.VisualBasic
End Sub

<UnsupportedOSPlatform("ios")>
<UnsupportedOSPlatform("maccatalyst")>
<UnsupportedOSPlatform("macos")>
<UnsupportedOSPlatform("tvos")>
Public Sub Lock(ByVal FileNumber As Integer, ByVal FromRecord As Long, ByVal ToRecord As Long)
Expand All @@ -1074,6 +1078,7 @@ Namespace Microsoft.VisualBasic
End Sub

<UnsupportedOSPlatform("ios")>
<UnsupportedOSPlatform("maccatalyst")>
<UnsupportedOSPlatform("macos")>
<UnsupportedOSPlatform("tvos")>
Public Sub Unlock(ByVal FileNumber As Integer)
Expand All @@ -1082,6 +1087,7 @@ Namespace Microsoft.VisualBasic
End Sub

<UnsupportedOSPlatform("ios")>
<UnsupportedOSPlatform("maccatalyst")>
<UnsupportedOSPlatform("macos")>
<UnsupportedOSPlatform("tvos")>
Public Sub Unlock(ByVal FileNumber As Integer, ByVal Record As Long)
Expand All @@ -1090,6 +1096,7 @@ Namespace Microsoft.VisualBasic
End Sub

<UnsupportedOSPlatform("ios")>
<UnsupportedOSPlatform("maccatalyst")>
<UnsupportedOSPlatform("macos")>
<UnsupportedOSPlatform("tvos")>
Public Sub Unlock(ByVal FileNumber As Integer, ByVal FromRecord As Long, ByVal ToRecord As Long)
Expand Down
Loading

0 comments on commit becccb2

Please sign in to comment.