Module: GraphQL::Language::Lexer

Defined in:
lib/graphql/language/lexer.rb

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

._graphql_lexer_char_classObject

Returns the value of attribute _graphql_lexer_char_class.



33
34
35
# File 'lib/graphql/language/lexer.rb', line 33

def _graphql_lexer_char_class
  @_graphql_lexer_char_class
end

._graphql_lexer_cond_actionsObject

Returns the value of attribute _graphql_lexer_cond_actions.



81
82
83
# File 'lib/graphql/language/lexer.rb', line 81

def _graphql_lexer_cond_actions
  @_graphql_lexer_cond_actions
end

._graphql_lexer_cond_targsObject

Returns the value of attribute _graphql_lexer_cond_targs.



73
74
75
# File 'lib/graphql/language/lexer.rb', line 73

def _graphql_lexer_cond_targs
  @_graphql_lexer_cond_targs
end

._graphql_lexer_eof_transObject

Returns the value of attribute _graphql_lexer_eof_trans.



105
106
107
# File 'lib/graphql/language/lexer.rb', line 105

def _graphql_lexer_eof_trans
  @_graphql_lexer_eof_trans
end

._graphql_lexer_from_state_actionsObject

Returns the value of attribute _graphql_lexer_from_state_actions.



97
98
99
# File 'lib/graphql/language/lexer.rb', line 97

def _graphql_lexer_from_state_actions
  @_graphql_lexer_from_state_actions
end

._graphql_lexer_index_defaultsObject

Returns the value of attribute _graphql_lexer_index_defaults.



57
58
59
# File 'lib/graphql/language/lexer.rb', line 57

def _graphql_lexer_index_defaults
  @_graphql_lexer_index_defaults
end

._graphql_lexer_index_offsetsObject

Returns the value of attribute _graphql_lexer_index_offsets.



41
42
43
# File 'lib/graphql/language/lexer.rb', line 41

def _graphql_lexer_index_offsets
  @_graphql_lexer_index_offsets
end

._graphql_lexer_indiciesObject

Returns the value of attribute _graphql_lexer_indicies.



49
50
51
# File 'lib/graphql/language/lexer.rb', line 49

def _graphql_lexer_indicies
  @_graphql_lexer_indicies
end

._graphql_lexer_nfa_offsetsObject

Returns the value of attribute _graphql_lexer_nfa_offsets.



121
122
123
# File 'lib/graphql/language/lexer.rb', line 121

def _graphql_lexer_nfa_offsets
  @_graphql_lexer_nfa_offsets
end

._graphql_lexer_nfa_pop_transObject

Returns the value of attribute _graphql_lexer_nfa_pop_trans.



137
138
139
# File 'lib/graphql/language/lexer.rb', line 137

def _graphql_lexer_nfa_pop_trans
  @_graphql_lexer_nfa_pop_trans
end

._graphql_lexer_nfa_push_actionsObject

Returns the value of attribute _graphql_lexer_nfa_push_actions.



129
130
131
# File 'lib/graphql/language/lexer.rb', line 129

def _graphql_lexer_nfa_push_actions
  @_graphql_lexer_nfa_push_actions
end

._graphql_lexer_nfa_targsObject

Returns the value of attribute _graphql_lexer_nfa_targs.



113
114
115
# File 'lib/graphql/language/lexer.rb', line 113

def _graphql_lexer_nfa_targs
  @_graphql_lexer_nfa_targs
end

._graphql_lexer_to_state_actionsObject

Returns the value of attribute _graphql_lexer_to_state_actions.



89
90
91
# File 'lib/graphql/language/lexer.rb', line 89

def _graphql_lexer_to_state_actions
  @_graphql_lexer_to_state_actions
end

._graphql_lexer_trans_cond_spacesObject

Returns the value of attribute _graphql_lexer_trans_cond_spaces.



65
66
67
# File 'lib/graphql/language/lexer.rb', line 65

def _graphql_lexer_trans_cond_spaces
  @_graphql_lexer_trans_cond_spaces
end

._graphql_lexer_trans_keysObject

Returns the value of attribute _graphql_lexer_trans_keys.



25
26
27
# File 'lib/graphql/language/lexer.rb', line 25

def _graphql_lexer_trans_keys
  @_graphql_lexer_trans_keys
end

.graphql_lexer_en_mainObject

Returns the value of attribute graphql_lexer_en_main.



165
166
167
# File 'lib/graphql/language/lexer.rb', line 165

def graphql_lexer_en_main
  @graphql_lexer_en_main
end

.graphql_lexer_en_strObject

Returns the value of attribute graphql_lexer_en_str.



160
161
162
# File 'lib/graphql/language/lexer.rb', line 160

def graphql_lexer_en_str
  @graphql_lexer_en_str
end

.graphql_lexer_errorObject

Returns the value of attribute graphql_lexer_error.



155
156
157
# File 'lib/graphql/language/lexer.rb', line 155

def graphql_lexer_error
  @graphql_lexer_error
end

.graphql_lexer_first_finalObject

Returns the value of attribute graphql_lexer_first_final.



150
151
152
# File 'lib/graphql/language/lexer.rb', line 150

def graphql_lexer_first_final
  @graphql_lexer_first_final
end

.graphql_lexer_startObject

Returns the value of attribute graphql_lexer_start.



145
146
147
# File 'lib/graphql/language/lexer.rb', line 145

def graphql_lexer_start
  @graphql_lexer_start
end

Class Method Details

.replace_escaped_characters_in_place(raw_string) ⇒ Object

Replace any escaped unicode or whitespace with the actual characters To avoid allocating more strings, this modifies the string passed into it



16
17
18
19
20
# File 'lib/graphql/language/lexer.rb', line 16

def self.replace_escaped_characters_in_place(raw_string)
	raw_string.gsub!(ESCAPES, ESCAPES_REPLACE)
	raw_string.gsub!(UTF_8, &UTF_8_REPLACE)
	nil
end

.tokenize(query_string) ⇒ Object



10
11
12
# File 'lib/graphql/language/lexer.rb', line 10

def self.tokenize(query_string)
	run_lexer(query_string)
end