MCPcopy Create free account
hub / github.com/expr-lang/expr / slash

Function slash

parser/lexer/state.go:190–199  ·  view source on GitHub ↗
(l *Lexer)

Source from the content-addressed store, hash-verified

188}
189
190func slash(l *Lexer) stateFn {
191 if l.accept("/") {
192 return singleLineComment
193 }
194 if l.accept("*") {
195 return multiLineComment
196 }
197 l.emit(Operator)
198 return root
199}
200
201func singleLineComment(l *Lexer) stateFn {
202 for {

Callers

nothing calls this directly

Calls 2

acceptMethod · 0.80
emitMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…