-
-
Notifications
You must be signed in to change notification settings - Fork 749
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
983a0a2
commit 01e0659
Showing
23 changed files
with
1,007 additions
and
933 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
src/HotChocolate/Core/src/Abstractions/MutationFieldAttribute.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
using System; | ||
|
||
namespace HotChocolate; | ||
|
||
[AttributeUsage(AttributeTargets.Method | AttributeTargets.Property)] | ||
public sealed class MutationFieldAttribute : Attribute; |
6 changes: 6 additions & 0 deletions
6
src/HotChocolate/Core/src/Abstractions/QueryFieldAttribute.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
using System; | ||
|
||
namespace HotChocolate; | ||
|
||
[AttributeUsage(AttributeTargets.Method | AttributeTargets.Property)] | ||
public sealed class QueryFieldAttribute : Attribute; |
6 changes: 6 additions & 0 deletions
6
src/HotChocolate/Core/src/Abstractions/SubscriptionFieldAttribute.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
using System; | ||
|
||
namespace HotChocolate; | ||
|
||
[AttributeUsage(AttributeTargets.Method | AttributeTargets.Property)] | ||
public sealed class SubscriptionFieldAttribute : Attribute; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
using HotChocolate.Types.Analyzers.Properties; | ||
using Microsoft.CodeAnalysis; | ||
|
||
namespace HotChocolate.Types.Analyzers; | ||
|
||
public static class Errors | ||
{ | ||
public static readonly DiagnosticDescriptor KeyParameterMissing = | ||
new( | ||
id: "HC0074", | ||
title: "Parameter Missing.", | ||
messageFormat: | ||
SourceGenResources.DataLoader_KeyParameterMissing, | ||
category: "DataLoader", | ||
DiagnosticSeverity.Error, | ||
isEnabledByDefault: true); | ||
|
||
public static readonly DiagnosticDescriptor MethodAccessModifierInvalid = | ||
new( | ||
id: "HC0075", | ||
title: "Access Modifier Invalid.", | ||
messageFormat: | ||
SourceGenResources.DataLoader_InvalidAccessModifier, | ||
category: "DataLoader", | ||
DiagnosticSeverity.Error, | ||
isEnabledByDefault: true); | ||
} |
Oops, something went wrong.