=== Summary: 675 files | 7 generated | 484 fresh | 4605 untracked | 4268 adopted | 355 marked | 466 validated-ok | 2+0 stale (sig+body) | 0 skipped | 0 failed | elapsed 11:08:11.442 (40091.44s) ===
This commit is contained in:
@@ -6,6 +6,7 @@ namespace adas_core.Domain.Models;
|
||||
/// <summary>
|
||||
/// Represents a code action that encapsulates an operation or transformation to be performed on code.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=09c8387 -->
|
||||
public class CodeAction
|
||||
{
|
||||
public ActionsEnum.ResourceAction Action { get; set; }
|
||||
@@ -16,6 +17,7 @@ public class CodeAction
|
||||
/// </summary>
|
||||
/// <param name="actions">The list of code actions to apply.</param>
|
||||
/// <returns>A <see cref="List{Code}"/> with the applied changes, or <c>null</c> if no codes are produced.</returns>
|
||||
/// <!-- aidoc:v1 sig=08fa405 body=22d71fc -->
|
||||
public static List<Code>? Apply(List<CodeAction> actions)
|
||||
{
|
||||
return Apply(null, actions);
|
||||
@@ -28,6 +30,7 @@ public class CodeAction
|
||||
/// <param name="source">The list of codes to modify. If null, an empty list is used as the starting point.</param>
|
||||
/// <param name="actions">The list of code actions to apply. If null, the source list is returned unchanged.</param>
|
||||
/// <returns>The modified list of codes, or null if the list is empty after applying the actions.</returns>
|
||||
/// <!-- aidoc:v1 sig=409f9ba body=f7391f6 -->
|
||||
public static List<Code>? Apply(List<Code>? source, List<CodeAction>? actions)
|
||||
{
|
||||
source ??= [];
|
||||
|
||||
Reference in New Issue
Block a user