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.



27
28
29
# File 'lib/graphql/language/lexer.rb', line 27

def _graphql_lexer_char_class
  @_graphql_lexer_char_class
end

._graphql_lexer_cond_actionsObject

Returns the value of attribute _graphql_lexer_cond_actions.



75
76
77
# File 'lib/graphql/language/lexer.rb', line 75

def _graphql_lexer_cond_actions
  @_graphql_lexer_cond_actions
end

._graphql_lexer_cond_targsObject

Returns the value of attribute _graphql_lexer_cond_targs.



67
68
69
# File 'lib/graphql/language/lexer.rb', line 67

def _graphql_lexer_cond_targs
  @_graphql_lexer_cond_targs
end

._graphql_lexer_eof_transObject

Returns the value of attribute _graphql_lexer_eof_trans.



99
100
101
# File 'lib/graphql/language/lexer.rb', line 99

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.



91
92
93
# File 'lib/graphql/language/lexer.rb', line 91

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.



51
52
53
# File 'lib/graphql/language/lexer.rb', line 51

def _graphql_lexer_index_defaults
  @_graphql_lexer_index_defaults
end

._graphql_lexer_index_offsetsObject

Returns the value of attribute _graphql_lexer_index_offsets.



35
36
37
# File 'lib/graphql/language/lexer.rb', line 35

def _graphql_lexer_index_offsets
  @_graphql_lexer_index_offsets
end

._graphql_lexer_indiciesObject

Returns the value of attribute _graphql_lexer_indicies.



43
44
45
# File 'lib/graphql/language/lexer.rb', line 43

def _graphql_lexer_indicies
  @_graphql_lexer_indicies
end

._graphql_lexer_nfa_offsetsObject

Returns the value of attribute _graphql_lexer_nfa_offsets.



115
116
117
# File 'lib/graphql/language/lexer.rb', line 115

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.



131
132
133
# File 'lib/graphql/language/lexer.rb', line 131

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.



123
124
125
# File 'lib/graphql/language/lexer.rb', line 123

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.



107
108
109
# File 'lib/graphql/language/lexer.rb', line 107

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.



83
84
85
# File 'lib/graphql/language/lexer.rb', line 83

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.



59
60
61
# File 'lib/graphql/language/lexer.rb', line 59

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.



19
20
21
# File 'lib/graphql/language/lexer.rb', line 19

def _graphql_lexer_trans_keys
  @_graphql_lexer_trans_keys
end

.graphql_lexer_en_mainObject

Returns the value of attribute graphql_lexer_en_main.



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

def graphql_lexer_en_main
  @graphql_lexer_en_main
end

.graphql_lexer_errorObject

Returns the value of attribute graphql_lexer_error.



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

def graphql_lexer_error
  @graphql_lexer_error
end

.graphql_lexer_first_finalObject

Returns the value of attribute graphql_lexer_first_final.



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

def graphql_lexer_first_final
  @graphql_lexer_first_final
end

.graphql_lexer_startObject

Returns the value of attribute graphql_lexer_start.



139
140
141
# File 'lib/graphql/language/lexer.rb', line 139

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



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

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



4
5
6
# File 'lib/graphql/language/lexer.rb', line 4

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