MCPcopy
hub / github.com/cortesi/modd / emit

Method emit

conf/lex.go:135–138  ·  view source on GitHub ↗

emit passes an item back to the client.

(t itemType)

Source from the content-addressed store, hash-verified

133
134// emit passes an item back to the client.
135func (l *lexer) emit(t itemType) {
136 l.items <- item{t, l.start, l.current()}
137 l.start = l.pos
138}
139
140// ignore skips over the pending input before this point.
141func (l *lexer) ignore() {

Callers 8

maybeSpaceMethod · 0.95
eatSpaceAndCommentsMethod · 0.95
lexPatternsFunction · 0.80
lexVariablesFunction · 0.80
lexBlockStartFunction · 0.80
lexInsideFunction · 0.80
lexOptionsFunction · 0.80
lexCommandFunction · 0.80

Calls 1

currentMethod · 0.95

Tested by

no test coverage detected