Skip to content

Commit 4bf9b89

Browse files
committed
#139 - property
1 parent 95a3073 commit 4bf9b89

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/Domain/HydraScript.Domain.FrontEnd/Lexer/IGeneratedRegexContainer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ namespace HydraScript.Domain.FrontEnd.Lexer;
44

55
public interface IGeneratedRegexContainer
66
{
7-
public static abstract Regex GetRegex();
7+
public static abstract Regex Regex { get; }
88
}

src/Domain/HydraScript.Domain.FrontEnd/Lexer/Impl/Structure.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public class Structure<TContainer>(ITokenTypesProvider provider) : IStructure
1414
.Concat([new EndOfProgramType(), new ErrorType()])
1515
.ToFrozenDictionary(x => x.Tag);
1616

17-
public Regex Regex { get; } = TContainer.GetRegex();
17+
public Regex Regex { get; } = TContainer.Regex;
1818

1919
public TokenType FindByTag(string tag) =>
2020
Types[tag];

src/Infrastructure/HydraScript.Infrastructure/GeneratedRegexContainer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ namespace HydraScript.Infrastructure;
66
internal partial class GeneratedRegexContainer : IGeneratedRegexContainer
77
{
88
[GeneratedRegex(PatternContainer.Value)]
9-
public static partial Regex GetRegex();
9+
public static partial Regex Regex { get; }
1010
}

0 commit comments

Comments
 (0)