Skip to content
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

Set DirectiveDefinitionNode.children_method_name #4931

Merged
merged 1 commit into from Apr 23, 2024

Conversation

thomasmarshall
Copy link
Contributor

Fixes #4928.

This commit sets DirectiveDefinitionNode.children_method_name to :definitions. It previously defaulted to :directive_definitions, causing a NoMethodError when attempting to delete the node from the AST.

I wasn't sure how best to test this, so I added some directive definitions to the SDL test case in the visitor spec. Let me know if there's a more suitable way.

This commit sets `DirectiveDefinitionNode.children_method_name` to
`:definitions`. It previously defaulted to `:directive_definitions`,
causing a `NoMethodError` when attempting to delete the node from the
AST.
@rmosolgo rmosolgo added this to the 2.3.2 milestone Apr 23, 2024
@rmosolgo
Copy link
Owner

Thanks for this fix!

@rmosolgo rmosolgo merged commit 0799211 into rmosolgo:master Apr 23, 2024
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unable to delete directive definition nodes using visitor
2 participants