duplicationError adds an error message to the parser's error list indicating that a duplication was found. It takes a key string as an argument that is used to identify the source of the duplication in the input.
(key string)
| 856 | // duplicationError adds an error message to the parser's error list indicating that a duplication was found. |
| 857 | // It takes a key string as an argument that is used to identify the source of the duplication in the input. |
| 858 | func (p *Parser) duplicationError(key string) { |
| 859 | msg := fmt.Sprintf("%v:%v:duplication found for %s", p.l.GetLinePosition(), p.l.GetColumnPosition(), key) |
| 860 | p.errors = append(p.errors, msg) |
| 861 | } |
| 862 | |
| 863 | // noPrefixParseFnError adds an error message to the parser's error list indicating that no prefix parsing |
| 864 | // function was found for a given token type. |
no test coverage detected