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

Method emitValue

parser/lexer/lexer.go:112–119  ·  view source on GitHub ↗
(t Kind, value string)

Source from the content-addressed store, hash-verified

110}
111
112func (l *Lexer) emitValue(t Kind, value string) {
113 l.tokens.Enqueue(Token{
114 Location: file.Location{From: l.start.rune, To: l.end.rune},
115 Kind: t,
116 Value: value,
117 })
118 l.commit()
119}
120
121func (l *Lexer) emitEOF() {
122 from := l.end.rune - 1

Callers 3

emitMethod · 0.95
scanRawStringMethod · 0.95
rootFunction · 0.80

Calls 2

commitMethod · 0.95
EnqueueMethod · 0.80

Tested by

no test coverage detected