Class: GraphQL::Language::Parser

Inherits:
Racc::Parser
  • Object
show all
Defined in:
lib/graphql/language/parser.rb

Constant Summary collapse

Racc_arg =
[
racc_action_table,
racc_action_check,
racc_action_default,
racc_action_pointer,
racc_goto_table,
racc_goto_check,
racc_goto_default,
racc_goto_pointer,
racc_nt_base,
racc_reduce_table,
racc_token_table,
racc_shift_n,
racc_reduce_n,
racc_use_result_var ]
Racc_token_to_s_table =
[
"$end",
"error",
"LCURLY",
"RCURLY",
"QUERY",
"MUTATION",
"SUBSCRIPTION",
"LPAREN",
"RPAREN",
"VAR_SIGN",
"COLON",
"BANG",
"LBRACKET",
"RBRACKET",
"EQUALS",
"ON",
"SCHEMA",
"SCALAR",
"TYPE",
"IMPLEMENTS",
"INTERFACE",
"UNION",
"ENUM",
"INPUT",
"DIRECTIVE",
"IDENTIFIER",
"FRAGMENT",
"TRUE",
"FALSE",
"FLOAT",
"INT",
"STRING",
"NULL",
"DIR_SIGN",
"ELLIPSIS",
"PIPE",
"$start",
"target",
"document",
"definitions_list",
"definition",
"operation_definition",
"fragment_definition",
"type_system_definition",
"operation_type",
"operation_name_opt",
"variable_definitions_opt",
"directives_list_opt",
"selection_set",
"selection_list",
"name",
"variable_definitions_list",
"variable_definition",
"type",
"default_value_opt",
"input_value",
"selection_set_opt",
"selection",
"field",
"fragment_spread",
"inline_fragment",
"arguments_opt",
"name_without_on",
"schema_keyword",
"enum_name",
"name_list",
"enum_value_definition",
"enum_value_definitions",
"arguments_list",
"argument",
"null_value",
"variable",
"list_value",
"object_value",
"enum_value",
"list_value_list",
"object_value_list",
"object_value_field",
"directives_list",
"directive",
"fragment_name_opt",
"schema_definition",
"type_definition",
"directive_definition",
"operation_type_definition_list",
"operation_type_definition",
"scalar_type_definition",
"object_type_definition",
"interface_type_definition",
"union_type_definition",
"enum_type_definition",
"input_object_type_definition",
"implements_opt",
"field_definition_list",
"input_value_definition",
"input_value_definition_list",
"arguments_definitions_opt",
"field_definition",
"union_members",
"directive_locations" ]
Racc_debug_parser =
false

Instance Method Summary collapse

Instance Method Details

#_reduce_none(val, _values, result) ⇒ Object



1583
1584
1585
# File 'lib/graphql/language/parser.rb', line 1583

def _reduce_none(val, _values, result)
  val[0]
end