-
Notifications
You must be signed in to change notification settings - Fork 43
Add xml docs #108
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Add xml docs #108
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
---|---|---|
@@ -1,11 +1,23 @@ | ||
namespace GraphQLParser.AST | ||
namespace GraphQLParser.AST | ||
{ | ||
/// <summary> | ||
/// Represents a single node in the GraphQL document AST (Abstract Syntax Tree). | ||
/// </summary> | ||
public abstract class ASTNode | ||
{ | ||
/// <summary> | ||
/// Kind of this node. | ||
/// </summary> | ||
public abstract ASTNodeKind Kind { get; } | ||
|
||
/// <summary> | ||
/// Location of a node within a document's original text. | ||
/// </summary> | ||
public GraphQLLocation Location { get; set; } | ||
|
||
/// <summary> | ||
/// Comments for this node if any. | ||
/// </summary> | ||
public GraphQLComment? Comment { get; set; } | ||
} | ||
} | ||
} |
This file contains hidden or 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,77 @@ | ||
namespace GraphQLParser.AST | ||
{ | ||
/// <summary> | ||
/// The kind of nodes in the GraphQL document AST (Abstract Syntax Tree). | ||
/// </summary> | ||
public enum ASTNodeKind | ||
{ | ||
/// <summary> | ||
/// Named thing inside GraphQL document: operations, fields, arguments, types, directives, fragments, and variables. | ||
/// <br/> | ||
/// All names must follow the same grammatical form: [_A-Za-z][_0-9A-Za-z]* | ||
/// </summary> | ||
Name, | ||
Document, | ||
OperationDefinition, | ||
VariableDefinition, | ||
Variable, | ||
SelectionSet, | ||
Field, | ||
Argument, | ||
FragmentSpread, | ||
InlineFragment, | ||
FragmentDefinition, | ||
|
||
/// <summary> | ||
/// An integer number is specified without a decimal point or exponent (ex. 1). | ||
/// </summary> | ||
IntValue, | ||
|
||
/// <summary> | ||
/// A Float number includes either a decimal point (ex. 1.0) or an exponent (ex. 1e50) or both (ex. 6.0221413e23). | ||
/// </summary> | ||
FloatValue, | ||
|
||
/// <summary> | ||
/// Strings are sequences of characters wrapped in double‐quotes ("). (ex. "Hello World"). | ||
/// White space and other otherwise‐ignored characters are significant within a string value. | ||
/// </summary> | ||
StringValue, | ||
|
||
/// <summary> | ||
/// Boolean value. The two keywords true and false represent the two boolean values. | ||
/// </summary> | ||
BooleanValue, | ||
EnumValue, | ||
ListValue, | ||
ObjectValue, | ||
ObjectField, | ||
Directive, | ||
NamedType, | ||
ListType, | ||
NonNullType, | ||
NullValue, | ||
SchemaDefinition, | ||
OperationTypeDefinition, | ||
ScalarTypeDefinition, | ||
ObjectTypeDefinition, | ||
FieldDefinition, | ||
InputValueDefinition, | ||
InterfaceTypeDefinition, | ||
UnionTypeDefinition, | ||
EnumTypeDefinition, | ||
EnumValueDefinition, | ||
InputObjectTypeDefinition, | ||
TypeExtensionDefinition, | ||
DirectiveDefinition, | ||
|
||
/// <summary> | ||
/// GraphQL source documents may contain single‐line comments, starting with the # marker. | ||
/// A comment can contain any Unicode code point except LineTerminator so a comment always | ||
/// consists of all code points starting with the # character up to but not including the line terminator. | ||
/// Comments behave like white space and may appear after any token, or before a line terminator, | ||
/// and have no significance to the semantic meaning of a GraphQL Document. | ||
/// </summary> | ||
Comment, | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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 |
---|---|---|
@@ -1,11 +1,12 @@ | ||
namespace GraphQLParser.AST | ||
namespace GraphQLParser.AST | ||
{ | ||
public class GraphQLArgument : ASTNode, INamedNode | ||
{ | ||
/// <inheritdoc/> | ||
public override ASTNodeKind Kind => ASTNodeKind.Argument; | ||
|
||
public GraphQLName? Name { get; set; } | ||
|
||
public GraphQLValue? Value { get; set; } | ||
} | ||
} | ||
} |
This file contains hidden or 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
This file contains hidden or 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 |
---|---|---|
@@ -1,13 +1,14 @@ | ||
using System.Collections.Generic; | ||
using System.Collections.Generic; | ||
|
||
namespace GraphQLParser.AST | ||
{ | ||
public class GraphQLDirective : ASTNode, INamedNode | ||
{ | ||
public List<GraphQLArgument>? Arguments { get; set; } | ||
|
||
/// <inheritdoc/> | ||
public override ASTNodeKind Kind => ASTNodeKind.Directive; | ||
|
||
public GraphQLName? Name { get; set; } | ||
} | ||
} | ||
} |
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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 |
---|---|---|
@@ -1,13 +1,14 @@ | ||
using System.Collections.Generic; | ||
using System.Collections.Generic; | ||
|
||
namespace GraphQLParser.AST | ||
{ | ||
public class GraphQLEnumTypeDefinition : GraphQLTypeDefinition, IHasDirectivesNode | ||
{ | ||
public List<GraphQLDirective>? Directives { get; set; } | ||
|
||
/// <inheritdoc/> | ||
public override ASTNodeKind Kind => ASTNodeKind.EnumTypeDefinition; | ||
|
||
public List<GraphQLEnumValueDefinition>? Values { get; set; } | ||
} | ||
} | ||
} |
This file contains hidden or 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 |
---|---|---|
@@ -1,11 +1,12 @@ | ||
using System.Collections.Generic; | ||
using System.Collections.Generic; | ||
|
||
namespace GraphQLParser.AST | ||
{ | ||
public class GraphQLEnumValueDefinition : GraphQLTypeDefinition, IHasDirectivesNode | ||
{ | ||
public List<GraphQLDirective>? Directives { get; set; } | ||
|
||
/// <inheritdoc/> | ||
public override ASTNodeKind Kind => ASTNodeKind.EnumValueDefinition; | ||
} | ||
} | ||
} |
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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 |
---|---|---|
@@ -1,9 +1,10 @@ | ||
namespace GraphQLParser.AST | ||
namespace GraphQLParser.AST | ||
{ | ||
public class GraphQLFragmentDefinition : GraphQLInlineFragment, INamedNode | ||
{ | ||
/// <inheritdoc/> | ||
public override ASTNodeKind Kind => ASTNodeKind.FragmentDefinition; | ||
|
||
public GraphQLName? Name { get; set; } | ||
} | ||
} | ||
} |
This file contains hidden or 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 |
---|---|---|
@@ -1,13 +1,14 @@ | ||
using System.Collections.Generic; | ||
using System.Collections.Generic; | ||
|
||
namespace GraphQLParser.AST | ||
{ | ||
public class GraphQLFragmentSpread : ASTNode, IHasDirectivesNode, INamedNode | ||
{ | ||
public List<GraphQLDirective>? Directives { get; set; } | ||
|
||
/// <inheritdoc/> | ||
public override ASTNodeKind Kind => ASTNodeKind.FragmentSpread; | ||
|
||
public GraphQLName? Name { get; set; } | ||
} | ||
} | ||
} |
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.