-
Notifications
You must be signed in to change notification settings - Fork 43
Fix comment parsing with unattached comments #104
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
Conversation
@@ -82,6 +82,7 @@ namespace GraphQLParser.AST | |||
public GraphQLDocument() { } | |||
public System.Collections.Generic.List<GraphQLParser.AST.ASTNode>? Definitions { get; set; } | |||
public override GraphQLParser.AST.ASTNodeKind Kind { get; } | |||
public System.Collections.Generic.List<GraphQLParser.AST.GraphQLComment>? UnattachedComments { get; set; } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Shane32 Thanks. I am now looking at this simple and obvious solution and do not understand why I decided to throw an exception before.
I posted #106 to prevent unexpected changes. |
I don't understand what happened to the formatting. Apparently, now it is correct. Anyway, looks good. |
Fixes #80
Note: these two documents parse the same, with the comment applied to
obj2
and