Module: GraphQL::StaticValidation::DirectivesAreInValidLocations
- Includes:
- Language
- Defined in:
- lib/graphql/static_validation/rules/directives_are_in_valid_locations.rb
Overview
-- @requires_ancestor: GraphQL::StaticValidation::BaseVisitor
Constant Summary
Constants included from Language
Language::EFFICIENT_IGNORE_REGEXP, Language::EFFICIENT_NUMBER_REGEXP, Language::INVALID_NUMBER_FOLLOWED_BY_NAME_REGEXP, Language::LEADING_REGEX, Language::MAYBE_INVALID_NUMBER
Instance Method Summary collapse
-
#on_directive(node, parent) ⇒ Object
: (GraphQL::Language::Nodes::Directive node, GraphQL::Language::Nodes::AbstractNode parent) -> void.
Methods included from Language
add_space_between_numbers_and_names, escape_single_quoted_newlines, serialize
Instance Method Details
#on_directive(node, parent) ⇒ Object
: (GraphQL::Language::Nodes::Directive node, GraphQL::Language::Nodes::AbstractNode parent) -> void
12 13 14 15 |
# File 'lib/graphql/static_validation/rules/directives_are_in_valid_locations.rb', line 12 def on_directive(node, parent) validate_location(node, parent, context.schema_directives) super end |