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

Method backup

parser/lexer/lexer.go:98–106  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

96}
97
98func (l *Lexer) backup() {
99 if l.eof {
100 l.eof = false
101 } else if l.end.rune > 0 {
102 _, sz := utf8.DecodeLastRuneInString(l.source.String()[:l.end.byte])
103 l.end.byte -= sz
104 l.end.rune--
105 }
106}
107
108func (l *Lexer) emit(t Kind) {
109 l.emitValue(t, l.word())

Callers 5

rootFunction · 0.80
dotFunction · 0.80
identifierFunction · 0.80
notFunction · 0.80
pointerFunction · 0.80

Calls 1

StringMethod · 0.65

Tested by

no test coverage detected