Lines Matching refs:token
27 token = lexer.nextToken()
28 assert token.type == self.lexerModule.FOO
29 assert token.start == 0, token.start
30 assert token.stop == 0, token.stop
31 assert token.text == 'f', token.text
33 token = lexer.nextToken()
34 assert token.type == self.lexerModule.FOO
35 assert token.start == 1, token.start
36 assert token.stop == 2, token.stop
37 assert token.text == 'fo', token.text
39 token = lexer.nextToken()
40 assert token.type == self.lexerModule.FOO
41 assert token.start == 3, token.start
42 assert token.stop == 5, token.stop
43 assert token.text == 'foo', token.text
45 token = lexer.nextToken()
46 assert token.type == self.lexerModule.FOO
47 assert token.start == 6, token.start
48 assert token.stop == 9, token.stop
49 assert token.text == 'fooo', token.text
51 token = lexer.nextToken()
52 assert token.type == self.lexerModule.EOF
60 token = lexer.nextToken()