MCPcopy Create free account
hub / github.com/aptly-dev/aptly / C

Method C

query/syntax.go:76–87  ·  view source on GitHub ↗

C := '(' Query ')' | D

()

Source from the content-addressed store, hash-verified

74
75// C := '(' Query ')' | D
76func (p *parser) C() deb.PackageQuery {
77 if p.input.Current().typ == itemLeftParen {
78 p.input.Consume()
79 q := p.Query()
80 if p.input.Current().typ != itemRightParen {
81 panic(fmt.Sprintf("unexpected token %s: expecting ')'", p.input.Current()))
82 }
83 p.input.Consume()
84 return q
85 }
86 return p.D()
87}
88
89func operatorToRelation(operator itemType) int {
90 switch operator {

Callers 1

BMethod · 0.95

Calls 4

QueryMethod · 0.95
DMethod · 0.95
CurrentMethod · 0.80
ConsumeMethod · 0.80

Tested by

no test coverage detected