regex ir opt is almost done
This commit is contained in:
@@ -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}";
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user