From d14285ea02ca07c825dc2d919e3732e721f17e9c Mon Sep 17 00:00:00 2001 From: Igor Matuszewski Date: Tue, 19 Sep 2023 16:44:27 +0200 Subject: [PATCH] fixup: Re-generate language.rs for the npm build --- .../outputs/npm/crate/src/generated/language.rs | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/crates/solidity/outputs/npm/crate/src/generated/language.rs b/crates/solidity/outputs/npm/crate/src/generated/language.rs index faf039d3d8..6e2a6cf981 100644 --- a/crates/solidity/outputs/npm/crate/src/generated/language.rs +++ b/crates/solidity/outputs/npm/crate/src/generated/language.rs @@ -2886,8 +2886,6 @@ impl Language { choice.consider(input, result)?; let result = self.return_statement(input); choice.consider(input, result)?; - let result = self.revert_statement(input); - choice.consider(input, result)?; if self.version_is_at_least_0_4_21 { let result = self.emit_statement(input); choice.consider(input, result)?; @@ -2900,6 +2898,10 @@ impl Language { let result = self.try_statement(input); choice.consider(input, result)?; } + if self.version_is_at_least_0_8_4 { + let result = self.revert_statement(input); + choice.consider(input, result)?; + } choice.finish(input) }); choice.consider(input, result)?; @@ -3492,7 +3494,11 @@ impl Language { choice.finish(input) }))?; seq.elem(OptionalHelper::transform( - self.default_parse_token_with_trivia(input, TokenKind::GlobalKeyword), + if self.version_is_at_least_0_8_13 { + self.default_parse_token_with_trivia(input, TokenKind::GlobalKeyword) + } else { + ParserResult::disabled() + }, ))?; seq.finish() })