nitc :: PrettyPrinterVisitor :: skip_to
current_token
until target
is reached.
# Skip `current_token` until `target` is reached.
fun skip_to(target: nullable Token) do
if target == null then return
while current_token != null and current_token != target do skip
if current_token == null then
target.debug("Looked for, but not found :(")
abort
end
end
src/pretty.nit:159,2--167,4