Skip to content

Commit 6c69032

Browse files
authored
Mark directive types as static when necessary (dotnet#33481)
1 parent a38936f commit 6c69032

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/Razor/Microsoft.AspNetCore.Razor.Language/src/Components/ComponentConstrainedTypeParamDirective.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
namespace Microsoft.AspNetCore.Razor.Language.Components
77
{
8-
internal class ComponentConstrainedTypeParamDirective
8+
internal static class ComponentConstrainedTypeParamDirective
99
{
1010
public static DirectiveDescriptor Directive = DirectiveDescriptor.CreateDirective(
1111
"typeparam",

src/Razor/Microsoft.AspNetCore.Razor.Language/src/Components/ComponentInjectDirective.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ namespace Microsoft.AspNetCore.Razor.Language.Components
99
// but this one outputs properties annotated for Components's property injector, plus it doesn't need to
1010
// support multiple CodeTargets.
1111

12-
internal class ComponentInjectDirective
12+
internal static class ComponentInjectDirective
1313
{
1414
public static readonly DirectiveDescriptor Directive = DirectiveDescriptor.CreateDirective(
1515
"inject",

src/Razor/Microsoft.AspNetCore.Razor.Language/src/Components/ComponentTypeParamDirective.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
namespace Microsoft.AspNetCore.Razor.Language.Components
77
{
8-
internal class ComponentTypeParamDirective
8+
internal static class ComponentTypeParamDirective
99
{
1010
public static DirectiveDescriptor Directive = DirectiveDescriptor.CreateDirective(
1111
"typeparam",

0 commit comments

Comments
 (0)