Lines Matching refs:end

133         end, lit = Lexer.lex_string('`a`', 0)
134 self.assertEqual(end, 3)
137 end, lit = Lexer.lex_string('`a\nb`', 0)
138 self.assertEqual(end, 5)
141 end, lit = Lexer.lex_string('"a""b"', 3)
142 self.assertEqual(end, 6)
160 end, lit = Lexer.lex_string('"a"', 0)
161 self.assertEqual(end, 3)
164 end, lit = Lexer.lex_string('"n"', 0)
165 self.assertEqual(end, 3)
178 end, lit = Lexer.lex_string('"\\a"', 0)
179 self.assertEqual(end, 4)
182 end, lit = Lexer.lex_string('"\\b"', 0)
183 self.assertEqual(end, 4)
186 end, lit = Lexer.lex_string('"\\f"', 0)
187 self.assertEqual(end, 4)
190 end, lit = Lexer.lex_string('"\\n"', 0)
191 self.assertEqual(end, 4)
194 end, lit = Lexer.lex_string('"\\r"', 0)
195 self.assertEqual(end, 4)
198 end, lit = Lexer.lex_string('"\\t"', 0)
199 self.assertEqual(end, 4)
202 end, lit = Lexer.lex_string('"\\v"', 0)
203 self.assertEqual(end, 4)
206 end, lit = Lexer.lex_string('"\\\\"', 0)
207 self.assertEqual(end, 4)
210 end, lit = Lexer.lex_string('"\\\'"', 0)
211 self.assertEqual(end, 4)
214 end, lit = Lexer.lex_string('"\\\""', 0)
215 self.assertEqual(end, 4)
228 end, lit = Lexer.lex_string('"\\000"', 0)
229 self.assertEqual(end, 6)
232 end, lit = Lexer.lex_string('"\\377"', 0)
233 self.assertEqual(end, 6)
254 end, lit = Lexer.lex_string('"\\x00"', 0)
255 self.assertEqual(end, 6)
258 end, lit = Lexer.lex_string('"\\xff"', 0)
259 self.assertEqual(end, 6)
281 end, lit = Lexer.lex_string('"\\u0000"', 0)
282 self.assertEqual(end, 8)
285 end, lit = Lexer.lex_string('"\\uffff"', 0)
286 self.assertEqual(end, 8)
310 end, lit = Lexer.lex_string('"\\U00000000"', 0)
311 self.assertEqual(end, 12)
314 end, lit = Lexer.lex_string('"\\U0001ffff"', 0)
315 self.assertEqual(end, 12)
350 token, end, lit = Lexer.lex('(', 0)
352 self.assertEqual(end, 1)
355 token, end, lit = Lexer.lex(')', 0)
357 self.assertEqual(end, 1)
360 token, end, lit = Lexer.lex('[', 0)
362 self.assertEqual(end, 1)
365 token, end, lit = Lexer.lex(']', 0)
367 self.assertEqual(end, 1)
370 token, end, lit = Lexer.lex('{', 0)
372 self.assertEqual(end, 1)
375 token, end, lit = Lexer.lex('}', 0)
377 self.assertEqual(end, 1)
380 token, end, lit = Lexer.lex(':', 0)
382 self.assertEqual(end, 1)
385 token, end, lit = Lexer.lex('=', 0)
387 self.assertEqual(end, 1)
390 token, end, lit = Lexer.lex('+', 0)
392 self.assertEqual(end, 1)
395 token, end, lit = Lexer.lex(',', 0)
397 self.assertEqual(end, 1)
404 token, end, lit = Lexer.lex('+=', 0)
406 self.assertEqual(end, 2)
413 token, end, lit = Lexer.lex(' ', 0)
415 self.assertEqual(end, 1)
418 token, end, lit = Lexer.lex('\t', 0)
420 self.assertEqual(end, 1)
423 token, end, lit = Lexer.lex('\r', 0)
425 self.assertEqual(end, 1)
428 token, end, lit = Lexer.lex('\n', 0)
430 self.assertEqual(end, 1)
433 token, end, lit = Lexer.lex('\n \r\t\n', 0)
435 self.assertEqual(end, 5)
442 token, end, lit = Lexer.lex('// abcd', 0)
444 self.assertEqual(end, 7)
447 token, end, lit = Lexer.lex('// abcd\nnext', 0)
449 self.assertEqual(end, 7)
452 token, end, lit = Lexer.lex('/*a\nb*/', 0)
454 self.assertEqual(end, 7)
457 token, end, lit = Lexer.lex('/*a\n *b*/', 0)
459 self.assertEqual(end, 9)
462 token, end, lit = Lexer.lex('/*a**b*/', 0)
464 self.assertEqual(end, 8)
467 token, end, lit = Lexer.lex('/*a***b*/', 0)
469 self.assertEqual(end, 9)
472 token, end, lit = Lexer.lex('/**/', 0)
474 self.assertEqual(end, 4)
477 token, end, lit = Lexer.lex('/***/', 0)
479 self.assertEqual(end, 5)
482 token, end, lit = Lexer.lex('/**a*/', 0)
484 self.assertEqual(end, 6)
487 token, end, lit = Lexer.lex('/*a**/', 0)
489 self.assertEqual(end, 6)
492 token, end, lit = Lexer.lex('/***a*/', 0)
494 self.assertEqual(end, 7)
497 token, end, lit = Lexer.lex('/*a***/', 0)
499 self.assertEqual(end, 7)
506 token, end, lit = Lexer.lex('"a"', 0)
508 self.assertEqual(end, 3)
511 token, end, lit = Lexer.lex('`a\nb`', 0)
513 self.assertEqual(end, 5)
520 token, end, lit = Lexer.lex('ident', 0)
522 self.assertEqual(end, 5)
529 token, end, lit = Lexer.lex('a "b"', 0)
531 self.assertEqual(end, 1)
534 token, end, lit = Lexer.lex('a "b"', end)
536 self.assertEqual(end, 2)
539 token, end, lit = Lexer.lex('a "b"', end)
541 self.assertEqual(end, 5)
558 self.assertEqual(lexer.end, 1)
564 self.assertEqual(lexer.end, 3)
570 self.assertEqual(lexer.end, 12)
576 self.assertEqual(lexer.end, 12)
587 self.assertEqual(lexer.end, 3)
593 self.assertEqual(lexer.end, 3)