Class: GraphQL::Language::Lexer::BadEncoding

Inherits:
GraphQL::Language::Lexer show all
Defined in:
lib/graphql/language/lexer.rb

Overview

:nodoc:

Constant Summary

Constants inherited from GraphQL::Language::Lexer

BLANK, BLOCK_QUOTE, BLOCK_STRING, COMMENT, ESCAPED_QUOTE, ESCAPES, ESCAPES_REPLACE, FLOAT, FLOAT_DECIMAL, FLOAT_EXP, FOUR_DIGIT_UNICODE, IDENTIFIER, INT, LIT, LIT_NAME_LUT, NEWLINE, N_DIGIT_UNICODE, QUOTE, QUOTED_STRING, STRING_CHAR, STRING_ESCAPE, UNICODE_DIGIT, UNICODE_ESCAPE, UNKNOWN_CHAR, UTF_8, VALID_STRING

Constants included from Literals

Literals::AMP, Literals::BANG, Literals::COLON, Literals::DIRECTIVE, Literals::DIR_SIGN, Literals::ELLIPSIS, Literals::ENUM, Literals::EQUALS, Literals::EXTEND, Literals::FALSE, Literals::FRAGMENT, Literals::IMPLEMENTS, Literals::INPUT, Literals::INTERFACE, Literals::LBRACKET, Literals::LCURLY, Literals::LPAREN, Literals::MUTATION, Literals::NULL, Literals::ON, Literals::PIPE, Literals::QUERY, Literals::RBRACKET, Literals::RCURLY, Literals::REPEATABLE, Literals::RPAREN, Literals::SCALAR, Literals::SCHEMA, Literals::SUBSCRIPTION, Literals::TRUE, Literals::TYPE, Literals::UNION, Literals::VAR_SIGN

Instance Method Summary collapse

Methods inherited from GraphQL::Language::Lexer

#emit, #emit_block, #emit_string, #initialize, #record_comment, replace_escaped_characters_in_place, tokenize

Constructor Details

This class inherits a constructor from GraphQL::Language::Lexer

Instance Method Details

#next_tokenObject



103
104
105
# File 'lib/graphql/language/lexer.rb', line 103

def next_token
  @scan.pop
end

#scanner(value) ⇒ Object



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

def scanner(value)
  [emit(:BAD_UNICODE_ESCAPE, 0, 0, value)]
end