regex ir opt is almost done

This commit is contained in:
Youmu Liu
2026-06-30 20:14:30 +08:00
parent e60eb0ada6
commit 1cd0257c93
12 changed files with 552 additions and 377 deletions
+3 -5
View File
@@ -312,16 +312,14 @@ namespace StgSharp.RegularAnalysis.Text
}
internal sealed class RegexMatchComplexIR(
internal sealed class RegexTryIR(
int count
) : RegexIR, IRegexComplex
{
public bool IsFullyOptimized { get; set; }
public int CountOfCommand { get; } = count;
public int CommandCount { get; set; }
public int CommandCount { get; set; } = count;
internal override RegexIRCommand Command => RegexIRCommand.Try;
@@ -329,7 +327,7 @@ namespace StgSharp.RegularAnalysis.Text
int lineNum
)
{
return $"[{lineNum}]\t TRY {CountOfCommand}";
return $"[{lineNum}]\t TRY {CommandCount}";
}
}