Method: Atatus::Sql::Tokenizer#scan

Defined in:
lib/atatus/sql/tokenizer.rb

#scanObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



46
47
48
49
50
51
52
53
54
55
56
57
# File 'lib/atatus/sql/tokenizer.rb', line 46

def scan
  scanner.skip(SPACE)

  @byte_start = scanner.pos
  char = next_char

  return false unless char

  @token = next_token(char)

  true
end