Lines Matching defs:context
6 type context struct { struct
7 idx int
8 size int
9 tokens token.Tokens
10 mode Mode
13 func (c *context) next() bool {
17 func (c *context) previousToken() *token.Token {
24 func (c *context) insertToken(idx int, tk *token.Token) {
47 func (c *context) currentToken() *token.Token {
54 func (c *context) nextToken() *token.Token {
61 func (c *context) afterNextToken() *token.Token {
68 func (c *context) nextNotCommentToken() *token.Token {
79 func (c *context) afterNextNotCommentToken() *token.Token {
94 func (c *context) enabledComment() bool {
98 func (c *context) isCurrentCommentToken() bool {
106 func (c *context) progressIgnoreComment(num int) {
114 func (c *context) progress(num int) {