MCPcopy Create free account
hub / github.com/SeldonIO/goven / scanIgnoreWhitespace

Method scanIgnoreWhitespace

parser/parser.go:198–204  ·  view source on GitHub ↗

scanIgnoreWhitespace scans the next non-whitespace token.

()

Source from the content-addressed store, hash-verified

196
197// scanIgnoreWhitespace scans the next non-whitespace token.
198func (p *Parser) scanIgnoreWhitespace() (tok Token, lit string) {
199 tok, lit = p.scan()
200 if tok == WS {
201 tok, lit = p.scan()
202 }
203 return tok, lit
204}
205
206// unscan pushes the previously read tokens back onto the buffer.
207func (p *Parser) unscan(tok TokenInfo) {

Callers 1

parseOperationMethod · 0.95

Calls 1

scanMethod · 0.95

Tested by

no test coverage detected