Skip to content

Commit 6f2070b

Browse files
committed
.
1 parent 3234f69 commit 6f2070b

File tree

76 files changed

+24
-152
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

76 files changed

+24
-152
lines changed

assemblySize.include.md

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -28,23 +28,23 @@
2828

2929
| | Empty Assembly | With Polyfill | Diff | Ensure | ArgumentExceptions | StringInterpolation | Nullability |
3030
|----------------|----------------|---------------|-----------|-----------|--------------------|---------------------|-------------|
31-
| netstandard2.0 | 8.0 KB | 292.5 KB | +284.5 KB | +16.4 KB | +7.0 KB | +15.3 KB | +19.9 KB |
32-
| netstandard2.1 | 8.5 KB | 238.1 KB | +229.6 KB | +15.9 KB | +6.5 KB | +14.8 KB | +19.4 KB |
33-
| net461 | 5.5 KB | 298.0 KB | +292.5 KB | +16.4 KB | +7.0 KB | +15.3 KB | +19.9 KB |
34-
| net462 | 5.5 KB | 298.0 KB | +292.5 KB | +16.4 KB | +7.0 KB | +15.3 KB | +19.9 KB |
35-
| net47 | 5.5 KB | 297.7 KB | +292.2 KB | +16.4 KB | +7.0 KB | +14.8 KB | +19.9 KB |
36-
| net471 | 5.5 KB | 297.7 KB | +292.2 KB | +16.4 KB | +7.0 KB | +14.8 KB | +19.9 KB |
37-
| net472 | 5.5 KB | 295.0 KB | +289.5 KB | +16.4 KB | +7.0 KB | +15.3 KB | +19.9 KB |
38-
| net48 | 5.5 KB | 295.0 KB | +289.5 KB | +16.4 KB | +7.0 KB | +15.3 KB | +19.9 KB |
39-
| net481 | 5.5 KB | 295.0 KB | +289.5 KB | +16.4 KB | +7.0 KB | +15.3 KB | +19.9 KB |
40-
| netcoreapp2.0 | 9.0 KB | 263.8 KB | +254.8 KB | +16.4 KB | +6.5 KB | +14.8 KB | +19.9 KB |
41-
| netcoreapp2.1 | 9.0 KB | 251.9 KB | +242.9 KB | +15.9 KB | +6.5 KB | +14.8 KB | +19.4 KB |
42-
| netcoreapp2.2 | 9.0 KB | 251.9 KB | +242.9 KB | +15.9 KB | +6.5 KB | +14.8 KB | +19.4 KB |
43-
| netcoreapp3.0 | 9.5 KB | 237.8 KB | +228.3 KB | +16.4 KB | +6.5 KB | +14.8 KB | +19.9 KB |
44-
| netcoreapp3.1 | 9.5 KB | 236.3 KB | +226.8 KB | +16.4 KB | +6.5 KB | +14.8 KB | +19.4 KB |
45-
| net5.0 | 9.5 KB | 200.9 KB | +191.4 KB | +16.4 KB | +6.5 KB | +14.8 KB | +19.4 KB |
46-
| net6.0 | 10.0 KB | 155.5 KB | +145.5 KB | +16.9 KB | +7.0 KB | +2.0 KB | +4.5 KB |
47-
| net7.0 | 10.0 KB | 119.8 KB | +109.8 KB | +16.9 KB | +6.4 KB | +2.5 KB | +4.5 KB |
48-
| net8.0 | 9.5 KB | 93.1 KB | +83.6 KB | +16.4 KB | +1.9 KB | +2.5 KB | +4.5 KB |
49-
| net9.0 | 10.0 KB | 52.6 KB | +42.6 KB | +16.9 KB | +1.9 KB | +2.5 KB | +5.0 KB |
50-
| net10.0 | 10.0 KB | 38.7 KB | +28.7 KB | +17.4 KB | +2.4 KB | +2.5 KB | +5.0 KB |
31+
| netstandard2.0 | 8.0 KB | 290.7 KB | +282.7 KB | +16.3 KB | +7.0 KB | +15.3 KB | +19.8 KB |
32+
| netstandard2.1 | 8.5 KB | 236.6 KB | +228.1 KB | +15.8 KB | +6.5 KB | +14.8 KB | +19.3 KB |
33+
| net461 | 5.5 KB | 296.2 KB | +290.7 KB | +16.3 KB | +7.0 KB | +15.3 KB | +19.8 KB |
34+
| net462 | 5.5 KB | 296.2 KB | +290.7 KB | +16.3 KB | +7.0 KB | +15.3 KB | +19.8 KB |
35+
| net47 | 5.5 KB | 296.0 KB | +290.5 KB | +16.3 KB | +7.0 KB | +14.8 KB | +19.8 KB |
36+
| net471 | 5.5 KB | 296.0 KB | +290.5 KB | +16.3 KB | +7.0 KB | +14.8 KB | +19.8 KB |
37+
| net472 | 5.5 KB | 293.3 KB | +287.8 KB | +16.3 KB | +7.0 KB | +15.3 KB | +19.8 KB |
38+
| net48 | 5.5 KB | 293.3 KB | +287.8 KB | +16.3 KB | +7.0 KB | +15.3 KB | +19.8 KB |
39+
| net481 | 5.5 KB | 293.3 KB | +287.8 KB | +16.3 KB | +7.0 KB | +15.3 KB | +19.8 KB |
40+
| netcoreapp2.0 | 9.0 KB | 262.2 KB | +253.2 KB | +16.3 KB | +6.5 KB | +14.8 KB | +19.8 KB |
41+
| netcoreapp2.1 | 9.0 KB | 250.3 KB | +241.3 KB | +15.8 KB | +6.5 KB | +14.8 KB | +19.3 KB |
42+
| netcoreapp2.2 | 9.0 KB | 250.3 KB | +241.3 KB | +15.8 KB | +6.5 KB | +14.8 KB | +19.3 KB |
43+
| netcoreapp3.0 | 9.5 KB | 236.4 KB | +226.9 KB | +16.3 KB | +6.5 KB | +14.8 KB | +19.8 KB |
44+
| netcoreapp3.1 | 9.5 KB | 234.8 KB | +225.3 KB | +16.3 KB | +6.5 KB | +14.8 KB | +19.3 KB |
45+
| net5.0 | 9.5 KB | 199.7 KB | +190.2 KB | +16.3 KB | +6.5 KB | +14.8 KB | +19.3 KB |
46+
| net6.0 | 10.0 KB | 154.5 KB | +144.5 KB | +16.8 KB | +7.0 KB | +2.0 KB | +4.5 KB |
47+
| net7.0 | 10.0 KB | 119.0 KB | +109.0 KB | +16.7 KB | +6.4 KB | +2.5 KB | +4.5 KB |
48+
| net8.0 | 9.5 KB | 92.4 KB | +82.9 KB | +16.3 KB | +1.8 KB | +2.5 KB | +4.5 KB |
49+
| net9.0 | 10.0 KB | 52.1 KB | +42.1 KB | +16.8 KB | +1.9 KB | +2.5 KB | +5.0 KB |
50+
| net10.0 | 10.0 KB | 38.3 KB | +28.3 KB | +17.3 KB | +2.4 KB | +2.5 KB | +5.0 KB |

