Lexer { public static List<Token> tokenize(final String input) { return tokenize(input, GQLSourceInput.emptySource()); } Lexer(final String doc, final GQLSourceInput source); Token peek(); boolean isReadable(); Token next(); boolean hasToken(); static List<Token> tokenize(final String input); static List<Token> tokenize(final String input, final GQLSourceInput source); String input(); ImmutableLineInfo lineNumberAtOffset(final int start); GQLSourceLocation position(); GQLSourceRange range(final GQLSourceLocation start, final GQLSourceLocation end);  }
@Test public void testSingleQuoteString() { Lexer.tokenize("query A { __typename, pbx(domain: 'test') { id } }"); }
@Test public void testLex() { Lexer.tokenize("fragment A on Moo {}"); }
@Test public void testNumbers() { Lexer.tokenize("-1"); }
@Test public void testNumbers2() { Lexer.tokenize("1.3344 moo"); }
@Test public void testNumbers3() { Lexer.tokenize(" query myquery ($condition: Boolean = 1234) {} "); }