Debian Codegraph @

parser/option.go

raw symbols SCIP
1 package parser
2
3 // Option represents parser's option.
4 type Option func(p *parser)
5
6 // AllowDuplicateMapKey allow the use of keys with the same name in the same map,
7 // but by default, this is not permitted.
8 func AllowDuplicateMapKey() Option {
9 return func(p *parser) {
10 p.allowDuplicateMapKey = true
11 }
12 }