(s *scanner, id int)
| 839 | } |
| 840 | |
| 841 | func expectToken(s *scanner, id int) (*token, error) { |
| 842 | if !s.Next() { |
| 843 | return nil, fmt.Errorf("cannot find token %s: %v", tokenIDToStr(id), s.LastError()) |
| 844 | } |
| 845 | t := s.Token() |
| 846 | if t.ID != id { |
| 847 | return nil, fmt.Errorf("unexpected token found %s. Expecting %s at %s", t, tokenIDToStr(id), s.Context()) |
| 848 | } |
| 849 | return t, nil |
| 850 | } |
| 851 | |
| 852 | func validateOutputTagValue(stmt []byte) error { |
| 853 | exprStr := string(stmt) |
no test coverage detected
searching dependent graphs…