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

Method reset

parse/parse.go:88–98  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

86}
87
88func (p *Parser) reset() {
89 // Reset the lexer and parser before putting them back in the pool.
90 p.lexer.RemoveErrorListeners()
91 p.parser.RemoveErrorListeners()
92 p.lexer.SetInputStream(nil)
93 p.parser.SetInputStream(nil)
94 lexerPool.Put(p.lexer)
95 parserPool.Put(p.parser)
96 p.lexer = nil
97 p.parser = nil
98}
99
100// SourceUnit consists of decls and clauses.
101type SourceUnit struct {

Callers 4

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

Calls

no outgoing calls

Tested by

no test coverage detected