Skip to content

Commit

Permalink
Update quint/src/parsing/ToIrListener.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
Shon Feder authored Aug 7, 2023
1 parent 42f9955 commit 4c8612f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions quint/src/parsing/ToIrListener.ts
Original file line number Diff line number Diff line change
Expand Up @@ -903,8 +903,8 @@ export class ToIrListener implements QuintListener {
const matchId = this.getId(ctx)
// We will have one expression for each match case, plus the expression we are matching against
const exprs = popMany(this.exprStack, ctx._matchCase.length + 1)
// The first expression is the one we are matching on
// the syntax rules ensure that at least this expression is given
// The first expression is the one we are matching on.
// The syntax rules ensure that at least this expression is given.
const expr = exprs.shift()!
// after shifting off the match expr, the remaing exprs are in eache case
const cases: MatchCase[] = zip(exprs, ctx._matchCase).map(([caseExpr, caseCtx]) => {
Expand Down

0 comments on commit 4c8612f

Please sign in to comment.