Skip to content

Commit eedd2be

Browse files
committed
Correct visibility of RegExpValue.ctor
1 parent aadb6e5 commit eedd2be

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/Acornima/RegExpValue.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ public static RegExpValue From(string pattern, string flags)
1414
flags ?? ThrowArgumentNullException<string>(nameof(flags)));
1515
}
1616

17-
public RegExpValue(string pattern, string flags)
17+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
18+
internal RegExpValue(string pattern, string flags)
1819
{
1920
_pattern = pattern;
2021
_flags = flags;

src/Acornima/TemplateValue.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ public static TemplateValue From(string? cooked, string raw)
1212
return new TemplateValue(cooked, raw ?? ThrowArgumentNullException<string>(nameof(raw)));
1313
}
1414

15+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
1516
internal TemplateValue(string? cooked, string raw)
1617
{
1718
Cooked = cooked;

0 commit comments

Comments
 (0)