SortCodeMethods
DeleteEmptyDirectories Remove deprecated tasks Current Results Move to 1 or 9 ...
This commit is contained in:
@ -1,7 +1,5 @@
|
||||
using Microsoft.Extensions.Logging;
|
||||
using System.Collections.ObjectModel;
|
||||
using System.Text.Json;
|
||||
using System.Text.Json.Serialization;
|
||||
using System.Text.RegularExpressions;
|
||||
|
||||
namespace File_Folder_Helper.ADO2024.PI1;
|
||||
@ -16,12 +14,6 @@ internal static partial class Helper20240108
|
||||
int ParameterCount,
|
||||
int StartLine);
|
||||
|
||||
[JsonSourceGenerationOptions(WriteIndented = true)]
|
||||
[JsonSerializable(typeof(Method[]))]
|
||||
private partial class MethodCollectionCommonSourceGenerationContext : JsonSerializerContext
|
||||
{
|
||||
}
|
||||
|
||||
[GeneratedRegex(@"(?<method>[A-Z]{1}[A-Za-z_0-9]*)\(")]
|
||||
private static partial Regex CSharpMethodName();
|
||||
|
||||
@ -248,8 +240,6 @@ internal static partial class Helper20240108
|
||||
{
|
||||
bool result;
|
||||
List<string> results = [];
|
||||
if (methods.Count == 0)
|
||||
File.WriteAllText(".vscode/.json", JsonSerializer.Serialize(methods.ToArray(), MethodCollectionCommonSourceGenerationContext.Default.MethodArray));
|
||||
ReadOnlyCollection<int> methodLines = GetMethodLines(methods);
|
||||
int minMethodLines = methodLines.Min();
|
||||
for (int i = 0; i < minMethodLines; i++)
|
||||
|
Reference in New Issue
Block a user