Skip to content

Commit d6971a9

Browse files
Add a note about alterations and ifdef to polyfill
1 parent 55c749d commit d6971a9

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

src/PowerShellEditorServices/Index.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
// <auto-generated>
22
// Licensed to the .NET Foundation under one or more agreements.
33
// The .NET Foundation licenses this file to you under the MIT license.
4+
// (with alterations)
5+
#if NET5_0_OR_GREATER
6+
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Index))]
7+
#else
48

59
using System.Diagnostics.CodeAnalysis;
610
using System.Runtime.CompilerServices;
@@ -152,3 +156,4 @@ public static void ThrowValueArgumentOutOfRange_NeedNonNegNumException()
152156
}
153157
}
154158
}
159+
#endif

src/PowerShellEditorServices/Range.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
// <auto-generated>
22
// Licensed to the .NET Foundation under one or more agreements.
33
// The .NET Foundation licenses this file to you under the MIT license.
4+
// (with alterations)
5+
#if NET5_0_OR_GREATER
6+
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Range))]
7+
#else
48

59
global using Range = OmniSharp.Extensions.LanguageServer.Protocol.Models.Range;
610

@@ -116,3 +120,4 @@ public static void ThrowArgumentOutOfRangeException(string parameterName)
116120
}
117121
}
118122
}
123+
#endif

0 commit comments

Comments
 (0)