Skip to content

Commit 5195eae

Browse files
committed
go[BUG FIX]: clear result cache when parser is reset
This is important for situations where the parser is being re-used for multiple inputs.
1 parent 5c60146 commit 5195eae

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

go/parser.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,7 @@ func (p *Parser) SetInput(input string) {
219219
p.lastErrFFP = 0
220220
p.stacktrace = []TracerSpan{}
221221
p.predStkCnt = 0
222+
p.mtable = map[string]mentry{}
222223
}
223224

224225
// SetLabelMessages associates messages to labels, so `Throw` can pick

0 commit comments

Comments
 (0)