class GraphQL::Language::WrapperType

Overview

Base class for non-null type names and list type names

Direct Known Subclasses

Defined in:

graphql/language/nodes.cr

Constant Summary

VALUES = [{of_type, (Type)}] of Tuple(Symbol, Object.class)

Base class for non-null type names and list type names

VISITS = [{:children, [:of_type]}] of Tuple(Symbol, Array(Symbol))

Base class for non-null type names and list type names

Constructors

Class Method Summary

Macro Summary

Instance Method Summary

Instance methods inherited from class GraphQL::Language::ASTNode

==(other) ==, clone clone, values values

Class methods inherited from class GraphQL::Language::ASTNode

values values

Macros inherited from class GraphQL::Language::ASTNode

accessors(name, type, default) accessors, make_value_methods make_value_methods, traverse(name, *values) traverse, values(args) values

Constructor Detail

def self.new(of_type, **rest) #

Base class for non-null type names and list type names


Class Method Detail

def self.values #

Base class for non-null type names and list type names


Macro Detail

macro accessors(name, type, default) #

Base class for non-null type names and list type names


macro traverse(name, *values) #

Base class for non-null type names and list type names


macro values(args) #

Base class for non-null type names and list type names


Instance Method Detail

Base class for non-null type names and list type names


def clone #

Returns a copy of self with all instance variables cloned.


def map_children(&block : ASTNode -> _) #

Base class for non-null type names and list type names


def of_type : Type #

def of_type=(of_type : Type) #

def values #

Base class for non-null type names and list type names


def visit(name, visited_ids = [] of UInt64, block = Proc(ASTNode, ASTNode | ::Nil).new do end) #

Recursively apply the given block to each node that gets visited with the given key which nodes get traverses for a given key can be set on a class via the: traverse :name, :child_1, :child2 macro. If no children are defined for a given traversal path name the block is invoked only with self.ode that gets visited with the given key which nodes get traverses for a given key can be set on a class via the: traverse :name, :child_1, :child2 macro. If no children are defined for a given traversal path name the block is invoked only with self.