src/ApiBuilderTests/FrameworkSplitterTest.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,10 @@ void ProcessFile(string sourceFile, FrameworkIdentifier framework, string framew
9090
var processedCode = processedRoot.ToFullString();
9191
// Normalize line endings to LF, then use consistent line endings throughout
9292
processedCode = processedCode.Replace("\r\n", "\n").Replace("\r", "\n");
93+
// Remove //Link: comment lines (they may be inside DisabledTextTrivia that wasn't processed)
94+
var lines = processedCode.Split('\n');
95+
var filteredLines = lines.Where(line => !line.TrimStart().StartsWith("//Link:", StringComparison.OrdinalIgnoreCase));
96+
processedCode = string.Join("\n", filteredLines);
9397
var codeWithHeader = $"// <auto-generated />\n#pragma warning disable\n{processedCode}";
9498
File.WriteAllText(outputPath, codeWithHeader);
9599

src/Split/net10.0/ArgumentExceptions/ArgumentNullExceptionPolyfill.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ static partial class Polyfill
1212
{
1313

1414
#if AllowUnsafeBlocks && !NET9_0_OR_GREATER
15-
//Link: https://learn.microsoft.com/en-us/dotnet/api/system.argumentnullexception.throwifnull?view=net-10.0#system-argumentnullexception-throwifnull(system-void*-system-string)
1615
public static unsafe void ThrowIfNull(void* argument, [CallerArgumentExpression(nameof(argument))] string? paramName = null)
1716
{
1817
if (argument is null)

src/Split/net10.0/Regex/RegexPolyfill.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,21 +20,18 @@ static partial class Polyfill
2020

2121
#if !NET9_0_OR_GREATER && FeatureMemory && FeatureValueTuple
2222

23-
//Link: https://learn.microsoft.com/en-us/dotnet/api/system.text.regularexpressions.regex.enumeratesplits?view=net-10.0#system-text-regularexpressions-regex-enumeratesplits(system-readonlyspan((system-char))-system-string)
2423
public static ValueSplitEnumerator EnumerateSplits(ReadOnlySpan<char> input, string pattern)
2524
{
2625
var regex = new Regex(pattern);
2726
return new ValueSplitEnumerator(input, regex, 0, 0);
2827
}
2928

30-
//Link: https://learn.microsoft.com/en-us/dotnet/api/system.text.regularexpressions.regex.enumeratesplits?view=net-10.0#system-text-regularexpressions-regex-enumeratesplits(system-readonlyspan((system-char))-system-string-system-text-regularexpressions-regexoptions)
3129
public static ValueSplitEnumerator EnumerateSplits(ReadOnlySpan<char> input, string pattern, RegexOptions options)
3230
{
3331
var regex = new Regex(pattern, options);
3432
return new ValueSplitEnumerator(input, regex, 0, 0);
3533
}
3634

37-
//Link: https://learn.microsoft.com/en-us/dotnet/api/system.text.regularexpressions.regex.enumeratesplits?view=net-10.0#system-text-regularexpressions-regex-enumeratesplits(system-readonlyspan((system-char))-system-string-system-text-regularexpressions-regexoptions-system-timespan)
3835
public static ValueSplitEnumerator EnumerateSplits(ReadOnlySpan<char> input, string pattern, RegexOptions options, TimeSpan matchTimeout)
3936
{
4037
var regex = new Regex(pattern, options, matchTimeout);

src/Split/net10.0/StringInterpolation/Polyfill_StringBuilder_Append.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,12 @@ static partial class Polyfill
1010
{
1111
#if FeatureMemory && !NET6_0_OR_GREATER
1212
/// <summary>Appends the specified interpolated string to this instance.</summary>
13-
//Link: https://learn.microsoft.com/en-us/dotnet/api/system.text.stringbuilder.append?view=net-10.0#system-text-stringbuilder-append(system-text-stringbuilder-appendinterpolatedstringhandler@)
1413
public static StringBuilder Append(
1514
StringBuilder target,
1615
[InterpolatedStringHandlerArgument(nameof(target))]
1716
ref AppendInterpolatedStringHandler handler) => target;
1817

1918
/// <summary>Appends the specified interpolated string to this instance.</summary>
20-
//Link: https://learn.microsoft.com/en-us/dotnet/api/system.text.stringbuilder.append?view=net-10.0#system-text-stringbuilder-append(system-iformatprovider-system-text-stringbuilder-appendinterpolatedstringhandler@)
2119
public static StringBuilder Append(
2220
StringBuilder target,
2321
IFormatProvider? provider,

src/Split/net10.0/StringInterpolation/Polyfill_StringBuilder_AppendLine.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,13 @@ static partial class Polyfill
1111
#if FeatureMemory && !NET6_0_OR_GREATER
1212

1313
/// <summary>Appends the specified interpolated string followed by the default line terminator to the end of the current StringBuilder object.</summary>
14-
//Link: https://learn.microsoft.com/en-us/dotnet/api/system.text.stringbuilder.appendline?view=net-10.0#system-text-stringbuilder-appendline(system-text-stringbuilder-appendinterpolatedstringhandler@)
1514
public static StringBuilder AppendLine(
1615
StringBuilder target,
1716
[InterpolatedStringHandlerArgument(nameof(target))]
1817
ref AppendInterpolatedStringHandler handler) =>
1918
target.AppendLine();
2019

2120
/// <summary>Appends the specified interpolated string followed by the default line terminator to the end of the current StringBuilder object.</summary>
22-
//Link: https://learn.microsoft.com/en-us/dotnet/api/system.text.stringbuilder.appendline?view=net-10.0#system-text-stringbuilder-appendline(system-iformatprovider-system-text-stringbuilder-appendinterpolatedstringhandler@)
2321
public static StringBuilder AppendLine(
2422
StringBuilder target,
2523
IFormatProvider? provider,

src/Split/net461/StringInterpolation/Polyfill_StringBuilder_Append.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,12 @@ public static StringBuilder Append(
2727
#elif NET6_0_OR_GREATER
2828

2929
/// <summary>Appends the specified interpolated string to this instance.</summary>
30-
//Link: https://learn.microsoft.com/en-us/dotnet/api/system.text.stringbuilder.append?view=net-10.0#system-text-stringbuilder-append(system-text-stringbuilder-appendinterpolatedstringhandler@)
3130
public static StringBuilder Append(
3231
StringBuilder target,
3332
[InterpolatedStringHandlerArgument(nameof(target))] ref StringBuilder.AppendInterpolatedStringHandler handler) =>
3433
target.Append(ref handler);
3534

3635
/// <summary>Appends the specified interpolated string to this instance.</summary>
37-
//Link: https://learn.microsoft.com/en-us/dotnet/api/system.text.stringbuilder.append?view=net-10.0#system-text-stringbuilder-append(system-iformatprovider-system-text-stringbuilder-appendinterpolatedstringhandler@)
3836
public static StringBuilder Append(
3937
StringBuilder target,
4038
IFormatProvider? provider,

src/Split/net461/StringInterpolation/Polyfill_StringBuilder_AppendLine.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,13 @@ public static StringBuilder AppendLine(
3030
#elif NET6_0_OR_GREATER
3131

3232
/// <summary>Appends the specified interpolated string followed by the default line terminator to the end of the current StringBuilder object.</summary>
33-
//Link: https://learn.microsoft.com/en-us/dotnet/api/system.text.stringbuilder.appendline?view=net-10.0#system-text-stringbuilder-appendline(system-text-stringbuilder-appendinterpolatedstringhandler@)
3433
public static StringBuilder AppendLine(
3534
StringBuilder target,
3635
[InterpolatedStringHandlerArgument(nameof(target))]
3736
ref StringBuilder.AppendInterpolatedStringHandler handler) =>
3837
target.AppendLine(ref handler);
3938

4039
/// <summary>Appends the specified interpolated string followed by the default line terminator to the end of the current StringBuilder object.</summary>
41-
//Link: https://learn.microsoft.com/en-us/dotnet/api/system.text.stringbuilder.appendline?view=net-10.0#system-text-stringbuilder-appendline(system-iformatprovider-system-text-stringbuilder-appendinterpolatedstringhandler@)
4240
public static StringBuilder AppendLine(
4341
StringBuilder target,
4442
IFormatProvider? provider,

src/Split/net462/StringInterpolation/Polyfill_StringBuilder_Append.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,12 @@ public static StringBuilder Append(
2727
#elif NET6_0_OR_GREATER
2828

2929
/// <summary>Appends the specified interpolated string to this instance.</summary>
30-
//Link: https://learn.microsoft.com/en-us/dotnet/api/system.text.stringbuilder.append?view=net-10.0#system-text-stringbuilder-append(system-text-stringbuilder-appendinterpolatedstringhandler@)
3130
public static StringBuilder Append(
3231
StringBuilder target,
3332
[InterpolatedStringHandlerArgument(nameof(target))] ref StringBuilder.AppendInterpolatedStringHandler handler) =>
3433
target.Append(ref handler);
3534

3635
/// <summary>Appends the specified interpolated string to this instance.</summary>
37-
//Link: https://learn.microsoft.com/en-us/dotnet/api/system.text.stringbuilder.append?view=net-10.0#system-text-stringbuilder-append(system-iformatprovider-system-text-stringbuilder-appendinterpolatedstringhandler@)
3836
public static StringBuilder Append(
3937
StringBuilder target,
4038
IFormatProvider? provider,

src/Split/net462/StringInterpolation/Polyfill_StringBuilder_AppendLine.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,13 @@ public static StringBuilder AppendLine(
3030
#elif NET6_0_OR_GREATER
3131

3232
/// <summary>Appends the specified interpolated string followed by the default line terminator to the end of the current StringBuilder object.</summary>
33-
//Link: https://learn.microsoft.com/en-us/dotnet/api/system.text.stringbuilder.appendline?view=net-10.0#system-text-stringbuilder-appendline(system-text-stringbuilder-appendinterpolatedstringhandler@)
3433
public static StringBuilder AppendLine(
3534
StringBuilder target,
3635
[InterpolatedStringHandlerArgument(nameof(target))]
3736
ref StringBuilder.AppendInterpolatedStringHandler handler) =>
3837
target.AppendLine(ref handler);
3938

4039
/// <summary>Appends the specified interpolated string followed by the default line terminator to the end of the current StringBuilder object.</summary>
41-
//Link: https://learn.microsoft.com/en-us/dotnet/api/system.text.stringbuilder.appendline?view=net-10.0#system-text-stringbuilder-appendline(system-iformatprovider-system-text-stringbuilder-appendinterpolatedstringhandler@)
4240
public static StringBuilder AppendLine(
4341
StringBuilder target,
4442
IFormatProvider? provider,

0 commit comments

Comments
 (0)