Skip to content

Commit

Permalink
Correct visibility of RegExpValue.ctor
Browse files Browse the repository at this point in the history
  • Loading branch information
adams85 committed Apr 7, 2024
1 parent aadb6e5 commit eedd2be
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Acornima/RegExpValue.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ public static RegExpValue From(string pattern, string flags)
flags ?? ThrowArgumentNullException<string>(nameof(flags)));
}

public RegExpValue(string pattern, string flags)
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal RegExpValue(string pattern, string flags)
{
_pattern = pattern;
_flags = flags;
Expand Down
1 change: 1 addition & 0 deletions src/Acornima/TemplateValue.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ public static TemplateValue From(string? cooked, string raw)
return new TemplateValue(cooked, raw ?? ThrowArgumentNullException<string>(nameof(raw)));
}

[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal TemplateValue(string? cooked, string raw)
{
Cooked = cooked;
Expand Down

0 comments on commit eedd2be

Please sign in to comment.