MCPcopy
hub / github.com/google/mangle / error

Method error

parse/parse.go:143–152  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

141}
142
143func (p *Parser) error() error {
144 if len(p.errors.errors) == 0 {
145 return nil
146 }
147 var buf strings.Builder
148 for _, e := range p.errors.errors {
149 buf.WriteString(fmt.Sprintf("%d:%d %s\n", e.Line, e.Column, e.Message))
150 }
151 return errors.New(buf.String())
152}
153
154// Visit is the Visitor implementation.
155func (p *Parser) Visit(tree antlr.ParseTree) any {

Callers 5

UnitFunction · 0.80
PredicateNameFunction · 0.80
ClauseFunction · 0.80
LiteralOrFormulaFunction · 0.80
TermFunction · 0.80

Calls 1

StringMethod · 0.65

Tested by

no test coverage detected