lib/graphql/language/parser.y in graphql-2.0.19 vs lib/graphql/language/parser.y in graphql-2.0.20
- old
+ new
@@ -458,10 +458,10 @@
def parse_document
@document ||= begin
# Break the string into tokens
@trace.lex(query_string: @query_string) do
- @tokens ||= GraphQL.scan(@query_string)
+ @tokens ||= GraphQL::Language::Lexer.tokenize(@query_string)
end
# From the tokens, build an AST
@trace.parse(query_string: @query_string) do
if @tokens.empty?
raise GraphQL::ParseError.new("Unexpected end of document", nil, nil, @query_string)