MCPcopy Index your code
hub / github.com/google/mangle / VisitConstraintsBlock

Method VisitConstraintsBlock

parse/parse.go:321–324  ·  view source on GitHub ↗

VisitConstraintsBlock visits a parse tree produced by MangleParser#constraintsBlock.

(ctx *gen.ConstraintsBlockContext)

Source from the content-addressed store, hash-verified

319
320// VisitConstraintsBlock visits a parse tree produced by MangleParser#constraintsBlock.
321func (p Parser) VisitConstraintsBlock(ctx *gen.ConstraintsBlockContext) any {
322 atoms := p.Visit(ctx.Atoms()).([]ast.Atom)
323 return ast.NewInclusionConstraint(atoms)
324}
325
326// VisitClause visits a parse tree produced by MangleParser#clause.
327func (p Parser) VisitClause(ctx *gen.ClauseContext) any {

Callers 1

VisitMethod · 0.95

Calls 3

VisitMethod · 0.95
NewInclusionConstraintFunction · 0.92
AtomsMethod · 0.65

Tested by

no test coverage detected