()
| 204 | } |
| 205 | |
| 206 | func (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)* '{' ... '}'`). |
no test coverage detected