MCPcopy Create free account
hub / github.com/Permify/permify / duplicationError

Method duplicationError

pkg/dsl/parser/parser.go:858–861  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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.
858func (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.

Callers 7

parseEntityStatementMethod · 0.95
parseRuleStatementMethod · 0.95
registerPrefixMethod · 0.95
registerInfixMethod · 0.95

Calls 2

GetLinePositionMethod · 0.80
GetColumnPositionMethod · 0.80

Tested by

no test coverage detected