MCPcopy Index your code
hub / github.com/expr-lang/expr / emitEOF

Method emitEOF

parser/lexer/lexer.go:121–135  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

119}
120
121func (l *Lexer) emitEOF() {
122 from := l.end.rune - 1
123 if from < 0 {
124 from = 0
125 }
126 to := l.end.rune - 0
127 if to < 0 {
128 to = 0
129 }
130 l.tokens.Enqueue(Token{
131 Location: file.Location{From: from, To: to},
132 Kind: EOF,
133 })
134 l.commit()
135}
136
137func (l *Lexer) skip() {
138 l.commit()

Callers 1

rootFunction · 0.80

Calls 2

commitMethod · 0.95
EnqueueMethod · 0.80

Tested by

no test coverage detected