MCPcopy Create free account
hub / github.com/cel-expr/cel-go / scanNextSignificantToken

Method scanNextSignificantToken

parser/pratt_parser.go:206–214  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

204}
205
206func (p *prattParserWorker) scanNextSignificantToken() token {
207 for {
208 tok := p.lexer.Lex()
209 if tok.kind == tokWhitespace || tok.kind == tokComment {
210 continue
211 }
212 return tok
213 }
214}
215
216// isStructCreationAhead checks whether the current identifier is the root of a struct/message
217// creation expression (`CreateMessage` in grammar: `'.'? IDENTIFIER ('.' IDENTIFIER)* '{' ... '}'`).

Callers 1

isStructCreationAheadMethod · 0.95

Calls 1

LexMethod · 0.80

Tested by

no test coverage detected