Skip to content

Commit

Permalink
Fix issue.
Browse files Browse the repository at this point in the history
It is good practice to use the ParserRuleContext.todo and ParserRuleContext.error extension functions for a better error handling
  • Loading branch information
lanarimarco committed Jan 31, 2024
1 parent 5649662 commit 5cf5475
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ internal fun BlockContext.toAst(conf: ToAstConfiguration = ToAstConfiguration())
this.begindow() != null -> this.begindow().toAst(blockContext = this, conf = conf)
this.forstatement() != null -> this.forstatement().toAst(conf)
this.begindou() != null -> this.begindou().toAst(blockContext = this, conf = conf)
else -> TODO(this.text.toString() + " " + toPosition(conf.considerPosition))
else -> todo(message = "Missing composite statement implementation for this block: ${this.text}", conf = conf)
}
}

Expand Down

0 comments on commit 5cf5475

Please sign in to comment.