From cfc62f29e2bd505f702544d98b68316b20bbe37e Mon Sep 17 00:00:00 2001 From: Omar Tawfik <15987992+OmarTawfik@users.noreply.github.com> Date: Wed, 30 Oct 2024 11:43:47 -0700 Subject: [PATCH] unreserve `AddressKeyword` and allow it to be used as a field name (#1134) --- .changeset/clever-crabs-grow.md | 5 ++ .changeset/selfish-adults-wave.md | 5 ++ .../inputs/language/bindings/rules.msgb | 2 +- .../inputs/language/src/definition.rs | 40 +++------ .../cargo/crate/generated/public_api.txt | 1 - .../bindings/generated/binding_rules.rs | 2 +- .../cst/generated/nonterminal_kind.rs | 1 - .../src/generated/parser/generated/parser.rs | 90 ++++++------------- .../outputs/cargo/tests/src/generated/mod.rs | 3 +- .../src/generated/interface/generated/cst.wit | 1 - .../src/generated/ast/generated/nodes.mts | 23 +---- .../nomic-foundation-slang-cst.d.ts | 1 - .../outputs/spec/generated/grammar.ebnf | 12 +-- .../public/01-file-structure/08-keywords.md | 2 +- .../05-expressions/01-base-expressions.md | 2 +- .../public/06-yul/02-yul-expressions.md | 8 +- .../public/06-yul/03-yul-keywords.md | 2 +- .../generated/public/supported-versions.md | 4 +- .../function_def/generated/0.4.11-success.yml | 12 ++- .../generated/0.4.11-failure.yml | 17 ++-- .../generated/0.4.12-failure.yml | 17 ++-- .../generated/0.5.0-failure.yml | 17 ++-- .../generated/0.6.0-failure.yml | 17 ++-- .../generated/0.8.18-failure.yml | 17 ++-- .../generated/0.8.24-failure.yml | 17 ++-- .../generated/0.8.7-failure.yml | 17 ++-- .../generated/0.4.11-success.yml | 2 +- .../generated/0.4.11-success.yml | 9 +- .../generated/0.4.11-success.yml | 12 ++- .../generated/0.5.8-success.yml | 9 +- .../generated/0.7.0-success.yml | 12 ++- .../generated/0.4.11-success.yml | 2 +- .../generated/0.4.11-success.yml | 2 +- .../generated/0.4.11-success.yml | 2 +- .../generated/0.4.11-success.yml | 2 +- .../generated/0.4.11-success.yml | 2 +- .../generated/0.4.11-success.yml | 2 +- .../generated/0.4.11-success.yml | 2 +- .../generated/0.4.11-success.yml | 2 +- .../generated/0.4.11-success.yml | 2 +- .../generated/0.4.11-success.yml | 2 +- .../built_in_sha3/generated/0.5.0-success.yml | 2 +- .../generated/0.4.11-success.yml | 2 +- .../generated/0.5.0-success.yml | 2 +- .../generated/0.4.11-success.yml | 2 +- .../generated/0.4.11-success.yml | 2 +- .../generated/0.4.11-failure.yml | 38 -------- ...{0.8.10-success.yml => 0.4.11-success.yml} | 34 ++++--- .../generated/0.5.8-success.yml | 30 +++---- .../generated/0.7.0-failure.yml | 38 -------- .../generated/0.7.0-success.yml | 50 +++++++++++ .../generated/0.4.11-success.yml | 7 +- .../generated/0.5.5-failure.yml | 7 +- .../generated/0.8.10-failure.yml | 17 ---- .../generated/0.8.10-failure.yml | 17 ---- .../generated/0.4.11-failure.yml | 17 ---- ...{0.8.10-success.yml => 0.4.11-success.yml} | 2 +- .../generated/0.8.10-failure.yml | 17 ---- .../generated/0.8.10-failure.yml | 17 ---- .../generated/0.4.11-success.yml | 2 +- .../generated/0.8.10-failure.yml | 17 ---- .../generated/0.8.10-failure.yml | 17 ---- .../generated/0.8.10-failure.yml | 17 ---- .../generated/0.8.10-failure.yml | 17 ---- .../generated/0.8.10-failure.yml | 17 ---- .../generated/0.8.10-failure.yml | 17 ---- .../generated/0.8.10-failure.yml | 17 ---- .../generated/0.8.10-failure.yml | 17 ---- .../generated/0.8.10-failure.yml | 17 ---- .../generated/0.8.10-failure.yml | 17 ---- .../generated/0.4.11-success.yml | 2 +- .../generated/0.8.10-failure.yml | 17 ---- .../generated/0.8.10-failure.yml | 17 ---- .../generated/0.8.10-failure.yml | 17 ---- .../generated/0.4.11-success.yml | 2 +- .../generated/0.8.10-failure.yml | 17 ---- .../generated/0.8.10-failure.yml | 17 ---- .../generated/0.8.10-failure.yml | 17 ---- .../generated/0.8.10-failure.yml | 17 ---- .../generated/0.8.10-failure.yml | 17 ---- .../generated/0.8.10-failure.yml | 17 ---- .../generated/0.8.10-failure.yml | 17 ---- .../generated/0.4.11-success.yml | 2 +- .../generated/0.8.10-failure.yml | 17 ---- .../generated/0.8.10-failure.yml | 17 ---- .../generated/0.8.10-failure.yml | 17 ---- .../generated/0.8.10-failure.yml | 17 ---- .../generated/0.8.10-failure.yml | 17 ---- .../generated/0.8.10-failure.yml | 17 ---- .../generated/0.8.10-failure.yml | 17 ---- .../generated/0.8.10-failure.yml | 17 ---- .../generated/0.4.11-success.yml | 2 +- .../generated/0.8.10-failure.yml | 17 ---- .../generated/0.8.10-failure.yml | 17 ---- .../generated/0.8.10-failure.yml | 17 ---- .../generated/0.8.10-failure.yml | 17 ---- .../generated/0.8.10-failure.yml | 17 ---- .../generated/0.8.10-failure.yml | 17 ---- .../generated/0.8.10-failure.yml | 17 ---- .../generated/0.8.10-failure.yml | 17 ---- .../generated/0.8.10-failure.yml | 17 ---- .../generated/0.8.10-failure.yml | 17 ---- .../generated/0.8.10-failure.yml | 17 ---- .../generated/0.8.10-failure.yml | 17 ---- .../generated/0.8.10-failure.yml | 17 ---- .../generated/0.8.10-failure.yml | 17 ---- .../generated/0.8.10-failure.yml | 17 ---- .../generated/0.8.10-failure.yml | 17 ---- .../generated/0.8.10-failure.yml | 17 ---- .../generated/0.8.10-failure.yml | 17 ---- .../generated/0.8.10-failure.yml | 17 ---- .../generated/0.4.11-success.yml | 2 +- .../generated/0.8.18-failure.yml | 2 +- .../generated/0.8.10-failure.yml | 17 ---- .../generated/0.4.11-success.yml | 2 +- .../generated/0.8.10-failure.yml | 17 ---- .../generated/0.4.11-success.yml | 2 +- .../generated/0.8.10-failure.yml | 17 ---- .../generated/0.8.10-failure.yml | 17 ---- .../generated/0.4.11-success.yml | 2 +- .../generated/0.8.10-failure.yml | 17 ---- .../generated/0.8.10-failure.yml | 17 ---- .../generated/0.4.11-success.yml | 2 +- .../generated/0.8.10-failure.yml | 17 ---- .../generated/0.8.10-failure.yml | 17 ---- .../generated/0.8.10-failure.yml | 17 ---- .../generated/0.5.0-success.yml | 2 +- .../generated/0.4.11-success.yml | 2 +- .../generated/0.8.10-failure.yml | 17 ---- .../generated/0.4.11-success.yml | 2 +- .../generated/0.8.10-failure.yml | 17 ---- .../generated/0.8.10-failure.yml | 17 ---- .../generated/0.8.10-failure.yml | 17 ---- .../generated/0.8.10-failure.yml | 17 ---- .../generated/0.8.10-failure.yml | 17 ---- .../generated/0.8.10-failure.yml | 17 ---- .../generated/0.4.11-success.yml | 2 +- .../generated/0.8.10-failure.yml | 17 ---- .../generated/0.8.10-failure.yml | 17 ---- .../generated/0.8.10-failure.yml | 17 ---- .../generated/0.5.0-success.yml | 2 +- .../generated/0.8.10-failure.yml | 17 ---- .../generated/0.8.10-failure.yml | 17 ---- .../generated/0.4.11-success.yml | 5 +- 144 files changed, 251 insertions(+), 1642 deletions(-) create mode 100644 .changeset/clever-crabs-grow.md create mode 100644 .changeset/selfish-adults-wave.md delete mode 100644 crates/solidity/testing/snapshots/cst_output/YulStatements/function_pointer/generated/0.4.11-failure.yml rename crates/solidity/testing/snapshots/cst_output/YulStatements/function_pointer/generated/{0.8.10-success.yml => 0.4.11-success.yml} (64%) delete mode 100644 crates/solidity/testing/snapshots/cst_output/YulStatements/function_pointer/generated/0.7.0-failure.yml create mode 100644 crates/solidity/testing/snapshots/cst_output/YulStatements/function_pointer/generated/0.7.0-success.yml delete mode 100644 crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_add/generated/0.8.10-failure.yml delete mode 100644 crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_addmod/generated/0.8.10-failure.yml delete mode 100644 crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_address/generated/0.4.11-failure.yml rename crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_address/generated/{0.8.10-success.yml => 0.4.11-success.yml} (89%) delete mode 100644 crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_and/generated/0.8.10-failure.yml delete mode 100644 crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_balance/generated/0.8.10-failure.yml delete mode 100644 crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_basefee/generated/0.8.10-failure.yml delete mode 100644 crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_blockhash/generated/0.8.10-failure.yml delete mode 100644 crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_byte/generated/0.8.10-failure.yml delete mode 100644 crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_call/generated/0.8.10-failure.yml delete mode 100644 crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_callcode/generated/0.8.10-failure.yml delete mode 100644 crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_calldatacopy/generated/0.8.10-failure.yml delete mode 100644 crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_calldataload/generated/0.8.10-failure.yml delete mode 100644 crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_calldatasize/generated/0.8.10-failure.yml delete mode 100644 crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_caller/generated/0.8.10-failure.yml delete mode 100644 crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_callvalue/generated/0.8.10-failure.yml delete mode 100644 crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_chainid/generated/0.8.10-failure.yml delete mode 100644 crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_coinbase/generated/0.8.10-failure.yml delete mode 100644 crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_create/generated/0.8.10-failure.yml delete mode 100644 crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_create2/generated/0.8.10-failure.yml delete mode 100644 crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_delegatecall/generated/0.8.10-failure.yml delete mode 100644 crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_difficulty/generated/0.8.10-failure.yml delete mode 100644 crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_div/generated/0.8.10-failure.yml delete mode 100644 crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_eq/generated/0.8.10-failure.yml delete mode 100644 crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_exp/generated/0.8.10-failure.yml delete mode 100644 crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_extcodecopy/generated/0.8.10-failure.yml delete mode 100644 crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_extcodehash/generated/0.8.10-failure.yml delete mode 100644 crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_extcodesize/generated/0.8.10-failure.yml delete mode 100644 crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_gas/generated/0.8.10-failure.yml delete mode 100644 crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_gaslimit/generated/0.8.10-failure.yml delete mode 100644 crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_gasprice/generated/0.8.10-failure.yml delete mode 100644 crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_gt/generated/0.8.10-failure.yml delete mode 100644 crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_invalid/generated/0.8.10-failure.yml delete mode 100644 crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_iszero/generated/0.8.10-failure.yml delete mode 100644 crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_keccak256/generated/0.8.10-failure.yml delete mode 100644 crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_log0/generated/0.8.10-failure.yml delete mode 100644 crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_log1/generated/0.8.10-failure.yml delete mode 100644 crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_log2/generated/0.8.10-failure.yml delete mode 100644 crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_log3/generated/0.8.10-failure.yml delete mode 100644 crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_log4/generated/0.8.10-failure.yml delete mode 100644 crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_lt/generated/0.8.10-failure.yml delete mode 100644 crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_mload/generated/0.8.10-failure.yml delete mode 100644 crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_mod/generated/0.8.10-failure.yml delete mode 100644 crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_msize/generated/0.8.10-failure.yml delete mode 100644 crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_mstore/generated/0.8.10-failure.yml delete mode 100644 crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_mstore8/generated/0.8.10-failure.yml delete mode 100644 crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_mul/generated/0.8.10-failure.yml delete mode 100644 crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_mulmod/generated/0.8.10-failure.yml delete mode 100644 crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_not/generated/0.8.10-failure.yml delete mode 100644 crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_number/generated/0.8.10-failure.yml delete mode 100644 crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_or/generated/0.8.10-failure.yml delete mode 100644 crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_origin/generated/0.8.10-failure.yml delete mode 100644 crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_pop/generated/0.8.10-failure.yml delete mode 100644 crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_return/generated/0.8.10-failure.yml delete mode 100644 crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_returndatacopy/generated/0.8.10-failure.yml delete mode 100644 crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_returndatasize/generated/0.8.10-failure.yml delete mode 100644 crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_revert/generated/0.8.10-failure.yml delete mode 100644 crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_sar/generated/0.8.10-failure.yml delete mode 100644 crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_sdiv/generated/0.8.10-failure.yml delete mode 100644 crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_selfbalance/generated/0.8.10-failure.yml delete mode 100644 crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_selfdestruct/generated/0.8.10-failure.yml delete mode 100644 crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_sgt/generated/0.8.10-failure.yml delete mode 100644 crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_shl/generated/0.8.10-failure.yml delete mode 100644 crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_shr/generated/0.8.10-failure.yml delete mode 100644 crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_signextend/generated/0.8.10-failure.yml delete mode 100644 crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_sload/generated/0.8.10-failure.yml delete mode 100644 crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_slt/generated/0.8.10-failure.yml delete mode 100644 crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_smod/generated/0.8.10-failure.yml delete mode 100644 crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_sstore/generated/0.8.10-failure.yml delete mode 100644 crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_staticcall/generated/0.8.10-failure.yml delete mode 100644 crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_stop/generated/0.8.10-failure.yml delete mode 100644 crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_sub/generated/0.8.10-failure.yml delete mode 100644 crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_timestamp/generated/0.8.10-failure.yml delete mode 100644 crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_xor/generated/0.8.10-failure.yml diff --git a/.changeset/clever-crabs-grow.md b/.changeset/clever-crabs-grow.md new file mode 100644 index 0000000000..54fb023e52 --- /dev/null +++ b/.changeset/clever-crabs-grow.md @@ -0,0 +1,5 @@ +--- +"@nomicfoundation/slang": patch +--- + +remove `YulPathComponent` and just use `YulIdentifier` instead. diff --git a/.changeset/selfish-adults-wave.md b/.changeset/selfish-adults-wave.md new file mode 100644 index 0000000000..e3da15b74f --- /dev/null +++ b/.changeset/selfish-adults-wave.md @@ -0,0 +1,5 @@ +--- +"@nomicfoundation/slang": patch +--- + +unreserve `AddressKeyword`, and let it be used for `MemberAccessExpression`, `StructMember`, etc... diff --git a/crates/solidity/inputs/language/bindings/rules.msgb b/crates/solidity/inputs/language/bindings/rules.msgb index 15ec5050ad..80cfffacf3 100644 --- a/crates/solidity/inputs/language/bindings/rules.msgb +++ b/crates/solidity/inputs/language/bindings/rules.msgb @@ -2113,7 +2113,7 @@ inherit .parent_scope edge @path.lexical_scope -> @expr.lexical_scope } -@path [YulPath . [YulPathComponent @name [YulIdentifier]]] { +@path [YulPath @name [YulIdentifier]] { node @path.lexical_scope node ref diff --git a/crates/solidity/inputs/language/src/definition.rs b/crates/solidity/inputs/language/src/definition.rs index 1a01c3ae95..05a4589c6d 100644 --- a/crates/solidity/inputs/language/src/definition.rs +++ b/crates/solidity/inputs/language/src/definition.rs @@ -486,7 +486,8 @@ codegen_language_macros::compile!(Language( Keyword( name = AddressKeyword, identifier = Identifier, - definitions = [KeywordDefinition(value = Atom("address"))] + definitions = + [KeywordDefinition(reserved = Never, value = Atom("address"))] ), Keyword( name = AfterKeyword, @@ -3460,22 +3461,13 @@ codegen_language_macros::compile!(Language( ), PrecedenceExpression( name = MemberAccessExpression, - operators = [ - PrecedenceOperator( - model = Postfix, - fields = ( - period = Required(Period), - member = Required(Identifier) - ) - ), - PrecedenceOperator( - model = Postfix, - fields = ( - period = Required(Period), - member = Required(AddressKeyword) - ) + operators = [PrecedenceOperator( + model = Postfix, + fields = ( + period = Required(Period), + member = Required(Identifier) ) - ] + )] ), PrecedenceExpression( name = IndexAccessExpression, @@ -4381,20 +4373,9 @@ codegen_language_macros::compile!(Language( Separated(name = YulPaths, reference = YulPath, separator = Comma), Separated( name = YulPath, - reference = YulPathComponent, + reference = YulIdentifier, separator = Period ), - Enum( - name = YulPathComponent, - variants = [ - EnumVariant(reference = YulIdentifier), - EnumVariant( - // Upstream grammar accepts built-ins but only `address` is valid: - reference = YulAddressKeyword, - enabled = From("0.8.10") - ) - ] - ), Token( name = YulIdentifier, definitions = [ @@ -4604,7 +4585,8 @@ codegen_language_macros::compile!(Language( Keyword( name = YulAddressKeyword, identifier = YulIdentifier, - definitions = [KeywordDefinition(value = Atom("address"))] + definitions = + [KeywordDefinition(reserved = Never, value = Atom("address"))] ), Keyword( name = YulAfterKeyword, diff --git a/crates/solidity/outputs/cargo/crate/generated/public_api.txt b/crates/solidity/outputs/cargo/crate/generated/public_api.txt index ed8e613a2c..aa562c3448 100644 --- a/crates/solidity/outputs/cargo/crate/generated/public_api.txt +++ b/crates/solidity/outputs/cargo/crate/generated/public_api.txt @@ -400,7 +400,6 @@ pub slang_solidity::cst::NonterminalKind::YulLiteral pub slang_solidity::cst::NonterminalKind::YulParameters pub slang_solidity::cst::NonterminalKind::YulParametersDeclaration pub slang_solidity::cst::NonterminalKind::YulPath -pub slang_solidity::cst::NonterminalKind::YulPathComponent pub slang_solidity::cst::NonterminalKind::YulPaths pub slang_solidity::cst::NonterminalKind::YulReturnsDeclaration pub slang_solidity::cst::NonterminalKind::YulStackAssignmentOperator diff --git a/crates/solidity/outputs/cargo/crate/src/generated/bindings/generated/binding_rules.rs b/crates/solidity/outputs/cargo/crate/src/generated/bindings/generated/binding_rules.rs index eb9ad8c9b0..d13c1567c3 100644 --- a/crates/solidity/outputs/cargo/crate/src/generated/bindings/generated/binding_rules.rs +++ b/crates/solidity/outputs/cargo/crate/src/generated/bindings/generated/binding_rules.rs @@ -2118,7 +2118,7 @@ inherit .parent_scope edge @path.lexical_scope -> @expr.lexical_scope } -@path [YulPath . [YulPathComponent @name [YulIdentifier]]] { +@path [YulPath @name [YulIdentifier]] { node @path.lexical_scope node ref diff --git a/crates/solidity/outputs/cargo/crate/src/generated/cst/generated/nonterminal_kind.rs b/crates/solidity/outputs/cargo/crate/src/generated/cst/generated/nonterminal_kind.rs index 52ab2f49b5..dedbd32628 100644 --- a/crates/solidity/outputs/cargo/crate/src/generated/cst/generated/nonterminal_kind.rs +++ b/crates/solidity/outputs/cargo/crate/src/generated/cst/generated/nonterminal_kind.rs @@ -220,7 +220,6 @@ pub enum NonterminalKind { YulParameters, YulParametersDeclaration, YulPath, - YulPathComponent, YulPaths, YulReturnsDeclaration, YulStackAssignmentOperator, diff --git a/crates/solidity/outputs/cargo/crate/src/generated/parser/generated/parser.rs b/crates/solidity/outputs/cargo/crate/src/generated/parser/generated/parser.rs index fb69be5099..a6f57c8c40 100644 --- a/crates/solidity/outputs/cargo/crate/src/generated/parser/generated/parser.rs +++ b/crates/solidity/outputs/cargo/crate/src/generated/parser/generated/parser.rs @@ -58,7 +58,6 @@ pub struct Parser { pub(crate) version_is_at_least_0_8_4: bool, pub(crate) version_is_at_least_0_8_7: bool, pub(crate) version_is_at_least_0_8_8: bool, - pub(crate) version_is_at_least_0_8_10: bool, pub(crate) version_is_at_least_0_8_13: bool, pub(crate) version_is_at_least_0_8_18: bool, pub(crate) version_is_at_least_0_8_19: bool, @@ -194,7 +193,6 @@ impl Parser { version_is_at_least_0_8_4: Version::new(0, 8, 4) <= version, version_is_at_least_0_8_7: Version::new(0, 8, 7) <= version, version_is_at_least_0_8_8: Version::new(0, 8, 8) <= version, - version_is_at_least_0_8_10: Version::new(0, 8, 10) <= version, version_is_at_least_0_8_13: Version::new(0, 8, 13) <= version, version_is_at_least_0_8_18: Version::new(0, 8, 18) <= version, version_is_at_least_0_8_19: Version::new(0, 8, 19) <= version, @@ -2127,44 +2125,22 @@ impl Parser { PrecedenceHelper::to_postfix_operator( NonterminalKind::MemberAccessExpression, 37u8, - ChoiceHelper::run(input, |mut choice, input| { - let result = SequenceHelper::run(|mut seq| { - seq.elem_labeled( - EdgeLabel::Period, - self.parse_terminal_with_trivia::( - input, - TerminalKind::Period, - ), - )?; - seq.elem_labeled( - EdgeLabel::Member, - self.parse_terminal_with_trivia::( - input, - TerminalKind::Identifier, - ), - )?; - seq.finish() - }); - choice.consider(input, result)?; - let result = SequenceHelper::run(|mut seq| { - seq.elem_labeled( - EdgeLabel::Period, - self.parse_terminal_with_trivia::( - input, - TerminalKind::Period, - ), - )?; - seq.elem_labeled( - EdgeLabel::Member, - self.parse_terminal_with_trivia::( - input, - TerminalKind::AddressKeyword, - ), - )?; - seq.finish() - }); - choice.consider(input, result)?; - choice.finish(input) + SequenceHelper::run(|mut seq| { + seq.elem_labeled( + EdgeLabel::Period, + self.parse_terminal_with_trivia::( + input, + TerminalKind::Period, + ), + )?; + seq.elem_labeled( + EdgeLabel::Member, + self.parse_terminal_with_trivia::( + input, + TerminalKind::Identifier, + ), + )?; + seq.finish() }), ) }; @@ -6666,34 +6642,19 @@ impl Parser { SeparatedHelper::run::<_, LexicalContextType::Yul>( input, self, - |input| self.yul_path_component(input).with_label(EdgeLabel::Item), + |input| { + self.parse_terminal_with_trivia::( + input, + TerminalKind::YulIdentifier, + ) + .with_label(EdgeLabel::Item) + }, TerminalKind::Period, EdgeLabel::Separator, ) .with_kind(NonterminalKind::YulPath) } - #[allow(unused_assignments, unused_parens)] - fn yul_path_component(&self, input: &mut ParserContext<'_>) -> ParserResult { - ChoiceHelper::run(input, |mut choice, input| { - let result = self.parse_terminal_with_trivia::( - input, - TerminalKind::YulIdentifier, - ); - choice.consider(input, result)?; - if self.version_is_at_least_0_8_10 { - let result = self.parse_terminal_with_trivia::( - input, - TerminalKind::YulAddressKeyword, - ); - choice.consider(input, result)?; - } - choice.finish(input) - }) - .with_label(EdgeLabel::Variant) - .with_kind(NonterminalKind::YulPathComponent) - } - #[allow(unused_assignments, unused_parens)] fn yul_paths(&self, input: &mut ParserContext<'_>) -> ParserResult { SeparatedHelper::run::<_, LexicalContextType::Yul>( @@ -9475,7 +9436,6 @@ impl Parser { Self::yul_parameters_declaration.parse(self, input) } NonterminalKind::YulPath => Self::yul_path.parse(self, input), - NonterminalKind::YulPathComponent => Self::yul_path_component.parse(self, input), NonterminalKind::YulPaths => Self::yul_paths.parse(self, input), NonterminalKind::YulReturnsDeclaration => { Self::yul_returns_declaration.parse(self, input) @@ -9741,7 +9701,7 @@ impl Lexer for Parser { } Some('d') => { if scan_chars!(input, 'd', 'r', 'e', 's', 's') { - KeywordScan::Reserved(TerminalKind::AddressKeyword) + KeywordScan::Present(TerminalKind::AddressKeyword) } else { KeywordScan::Absent } @@ -11157,7 +11117,7 @@ impl Lexer for Parser { } Some('r') => { if scan_chars!(input, 'e', 's', 's') { - KeywordScan::Reserved( + KeywordScan::Present( TerminalKind::YulAddressKeyword, ) } else { diff --git a/crates/solidity/outputs/cargo/tests/src/generated/mod.rs b/crates/solidity/outputs/cargo/tests/src/generated/mod.rs index c1409e5c84..120d614b2d 100644 --- a/crates/solidity/outputs/cargo/tests/src/generated/mod.rs +++ b/crates/solidity/outputs/cargo/tests/src/generated/mod.rs @@ -2,7 +2,7 @@ use semver::Version; -pub const VERSION_BREAKS: [Version; 35] = [ +pub const VERSION_BREAKS: [Version; 34] = [ Version::new(0, 4, 11), Version::new(0, 4, 12), Version::new(0, 4, 14), @@ -30,7 +30,6 @@ pub const VERSION_BREAKS: [Version; 35] = [ Version::new(0, 8, 4), Version::new(0, 8, 7), Version::new(0, 8, 8), - Version::new(0, 8, 10), Version::new(0, 8, 13), Version::new(0, 8, 18), Version::new(0, 8, 19), diff --git a/crates/solidity/outputs/cargo/wasm/src/generated/interface/generated/cst.wit b/crates/solidity/outputs/cargo/wasm/src/generated/interface/generated/cst.wit index ab8ba241c6..4c8c5a7298 100644 --- a/crates/solidity/outputs/cargo/wasm/src/generated/interface/generated/cst.wit +++ b/crates/solidity/outputs/cargo/wasm/src/generated/interface/generated/cst.wit @@ -205,7 +205,6 @@ interface cst { %yul-parameters, %yul-parameters-declaration, %yul-path, - %yul-path-component, %yul-paths, %yul-returns-declaration, %yul-stack-assignment-operator, diff --git a/crates/solidity/outputs/npm/package/src/generated/ast/generated/nodes.mts b/crates/solidity/outputs/npm/package/src/generated/ast/generated/nodes.mts index 515826b73b..767c47642f 100644 --- a/crates/solidity/outputs/npm/package/src/generated/ast/generated/nodes.mts +++ b/crates/solidity/outputs/npm/package/src/generated/ast/generated/nodes.mts @@ -5101,22 +5101,6 @@ export class YulExpression { } } -export class YulPathComponent { - private readonly fetch: () => TerminalNode = once(() => { - const variant = generated.ast.Selectors.choice(this.cst); - - return variant as TerminalNode; - }); - - public constructor(public readonly cst: NonterminalNode) { - assertKind(this.cst.kind, NonterminalKind.YulPathComponent); - } - - public get variant(): TerminalNode { - return this.fetch(); - } -} - export class YulBuiltInFunction { private readonly fetch: () => TerminalNode = once(() => { const variant = generated.ast.Selectors.choice(this.cst); @@ -5979,17 +5963,14 @@ export class YulPath { private readonly fetch = once(() => { const [items, separators] = generated.ast.Selectors.separated(this.cst); - return { - items: items!.map((item) => new YulPathComponent(item as NonterminalNode)), - separators: separators as TerminalNode[], - }; + return { items: items as TerminalNode[], separators: separators as TerminalNode[] }; }); public constructor(public readonly cst: NonterminalNode) { assertKind(this.cst.kind, NonterminalKind.YulPath); } - public get items(): readonly YulPathComponent[] { + public get items(): readonly TerminalNode[] { return this.fetch().items; } diff --git a/crates/solidity/outputs/npm/package/wasm/generated/interfaces/nomic-foundation-slang-cst.d.ts b/crates/solidity/outputs/npm/package/wasm/generated/interfaces/nomic-foundation-slang-cst.d.ts index 10e4f5e554..dcdc6d1918 100644 --- a/crates/solidity/outputs/npm/package/wasm/generated/interfaces/nomic-foundation-slang-cst.d.ts +++ b/crates/solidity/outputs/npm/package/wasm/generated/interfaces/nomic-foundation-slang-cst.d.ts @@ -217,7 +217,6 @@ export declare enum NonterminalKind { YulParameters = "YulParameters", YulParametersDeclaration = "YulParametersDeclaration", YulPath = "YulPath", - YulPathComponent = "YulPathComponent", YulPaths = "YulPaths", YulReturnsDeclaration = "YulReturnsDeclaration", YulStackAssignmentOperator = "YulStackAssignmentOperator", diff --git a/crates/solidity/outputs/spec/generated/grammar.ebnf b/crates/solidity/outputs/spec/generated/grammar.ebnf index b98b5f5db4..4ec32df591 100644 --- a/crates/solidity/outputs/spec/generated/grammar.ebnf +++ b/crates/solidity/outputs/spec/generated/grammar.ebnf @@ -198,6 +198,7 @@ MULTI_LINE_NAT_SPEC_COMMENT = "/**" (!"*" | "*")* "*/"; (* Introduced in 0.6.0 *) ABSTRACT_KEYWORD = "abstract"; +(* Never reserved *) ADDRESS_KEYWORD = "address"; AFTER_KEYWORD = "after"; @@ -1407,11 +1408,6 @@ MemberAccessExpression = (* operand: *) Expression (* period: *) PERIOD (* member: *) IDENTIFIER; -(* Postfix unary operator *) -MemberAccessExpression = (* operand: *) Expression - (* period: *) PERIOD - (* member: *) ADDRESS_KEYWORD; - (* Postfix unary operator *) IndexAccessExpression = (* operand: *) Expression (* open_bracket: *) OPEN_BRACKET @@ -1722,10 +1718,7 @@ YulArguments = ((* item: *) YulExpression ((* separator: *) COMMA (* item: *) Yu YulPaths = (* item: *) YulPath ((* separator: *) COMMA (* item: *) YulPath)*; -YulPath = (* item: *) YulPathComponent ((* separator: *) PERIOD (* item: *) YulPathComponent)*; - -YulPathComponent = (* variant: *) YUL_IDENTIFIER - | (* variant: *) YUL_ADDRESS_KEYWORD; (* Introduced in 0.8.10 *) +YulPath = (* item: *) YUL_IDENTIFIER ((* separator: *) PERIOD (* item: *) YUL_IDENTIFIER)*; (* Introduced in 0.5.8 and deprecated in 0.7.0. *) YUL_IDENTIFIER = «IDENTIFIER_START» («IDENTIFIER_PART» | ".")*; @@ -1834,6 +1827,7 @@ YUL_ADD_KEYWORD = "add"; YUL_ADD_MOD_KEYWORD = "addmod"; +(* Never reserved *) YUL_ADDRESS_KEYWORD = "address"; (* Reserved until 0.7.1 *) diff --git a/crates/solidity/outputs/spec/generated/public/01-file-structure/08-keywords.md b/crates/solidity/outputs/spec/generated/public/01-file-structure/08-keywords.md index ed446764d9..3ded7f804d 100644 --- a/crates/solidity/outputs/spec/generated/public/01-file-structure/08-keywords.md +++ b/crates/solidity/outputs/spec/generated/public/01-file-structure/08-keywords.md @@ -14,7 +14,7 @@ ``` -
ADDRESS_KEYWORD = "address";
+
(* Never reserved *)
ADDRESS_KEYWORD = "address";
```{ .ebnf #AfterKeyword } diff --git a/crates/solidity/outputs/spec/generated/public/05-expressions/01-base-expressions.md b/crates/solidity/outputs/spec/generated/public/05-expressions/01-base-expressions.md index 1a606e657c..a8ac986bc0 100644 --- a/crates/solidity/outputs/spec/generated/public/05-expressions/01-base-expressions.md +++ b/crates/solidity/outputs/spec/generated/public/05-expressions/01-base-expressions.md @@ -116,7 +116,7 @@ ``` -
(* Postfix unary operator *)
MemberAccessExpression = (* operand: *) Expression
(* period: *) PERIOD
(* member: *) IDENTIFIER;

(* Postfix unary operator *)
MemberAccessExpression = (* operand: *) Expression
(* period: *) PERIOD
(* member: *) ADDRESS_KEYWORD;
+
(* Postfix unary operator *)
MemberAccessExpression = (* operand: *) Expression
(* period: *) PERIOD
(* member: *) IDENTIFIER;
```{ .ebnf #IndexAccessExpression } diff --git a/crates/solidity/outputs/spec/generated/public/06-yul/02-yul-expressions.md b/crates/solidity/outputs/spec/generated/public/06-yul/02-yul-expressions.md index 5f18e8cc23..83962a6494 100644 --- a/crates/solidity/outputs/spec/generated/public/06-yul/02-yul-expressions.md +++ b/crates/solidity/outputs/spec/generated/public/06-yul/02-yul-expressions.md @@ -32,13 +32,7 @@ ``` -
YulPath = (* item: *) YulPathComponent ((* separator: *) PERIOD (* item: *) YulPathComponent)*;
- -```{ .ebnf #YulPathComponent } - -``` - -
YulPathComponent = (* variant: *) YUL_IDENTIFIER
| (* variant: *) YUL_ADDRESS_KEYWORD; (* Introduced in 0.8.10 *)
+
YulPath = (* item: *) YUL_IDENTIFIER ((* separator: *) PERIOD (* item: *) YUL_IDENTIFIER)*;
```{ .ebnf #YulIdentifier } diff --git a/crates/solidity/outputs/spec/generated/public/06-yul/03-yul-keywords.md b/crates/solidity/outputs/spec/generated/public/06-yul/03-yul-keywords.md index 38969088e8..40c8b5e783 100644 --- a/crates/solidity/outputs/spec/generated/public/06-yul/03-yul-keywords.md +++ b/crates/solidity/outputs/spec/generated/public/06-yul/03-yul-keywords.md @@ -26,7 +26,7 @@ ``` -
YUL_ADDRESS_KEYWORD = "address";
+
(* Never reserved *)
YUL_ADDRESS_KEYWORD = "address";
```{ .ebnf #YulAfterKeyword } diff --git a/crates/solidity/outputs/spec/generated/public/supported-versions.md b/crates/solidity/outputs/spec/generated/public/supported-versions.md index bd6290ff35..60ac74df95 100644 --- a/crates/solidity/outputs/spec/generated/public/supported-versions.md +++ b/crates/solidity/outputs/spec/generated/public/supported-versions.md @@ -4,6 +4,6 @@ This specification compiles information from 83 publicly released versions of So `0.4.11` `0.4.12` `0.4.13` `0.4.14` `0.4.15` `0.4.16` `0.4.17` `0.4.18` `0.4.19` `0.4.20` `0.4.21` `0.4.22` `0.4.23` `0.4.24` `0.4.25` `0.4.26` `0.5.0` `0.5.1` `0.5.2` `0.5.3` `0.5.4` `0.5.5` `0.5.6` `0.5.7` `0.5.8` `0.5.9` `0.5.10` `0.5.11` `0.5.12` `0.5.13` `0.5.14` `0.5.15` `0.5.16` `0.5.17` `0.6.0` `0.6.1` `0.6.2` `0.6.3` `0.6.4` `0.6.5` `0.6.6` `0.6.7` `0.6.8` `0.6.9` `0.6.10` `0.6.11` `0.6.12` `0.7.0` `0.7.1` `0.7.2` `0.7.3` `0.7.4` `0.7.5` `0.7.6` `0.8.0` `0.8.1` `0.8.2` `0.8.3` `0.8.4` `0.8.5` `0.8.6` `0.8.7` `0.8.8` `0.8.9` `0.8.10` `0.8.11` `0.8.12` `0.8.13` `0.8.14` `0.8.15` `0.8.16` `0.8.17` `0.8.18` `0.8.19` `0.8.20` `0.8.21` `0.8.22` `0.8.23` `0.8.24` `0.8.25` `0.8.26` `0.8.27` `0.8.28` -Among which, 35 versions have breaking changes: +Among which, 34 versions have breaking changes: -`0.4.11` `0.4.12` `0.4.14` `0.4.16` `0.4.21` `0.4.22` `0.4.25` `0.5.0` `0.5.3` `0.5.5` `0.5.8` `0.5.10` `0.5.12` `0.5.14` `0.6.0` `0.6.2` `0.6.5` `0.6.7` `0.6.8` `0.6.11` `0.7.0` `0.7.1` `0.7.4` `0.8.0` `0.8.4` `0.8.7` `0.8.8` `0.8.10` `0.8.13` `0.8.18` `0.8.19` `0.8.22` `0.8.24` `0.8.25` `0.8.27` +`0.4.11` `0.4.12` `0.4.14` `0.4.16` `0.4.21` `0.4.22` `0.4.25` `0.5.0` `0.5.3` `0.5.5` `0.5.8` `0.5.10` `0.5.12` `0.5.14` `0.6.0` `0.6.2` `0.6.5` `0.6.7` `0.6.8` `0.6.11` `0.7.0` `0.7.1` `0.7.4` `0.8.0` `0.8.4` `0.8.7` `0.8.8` `0.8.13` `0.8.18` `0.8.19` `0.8.22` `0.8.24` `0.8.25` `0.8.27` diff --git a/crates/solidity/testing/snapshots/cst_output/YulBlock/function_def/generated/0.4.11-success.yml b/crates/solidity/testing/snapshots/cst_output/YulBlock/function_def/generated/0.4.11-success.yml index 9e784a4a05..d22c30c6df 100644 --- a/crates/solidity/testing/snapshots/cst_output/YulBlock/function_def/generated/0.4.11-success.yml +++ b/crates/solidity/testing/snapshots/cst_output/YulBlock/function_def/generated/0.4.11-success.yml @@ -41,9 +41,8 @@ Tree: - (item꞉ YulStatement) ► (variant꞉ YulVariableAssignmentStatement): # "\t\tresult := mul(a, b)\n" (35..57) - (variables꞉ YulPaths): # "\t\tresult" (35..43) - (item꞉ YulPath): # "\t\tresult" (35..43) - - (item꞉ YulPathComponent): # "\t\tresult" (35..43) - - (leading_trivia꞉ Whitespace): "\t\t" # (35..37) - - (variant꞉ YulIdentifier): "result" # (37..43) + - (leading_trivia꞉ Whitespace): "\t\t" # (35..37) + - (item꞉ YulIdentifier): "result" # (37..43) - (assignment꞉ YulAssignmentOperator): # " :=" (43..46) - (leading_trivia꞉ Whitespace): " " # (43..44) - (variant꞉ ColonEqual): ":=" # (44..46) @@ -54,12 +53,11 @@ Tree: - (open_paren꞉ OpenParen): "(" # (50..51) - (arguments꞉ YulArguments): # "a, b" (51..55) - (item꞉ YulExpression) ► (variant꞉ YulPath): # "a" (51..52) - - (item꞉ YulPathComponent) ► (variant꞉ YulIdentifier): "a" # (51..52) + - (item꞉ YulIdentifier): "a" # (51..52) - (separator꞉ Comma): "," # (52..53) - (item꞉ YulExpression) ► (variant꞉ YulPath): # " b" (53..55) - - (item꞉ YulPathComponent): # " b" (53..55) - - (leading_trivia꞉ Whitespace): " " # (53..54) - - (variant꞉ YulIdentifier): "b" # (54..55) + - (leading_trivia꞉ Whitespace): " " # (53..54) + - (item꞉ YulIdentifier): "b" # (54..55) - (close_paren꞉ CloseParen): ")" # (55..56) - (trailing_trivia꞉ EndOfLine): "\n" # (56..57) - (leading_trivia꞉ Whitespace): "\t" # (57..58) diff --git a/crates/solidity/testing/snapshots/cst_output/YulBlock/ignore_unknown_delim/generated/0.4.11-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulBlock/ignore_unknown_delim/generated/0.4.11-failure.yml index f98690e44f..7d51c9c3d0 100644 --- a/crates/solidity/testing/snapshots/cst_output/YulBlock/ignore_unknown_delim/generated/0.4.11-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/YulBlock/ignore_unknown_delim/generated/0.4.11-failure.yml @@ -51,9 +51,8 @@ Tree: - (item꞉ YulStatement) ► (variant꞉ YulVariableAssignmentStatement): # "\t\tresult := mul(a, b)\n" (35..57) - (variables꞉ YulPaths): # "\t\tresult" (35..43) - (item꞉ YulPath): # "\t\tresult" (35..43) - - (item꞉ YulPathComponent): # "\t\tresult" (35..43) - - (leading_trivia꞉ Whitespace): "\t\t" # (35..37) - - (variant꞉ YulIdentifier): "result" # (37..43) + - (leading_trivia꞉ Whitespace): "\t\t" # (35..37) + - (item꞉ YulIdentifier): "result" # (37..43) - (assignment꞉ YulAssignmentOperator): # " :=" (43..46) - (leading_trivia꞉ Whitespace): " " # (43..44) - (variant꞉ ColonEqual): ":=" # (44..46) @@ -64,18 +63,16 @@ Tree: - (open_paren꞉ OpenParen): "(" # (50..51) - (arguments꞉ YulArguments): # "a, b" (51..55) - (item꞉ YulExpression) ► (variant꞉ YulPath): # "a" (51..52) - - (item꞉ YulPathComponent) ► (variant꞉ YulIdentifier): "a" # (51..52) + - (item꞉ YulIdentifier): "a" # (51..52) - (separator꞉ Comma): "," # (52..53) - (item꞉ YulExpression) ► (variant꞉ YulPath): # " b" (53..55) - - (item꞉ YulPathComponent): # " b" (53..55) - - (leading_trivia꞉ Whitespace): " " # (53..54) - - (variant꞉ YulIdentifier): "b" # (54..55) + - (leading_trivia꞉ Whitespace): " " # (53..54) + - (item꞉ YulIdentifier): "b" # (54..55) - (close_paren꞉ CloseParen): ")" # (55..56) - (trailing_trivia꞉ EndOfLine): "\n" # (56..57) - (item꞉ YulStatement) ► (variant꞉ YulExpression) ► (variant꞉ YulPath): # "\t\tresult" (57..65) - - (item꞉ YulPathComponent): # "\t\tresult" (57..65) - - (leading_trivia꞉ Whitespace): "\t\t" # (57..59) - - (variant꞉ YulIdentifier): "result" # (59..65) + - (leading_trivia꞉ Whitespace): "\t\t" # (57..59) + - (item꞉ YulIdentifier): "result" # (59..65) - (leading_trivia꞉ Whitespace): " " # (65..66) - (UNRECOGNIZED): ":= [mul(a, b)\n\t" # (66..81) - (close_brace꞉ CloseBrace): "}" # (81..82) diff --git a/crates/solidity/testing/snapshots/cst_output/YulBlock/ignore_unknown_delim/generated/0.4.12-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulBlock/ignore_unknown_delim/generated/0.4.12-failure.yml index 26e0a0083d..61685e93a6 100644 --- a/crates/solidity/testing/snapshots/cst_output/YulBlock/ignore_unknown_delim/generated/0.4.12-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/YulBlock/ignore_unknown_delim/generated/0.4.12-failure.yml @@ -51,9 +51,8 @@ Tree: - (item꞉ YulStatement) ► (variant꞉ YulVariableAssignmentStatement): # "\t\tresult := mul(a, b)\n" (35..57) - (variables꞉ YulPaths): # "\t\tresult" (35..43) - (item꞉ YulPath): # "\t\tresult" (35..43) - - (item꞉ YulPathComponent): # "\t\tresult" (35..43) - - (leading_trivia꞉ Whitespace): "\t\t" # (35..37) - - (variant꞉ YulIdentifier): "result" # (37..43) + - (leading_trivia꞉ Whitespace): "\t\t" # (35..37) + - (item꞉ YulIdentifier): "result" # (37..43) - (assignment꞉ YulAssignmentOperator): # " :=" (43..46) - (leading_trivia꞉ Whitespace): " " # (43..44) - (variant꞉ ColonEqual): ":=" # (44..46) @@ -64,18 +63,16 @@ Tree: - (open_paren꞉ OpenParen): "(" # (50..51) - (arguments꞉ YulArguments): # "a, b" (51..55) - (item꞉ YulExpression) ► (variant꞉ YulPath): # "a" (51..52) - - (item꞉ YulPathComponent) ► (variant꞉ YulIdentifier): "a" # (51..52) + - (item꞉ YulIdentifier): "a" # (51..52) - (separator꞉ Comma): "," # (52..53) - (item꞉ YulExpression) ► (variant꞉ YulPath): # " b" (53..55) - - (item꞉ YulPathComponent): # " b" (53..55) - - (leading_trivia꞉ Whitespace): " " # (53..54) - - (variant꞉ YulIdentifier): "b" # (54..55) + - (leading_trivia꞉ Whitespace): " " # (53..54) + - (item꞉ YulIdentifier): "b" # (54..55) - (close_paren꞉ CloseParen): ")" # (55..56) - (trailing_trivia꞉ EndOfLine): "\n" # (56..57) - (item꞉ YulStatement) ► (variant꞉ YulExpression) ► (variant꞉ YulPath): # "\t\tresult" (57..65) - - (item꞉ YulPathComponent): # "\t\tresult" (57..65) - - (leading_trivia꞉ Whitespace): "\t\t" # (57..59) - - (variant꞉ YulIdentifier): "result" # (59..65) + - (leading_trivia꞉ Whitespace): "\t\t" # (57..59) + - (item꞉ YulIdentifier): "result" # (59..65) - (leading_trivia꞉ Whitespace): " " # (65..66) - (UNRECOGNIZED): ":= [mul(a, b)\n\t" # (66..81) - (close_brace꞉ CloseBrace): "}" # (81..82) diff --git a/crates/solidity/testing/snapshots/cst_output/YulBlock/ignore_unknown_delim/generated/0.5.0-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulBlock/ignore_unknown_delim/generated/0.5.0-failure.yml index e42c3bd62b..caaf55dd36 100644 --- a/crates/solidity/testing/snapshots/cst_output/YulBlock/ignore_unknown_delim/generated/0.5.0-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/YulBlock/ignore_unknown_delim/generated/0.5.0-failure.yml @@ -51,9 +51,8 @@ Tree: - (item꞉ YulStatement) ► (variant꞉ YulVariableAssignmentStatement): # "\t\tresult := mul(a, b)\n" (35..57) - (variables꞉ YulPaths): # "\t\tresult" (35..43) - (item꞉ YulPath): # "\t\tresult" (35..43) - - (item꞉ YulPathComponent): # "\t\tresult" (35..43) - - (leading_trivia꞉ Whitespace): "\t\t" # (35..37) - - (variant꞉ YulIdentifier): "result" # (37..43) + - (leading_trivia꞉ Whitespace): "\t\t" # (35..37) + - (item꞉ YulIdentifier): "result" # (37..43) - (assignment꞉ YulAssignmentOperator): # " :=" (43..46) - (leading_trivia꞉ Whitespace): " " # (43..44) - (variant꞉ ColonEqual): ":=" # (44..46) @@ -64,18 +63,16 @@ Tree: - (open_paren꞉ OpenParen): "(" # (50..51) - (arguments꞉ YulArguments): # "a, b" (51..55) - (item꞉ YulExpression) ► (variant꞉ YulPath): # "a" (51..52) - - (item꞉ YulPathComponent) ► (variant꞉ YulIdentifier): "a" # (51..52) + - (item꞉ YulIdentifier): "a" # (51..52) - (separator꞉ Comma): "," # (52..53) - (item꞉ YulExpression) ► (variant꞉ YulPath): # " b" (53..55) - - (item꞉ YulPathComponent): # " b" (53..55) - - (leading_trivia꞉ Whitespace): " " # (53..54) - - (variant꞉ YulIdentifier): "b" # (54..55) + - (leading_trivia꞉ Whitespace): " " # (53..54) + - (item꞉ YulIdentifier): "b" # (54..55) - (close_paren꞉ CloseParen): ")" # (55..56) - (trailing_trivia꞉ EndOfLine): "\n" # (56..57) - (item꞉ YulStatement) ► (variant꞉ YulExpression) ► (variant꞉ YulPath): # "\t\tresult" (57..65) - - (item꞉ YulPathComponent): # "\t\tresult" (57..65) - - (leading_trivia꞉ Whitespace): "\t\t" # (57..59) - - (variant꞉ YulIdentifier): "result" # (59..65) + - (leading_trivia꞉ Whitespace): "\t\t" # (57..59) + - (item꞉ YulIdentifier): "result" # (59..65) - (leading_trivia꞉ Whitespace): " " # (65..66) - (UNRECOGNIZED): ":= [mul(a, b)\n\t" # (66..81) - (close_brace꞉ CloseBrace): "}" # (81..82) diff --git a/crates/solidity/testing/snapshots/cst_output/YulBlock/ignore_unknown_delim/generated/0.6.0-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulBlock/ignore_unknown_delim/generated/0.6.0-failure.yml index 4ae4b40e34..c1af3c9712 100644 --- a/crates/solidity/testing/snapshots/cst_output/YulBlock/ignore_unknown_delim/generated/0.6.0-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/YulBlock/ignore_unknown_delim/generated/0.6.0-failure.yml @@ -51,9 +51,8 @@ Tree: - (item꞉ YulStatement) ► (variant꞉ YulVariableAssignmentStatement): # "\t\tresult := mul(a, b)\n" (35..57) - (variables꞉ YulPaths): # "\t\tresult" (35..43) - (item꞉ YulPath): # "\t\tresult" (35..43) - - (item꞉ YulPathComponent): # "\t\tresult" (35..43) - - (leading_trivia꞉ Whitespace): "\t\t" # (35..37) - - (variant꞉ YulIdentifier): "result" # (37..43) + - (leading_trivia꞉ Whitespace): "\t\t" # (35..37) + - (item꞉ YulIdentifier): "result" # (37..43) - (assignment꞉ YulAssignmentOperator): # " :=" (43..46) - (leading_trivia꞉ Whitespace): " " # (43..44) - (variant꞉ ColonEqual): ":=" # (44..46) @@ -64,18 +63,16 @@ Tree: - (open_paren꞉ OpenParen): "(" # (50..51) - (arguments꞉ YulArguments): # "a, b" (51..55) - (item꞉ YulExpression) ► (variant꞉ YulPath): # "a" (51..52) - - (item꞉ YulPathComponent) ► (variant꞉ YulIdentifier): "a" # (51..52) + - (item꞉ YulIdentifier): "a" # (51..52) - (separator꞉ Comma): "," # (52..53) - (item꞉ YulExpression) ► (variant꞉ YulPath): # " b" (53..55) - - (item꞉ YulPathComponent): # " b" (53..55) - - (leading_trivia꞉ Whitespace): " " # (53..54) - - (variant꞉ YulIdentifier): "b" # (54..55) + - (leading_trivia꞉ Whitespace): " " # (53..54) + - (item꞉ YulIdentifier): "b" # (54..55) - (close_paren꞉ CloseParen): ")" # (55..56) - (trailing_trivia꞉ EndOfLine): "\n" # (56..57) - (item꞉ YulStatement) ► (variant꞉ YulExpression) ► (variant꞉ YulPath): # "\t\tresult" (57..65) - - (item꞉ YulPathComponent): # "\t\tresult" (57..65) - - (leading_trivia꞉ Whitespace): "\t\t" # (57..59) - - (variant꞉ YulIdentifier): "result" # (59..65) + - (leading_trivia꞉ Whitespace): "\t\t" # (57..59) + - (item꞉ YulIdentifier): "result" # (59..65) - (leading_trivia꞉ Whitespace): " " # (65..66) - (UNRECOGNIZED): ":= [mul(a, b)\n\t" # (66..81) - (close_brace꞉ CloseBrace): "}" # (81..82) diff --git a/crates/solidity/testing/snapshots/cst_output/YulBlock/ignore_unknown_delim/generated/0.8.18-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulBlock/ignore_unknown_delim/generated/0.8.18-failure.yml index fa8bbf6eac..afb05a0f56 100644 --- a/crates/solidity/testing/snapshots/cst_output/YulBlock/ignore_unknown_delim/generated/0.8.18-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/YulBlock/ignore_unknown_delim/generated/0.8.18-failure.yml @@ -51,9 +51,8 @@ Tree: - (item꞉ YulStatement) ► (variant꞉ YulVariableAssignmentStatement): # "\t\tresult := mul(a, b)\n" (35..57) - (variables꞉ YulPaths): # "\t\tresult" (35..43) - (item꞉ YulPath): # "\t\tresult" (35..43) - - (item꞉ YulPathComponent): # "\t\tresult" (35..43) - - (leading_trivia꞉ Whitespace): "\t\t" # (35..37) - - (variant꞉ YulIdentifier): "result" # (37..43) + - (leading_trivia꞉ Whitespace): "\t\t" # (35..37) + - (item꞉ YulIdentifier): "result" # (37..43) - (assignment꞉ YulAssignmentOperator): # " :=" (43..46) - (leading_trivia꞉ Whitespace): " " # (43..44) - (variant꞉ ColonEqual): ":=" # (44..46) @@ -64,18 +63,16 @@ Tree: - (open_paren꞉ OpenParen): "(" # (50..51) - (arguments꞉ YulArguments): # "a, b" (51..55) - (item꞉ YulExpression) ► (variant꞉ YulPath): # "a" (51..52) - - (item꞉ YulPathComponent) ► (variant꞉ YulIdentifier): "a" # (51..52) + - (item꞉ YulIdentifier): "a" # (51..52) - (separator꞉ Comma): "," # (52..53) - (item꞉ YulExpression) ► (variant꞉ YulPath): # " b" (53..55) - - (item꞉ YulPathComponent): # " b" (53..55) - - (leading_trivia꞉ Whitespace): " " # (53..54) - - (variant꞉ YulIdentifier): "b" # (54..55) + - (leading_trivia꞉ Whitespace): " " # (53..54) + - (item꞉ YulIdentifier): "b" # (54..55) - (close_paren꞉ CloseParen): ")" # (55..56) - (trailing_trivia꞉ EndOfLine): "\n" # (56..57) - (item꞉ YulStatement) ► (variant꞉ YulExpression) ► (variant꞉ YulPath): # "\t\tresult" (57..65) - - (item꞉ YulPathComponent): # "\t\tresult" (57..65) - - (leading_trivia꞉ Whitespace): "\t\t" # (57..59) - - (variant꞉ YulIdentifier): "result" # (59..65) + - (leading_trivia꞉ Whitespace): "\t\t" # (57..59) + - (item꞉ YulIdentifier): "result" # (59..65) - (leading_trivia꞉ Whitespace): " " # (65..66) - (UNRECOGNIZED): ":= [mul(a, b)\n\t" # (66..81) - (close_brace꞉ CloseBrace): "}" # (81..82) diff --git a/crates/solidity/testing/snapshots/cst_output/YulBlock/ignore_unknown_delim/generated/0.8.24-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulBlock/ignore_unknown_delim/generated/0.8.24-failure.yml index 0b20aae96e..68e922b9c8 100644 --- a/crates/solidity/testing/snapshots/cst_output/YulBlock/ignore_unknown_delim/generated/0.8.24-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/YulBlock/ignore_unknown_delim/generated/0.8.24-failure.yml @@ -51,9 +51,8 @@ Tree: - (item꞉ YulStatement) ► (variant꞉ YulVariableAssignmentStatement): # "\t\tresult := mul(a, b)\n" (35..57) - (variables꞉ YulPaths): # "\t\tresult" (35..43) - (item꞉ YulPath): # "\t\tresult" (35..43) - - (item꞉ YulPathComponent): # "\t\tresult" (35..43) - - (leading_trivia꞉ Whitespace): "\t\t" # (35..37) - - (variant꞉ YulIdentifier): "result" # (37..43) + - (leading_trivia꞉ Whitespace): "\t\t" # (35..37) + - (item꞉ YulIdentifier): "result" # (37..43) - (assignment꞉ YulAssignmentOperator): # " :=" (43..46) - (leading_trivia꞉ Whitespace): " " # (43..44) - (variant꞉ ColonEqual): ":=" # (44..46) @@ -64,18 +63,16 @@ Tree: - (open_paren꞉ OpenParen): "(" # (50..51) - (arguments꞉ YulArguments): # "a, b" (51..55) - (item꞉ YulExpression) ► (variant꞉ YulPath): # "a" (51..52) - - (item꞉ YulPathComponent) ► (variant꞉ YulIdentifier): "a" # (51..52) + - (item꞉ YulIdentifier): "a" # (51..52) - (separator꞉ Comma): "," # (52..53) - (item꞉ YulExpression) ► (variant꞉ YulPath): # " b" (53..55) - - (item꞉ YulPathComponent): # " b" (53..55) - - (leading_trivia꞉ Whitespace): " " # (53..54) - - (variant꞉ YulIdentifier): "b" # (54..55) + - (leading_trivia꞉ Whitespace): " " # (53..54) + - (item꞉ YulIdentifier): "b" # (54..55) - (close_paren꞉ CloseParen): ")" # (55..56) - (trailing_trivia꞉ EndOfLine): "\n" # (56..57) - (item꞉ YulStatement) ► (variant꞉ YulExpression) ► (variant꞉ YulPath): # "\t\tresult" (57..65) - - (item꞉ YulPathComponent): # "\t\tresult" (57..65) - - (leading_trivia꞉ Whitespace): "\t\t" # (57..59) - - (variant꞉ YulIdentifier): "result" # (59..65) + - (leading_trivia꞉ Whitespace): "\t\t" # (57..59) + - (item꞉ YulIdentifier): "result" # (59..65) - (leading_trivia꞉ Whitespace): " " # (65..66) - (UNRECOGNIZED): ":= [mul(a, b)\n\t" # (66..81) - (close_brace꞉ CloseBrace): "}" # (81..82) diff --git a/crates/solidity/testing/snapshots/cst_output/YulBlock/ignore_unknown_delim/generated/0.8.7-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulBlock/ignore_unknown_delim/generated/0.8.7-failure.yml index 43f766b12c..29c040bd1f 100644 --- a/crates/solidity/testing/snapshots/cst_output/YulBlock/ignore_unknown_delim/generated/0.8.7-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/YulBlock/ignore_unknown_delim/generated/0.8.7-failure.yml @@ -51,9 +51,8 @@ Tree: - (item꞉ YulStatement) ► (variant꞉ YulVariableAssignmentStatement): # "\t\tresult := mul(a, b)\n" (35..57) - (variables꞉ YulPaths): # "\t\tresult" (35..43) - (item꞉ YulPath): # "\t\tresult" (35..43) - - (item꞉ YulPathComponent): # "\t\tresult" (35..43) - - (leading_trivia꞉ Whitespace): "\t\t" # (35..37) - - (variant꞉ YulIdentifier): "result" # (37..43) + - (leading_trivia꞉ Whitespace): "\t\t" # (35..37) + - (item꞉ YulIdentifier): "result" # (37..43) - (assignment꞉ YulAssignmentOperator): # " :=" (43..46) - (leading_trivia꞉ Whitespace): " " # (43..44) - (variant꞉ ColonEqual): ":=" # (44..46) @@ -64,18 +63,16 @@ Tree: - (open_paren꞉ OpenParen): "(" # (50..51) - (arguments꞉ YulArguments): # "a, b" (51..55) - (item꞉ YulExpression) ► (variant꞉ YulPath): # "a" (51..52) - - (item꞉ YulPathComponent) ► (variant꞉ YulIdentifier): "a" # (51..52) + - (item꞉ YulIdentifier): "a" # (51..52) - (separator꞉ Comma): "," # (52..53) - (item꞉ YulExpression) ► (variant꞉ YulPath): # " b" (53..55) - - (item꞉ YulPathComponent): # " b" (53..55) - - (leading_trivia꞉ Whitespace): " " # (53..54) - - (variant꞉ YulIdentifier): "b" # (54..55) + - (leading_trivia꞉ Whitespace): " " # (53..54) + - (item꞉ YulIdentifier): "b" # (54..55) - (close_paren꞉ CloseParen): ")" # (55..56) - (trailing_trivia꞉ EndOfLine): "\n" # (56..57) - (item꞉ YulStatement) ► (variant꞉ YulExpression) ► (variant꞉ YulPath): # "\t\tresult" (57..65) - - (item꞉ YulPathComponent): # "\t\tresult" (57..65) - - (leading_trivia꞉ Whitespace): "\t\t" # (57..59) - - (variant꞉ YulIdentifier): "result" # (59..65) + - (leading_trivia꞉ Whitespace): "\t\t" # (57..59) + - (item꞉ YulIdentifier): "result" # (59..65) - (leading_trivia꞉ Whitespace): " " # (65..66) - (UNRECOGNIZED): ":= [mul(a, b)\n\t" # (66..81) - (close_brace꞉ CloseBrace): "}" # (81..82) diff --git a/crates/solidity/testing/snapshots/cst_output/YulExpression/function_call/generated/0.4.11-success.yml b/crates/solidity/testing/snapshots/cst_output/YulExpression/function_call/generated/0.4.11-success.yml index fdff0880d1..7900989b92 100644 --- a/crates/solidity/testing/snapshots/cst_output/YulExpression/function_call/generated/0.4.11-success.yml +++ b/crates/solidity/testing/snapshots/cst_output/YulExpression/function_call/generated/0.4.11-success.yml @@ -8,7 +8,7 @@ Errors: [] Tree: - (YulExpression) ► (variant꞉ YulFunctionCallExpression): # "foo(1)" (0..6) - (operand꞉ YulExpression) ► (variant꞉ YulPath): # "foo" (0..3) - - (item꞉ YulPathComponent) ► (variant꞉ YulIdentifier): "foo" # (0..3) + - (item꞉ YulIdentifier): "foo" # (0..3) - (open_paren꞉ OpenParen): "(" # (3..4) - (arguments꞉ YulArguments): # "1" (4..5) - (item꞉ YulExpression) ► (variant꞉ YulLiteral) ► (variant꞉ YulDecimalLiteral): "1" # (4..5) diff --git a/crates/solidity/testing/snapshots/cst_output/YulExpression/identifier_path/generated/0.4.11-success.yml b/crates/solidity/testing/snapshots/cst_output/YulExpression/identifier_path/generated/0.4.11-success.yml index fb96a064c9..f692fd5865 100644 --- a/crates/solidity/testing/snapshots/cst_output/YulExpression/identifier_path/generated/0.4.11-success.yml +++ b/crates/solidity/testing/snapshots/cst_output/YulExpression/identifier_path/generated/0.4.11-success.yml @@ -7,10 +7,9 @@ Errors: [] Tree: - (YulExpression) ► (variant꞉ YulPath): # "foo . bar\n" (0..10) - - (item꞉ YulPathComponent) ► (variant꞉ YulIdentifier): "foo" # (0..3) + - (item꞉ YulIdentifier): "foo" # (0..3) - (leading_trivia꞉ Whitespace): " " # (3..4) - (separator꞉ Period): "." # (4..5) - - (item꞉ YulPathComponent): # " bar\n" (5..10) - - (leading_trivia꞉ Whitespace): " " # (5..6) - - (variant꞉ YulIdentifier): "bar" # (6..9) - - (trailing_trivia꞉ EndOfLine): "\n" # (9..10) + - (leading_trivia꞉ Whitespace): " " # (5..6) + - (item꞉ YulIdentifier): "bar" # (6..9) + - (trailing_trivia꞉ EndOfLine): "\n" # (9..10) diff --git a/crates/solidity/testing/snapshots/cst_output/YulExpression/identifier_with_dot/generated/0.4.11-success.yml b/crates/solidity/testing/snapshots/cst_output/YulExpression/identifier_with_dot/generated/0.4.11-success.yml index d6a070da1f..a522e4daa5 100644 --- a/crates/solidity/testing/snapshots/cst_output/YulExpression/identifier_with_dot/generated/0.4.11-success.yml +++ b/crates/solidity/testing/snapshots/cst_output/YulExpression/identifier_with_dot/generated/0.4.11-success.yml @@ -8,11 +8,9 @@ Errors: [] Tree: - (YulExpression) ► (variant꞉ YulPath): # "// identifiers with dots were allowed specifically..." (0..90) - - (item꞉ YulPathComponent): # "// identifiers with dots were allowed specifically..." (0..85) - - (leading_trivia꞉ SingleLineComment): "// identifiers with dots were allowed specifically..." # (0..81) - - (leading_trivia꞉ EndOfLine): "\n" # (81..82) - - (variant꞉ YulIdentifier): "foo" # (82..85) + - (leading_trivia꞉ SingleLineComment): "// identifiers with dots were allowed specifically..." # (0..81) + - (leading_trivia꞉ EndOfLine): "\n" # (81..82) + - (item꞉ YulIdentifier): "foo" # (82..85) - (separator꞉ Period): "." # (85..86) - - (item꞉ YulPathComponent): # "bar\n" (86..90) - - (variant꞉ YulIdentifier): "bar" # (86..89) - - (trailing_trivia꞉ EndOfLine): "\n" # (89..90) + - (item꞉ YulIdentifier): "bar" # (86..89) + - (trailing_trivia꞉ EndOfLine): "\n" # (89..90) diff --git a/crates/solidity/testing/snapshots/cst_output/YulExpression/identifier_with_dot/generated/0.5.8-success.yml b/crates/solidity/testing/snapshots/cst_output/YulExpression/identifier_with_dot/generated/0.5.8-success.yml index 58ee19fcfa..b874b9d782 100644 --- a/crates/solidity/testing/snapshots/cst_output/YulExpression/identifier_with_dot/generated/0.5.8-success.yml +++ b/crates/solidity/testing/snapshots/cst_output/YulExpression/identifier_with_dot/generated/0.5.8-success.yml @@ -8,8 +8,7 @@ Errors: [] Tree: - (YulExpression) ► (variant꞉ YulPath): # "// identifiers with dots were allowed specifically..." (0..90) - - (item꞉ YulPathComponent): # "// identifiers with dots were allowed specifically..." (0..90) - - (leading_trivia꞉ SingleLineComment): "// identifiers with dots were allowed specifically..." # (0..81) - - (leading_trivia꞉ EndOfLine): "\n" # (81..82) - - (variant꞉ YulIdentifier): "foo.bar" # (82..89) - - (trailing_trivia꞉ EndOfLine): "\n" # (89..90) + - (leading_trivia꞉ SingleLineComment): "// identifiers with dots were allowed specifically..." # (0..81) + - (leading_trivia꞉ EndOfLine): "\n" # (81..82) + - (item꞉ YulIdentifier): "foo.bar" # (82..89) + - (trailing_trivia꞉ EndOfLine): "\n" # (89..90) diff --git a/crates/solidity/testing/snapshots/cst_output/YulExpression/identifier_with_dot/generated/0.7.0-success.yml b/crates/solidity/testing/snapshots/cst_output/YulExpression/identifier_with_dot/generated/0.7.0-success.yml index d6a070da1f..a522e4daa5 100644 --- a/crates/solidity/testing/snapshots/cst_output/YulExpression/identifier_with_dot/generated/0.7.0-success.yml +++ b/crates/solidity/testing/snapshots/cst_output/YulExpression/identifier_with_dot/generated/0.7.0-success.yml @@ -8,11 +8,9 @@ Errors: [] Tree: - (YulExpression) ► (variant꞉ YulPath): # "// identifiers with dots were allowed specifically..." (0..90) - - (item꞉ YulPathComponent): # "// identifiers with dots were allowed specifically..." (0..85) - - (leading_trivia꞉ SingleLineComment): "// identifiers with dots were allowed specifically..." # (0..81) - - (leading_trivia꞉ EndOfLine): "\n" # (81..82) - - (variant꞉ YulIdentifier): "foo" # (82..85) + - (leading_trivia꞉ SingleLineComment): "// identifiers with dots were allowed specifically..." # (0..81) + - (leading_trivia꞉ EndOfLine): "\n" # (81..82) + - (item꞉ YulIdentifier): "foo" # (82..85) - (separator꞉ Period): "." # (85..86) - - (item꞉ YulPathComponent): # "bar\n" (86..90) - - (variant꞉ YulIdentifier): "bar" # (86..89) - - (trailing_trivia꞉ EndOfLine): "\n" # (89..90) + - (item꞉ YulIdentifier): "bar" # (86..89) + - (trailing_trivia꞉ EndOfLine): "\n" # (89..90) diff --git a/crates/solidity/testing/snapshots/cst_output/YulFunctionCallExpression/built_in_basefee/generated/0.4.11-success.yml b/crates/solidity/testing/snapshots/cst_output/YulFunctionCallExpression/built_in_basefee/generated/0.4.11-success.yml index bd022e8ac3..10ee61e34f 100644 --- a/crates/solidity/testing/snapshots/cst_output/YulFunctionCallExpression/built_in_basefee/generated/0.4.11-success.yml +++ b/crates/solidity/testing/snapshots/cst_output/YulFunctionCallExpression/built_in_basefee/generated/0.4.11-success.yml @@ -8,7 +8,7 @@ Errors: [] Tree: - (YulFunctionCallExpression): # "basefee()\n" (0..10) - (operand꞉ YulExpression) ► (variant꞉ YulPath): # "basefee" (0..7) - - (item꞉ YulPathComponent) ► (variant꞉ YulIdentifier): "basefee" # (0..7) + - (item꞉ YulIdentifier): "basefee" # (0..7) - (open_paren꞉ OpenParen): "(" # (7..8) - (arguments꞉ YulArguments): [] # (8..8) - (close_paren꞉ CloseParen): ")" # (8..9) diff --git a/crates/solidity/testing/snapshots/cst_output/YulFunctionCallExpression/built_in_blobbasefee/generated/0.4.11-success.yml b/crates/solidity/testing/snapshots/cst_output/YulFunctionCallExpression/built_in_blobbasefee/generated/0.4.11-success.yml index 435f324a9a..e8516a6cd7 100644 --- a/crates/solidity/testing/snapshots/cst_output/YulFunctionCallExpression/built_in_blobbasefee/generated/0.4.11-success.yml +++ b/crates/solidity/testing/snapshots/cst_output/YulFunctionCallExpression/built_in_blobbasefee/generated/0.4.11-success.yml @@ -8,7 +8,7 @@ Errors: [] Tree: - (YulFunctionCallExpression): # "blobbasefee()\n" (0..14) - (operand꞉ YulExpression) ► (variant꞉ YulPath): # "blobbasefee" (0..11) - - (item꞉ YulPathComponent) ► (variant꞉ YulIdentifier): "blobbasefee" # (0..11) + - (item꞉ YulIdentifier): "blobbasefee" # (0..11) - (open_paren꞉ OpenParen): "(" # (11..12) - (arguments꞉ YulArguments): [] # (12..12) - (close_paren꞉ CloseParen): ")" # (12..13) diff --git a/crates/solidity/testing/snapshots/cst_output/YulFunctionCallExpression/built_in_blobhash/generated/0.4.11-success.yml b/crates/solidity/testing/snapshots/cst_output/YulFunctionCallExpression/built_in_blobhash/generated/0.4.11-success.yml index c7e156a563..b541f67945 100644 --- a/crates/solidity/testing/snapshots/cst_output/YulFunctionCallExpression/built_in_blobhash/generated/0.4.11-success.yml +++ b/crates/solidity/testing/snapshots/cst_output/YulFunctionCallExpression/built_in_blobhash/generated/0.4.11-success.yml @@ -8,7 +8,7 @@ Errors: [] Tree: - (YulFunctionCallExpression): # "blobhash()\n" (0..11) - (operand꞉ YulExpression) ► (variant꞉ YulPath): # "blobhash" (0..8) - - (item꞉ YulPathComponent) ► (variant꞉ YulIdentifier): "blobhash" # (0..8) + - (item꞉ YulIdentifier): "blobhash" # (0..8) - (open_paren꞉ OpenParen): "(" # (8..9) - (arguments꞉ YulArguments): [] # (9..9) - (close_paren꞉ CloseParen): ")" # (9..10) diff --git a/crates/solidity/testing/snapshots/cst_output/YulFunctionCallExpression/built_in_create2/generated/0.4.11-success.yml b/crates/solidity/testing/snapshots/cst_output/YulFunctionCallExpression/built_in_create2/generated/0.4.11-success.yml index 21824553eb..9ca62f0cc0 100644 --- a/crates/solidity/testing/snapshots/cst_output/YulFunctionCallExpression/built_in_create2/generated/0.4.11-success.yml +++ b/crates/solidity/testing/snapshots/cst_output/YulFunctionCallExpression/built_in_create2/generated/0.4.11-success.yml @@ -8,7 +8,7 @@ Errors: [] Tree: - (YulFunctionCallExpression): # "create2()\n" (0..10) - (operand꞉ YulExpression) ► (variant꞉ YulPath): # "create2" (0..7) - - (item꞉ YulPathComponent) ► (variant꞉ YulIdentifier): "create2" # (0..7) + - (item꞉ YulIdentifier): "create2" # (0..7) - (open_paren꞉ OpenParen): "(" # (7..8) - (arguments꞉ YulArguments): [] # (8..8) - (close_paren꞉ CloseParen): ")" # (8..9) diff --git a/crates/solidity/testing/snapshots/cst_output/YulFunctionCallExpression/built_in_extcodehash/generated/0.4.11-success.yml b/crates/solidity/testing/snapshots/cst_output/YulFunctionCallExpression/built_in_extcodehash/generated/0.4.11-success.yml index c484929b82..154692fa21 100644 --- a/crates/solidity/testing/snapshots/cst_output/YulFunctionCallExpression/built_in_extcodehash/generated/0.4.11-success.yml +++ b/crates/solidity/testing/snapshots/cst_output/YulFunctionCallExpression/built_in_extcodehash/generated/0.4.11-success.yml @@ -8,7 +8,7 @@ Errors: [] Tree: - (YulFunctionCallExpression): # "extcodehash()\n" (0..14) - (operand꞉ YulExpression) ► (variant꞉ YulPath): # "extcodehash" (0..11) - - (item꞉ YulPathComponent) ► (variant꞉ YulIdentifier): "extcodehash" # (0..11) + - (item꞉ YulIdentifier): "extcodehash" # (0..11) - (open_paren꞉ OpenParen): "(" # (11..12) - (arguments꞉ YulArguments): [] # (12..12) - (close_paren꞉ CloseParen): ")" # (12..13) diff --git a/crates/solidity/testing/snapshots/cst_output/YulFunctionCallExpression/built_in_keccak256/generated/0.4.11-success.yml b/crates/solidity/testing/snapshots/cst_output/YulFunctionCallExpression/built_in_keccak256/generated/0.4.11-success.yml index 4d2d29a190..a4e38e7b29 100644 --- a/crates/solidity/testing/snapshots/cst_output/YulFunctionCallExpression/built_in_keccak256/generated/0.4.11-success.yml +++ b/crates/solidity/testing/snapshots/cst_output/YulFunctionCallExpression/built_in_keccak256/generated/0.4.11-success.yml @@ -8,7 +8,7 @@ Errors: [] Tree: - (YulFunctionCallExpression): # "keccak256()\n" (0..12) - (operand꞉ YulExpression) ► (variant꞉ YulPath): # "keccak256" (0..9) - - (item꞉ YulPathComponent) ► (variant꞉ YulIdentifier): "keccak256" # (0..9) + - (item꞉ YulIdentifier): "keccak256" # (0..9) - (open_paren꞉ OpenParen): "(" # (9..10) - (arguments꞉ YulArguments): [] # (10..10) - (close_paren꞉ CloseParen): ")" # (10..11) diff --git a/crates/solidity/testing/snapshots/cst_output/YulFunctionCallExpression/built_in_mcopy/generated/0.4.11-success.yml b/crates/solidity/testing/snapshots/cst_output/YulFunctionCallExpression/built_in_mcopy/generated/0.4.11-success.yml index 17dc601e92..b99d54c574 100644 --- a/crates/solidity/testing/snapshots/cst_output/YulFunctionCallExpression/built_in_mcopy/generated/0.4.11-success.yml +++ b/crates/solidity/testing/snapshots/cst_output/YulFunctionCallExpression/built_in_mcopy/generated/0.4.11-success.yml @@ -8,7 +8,7 @@ Errors: [] Tree: - (YulFunctionCallExpression): # "mcopy()\n" (0..8) - (operand꞉ YulExpression) ► (variant꞉ YulPath): # "mcopy" (0..5) - - (item꞉ YulPathComponent) ► (variant꞉ YulIdentifier): "mcopy" # (0..5) + - (item꞉ YulIdentifier): "mcopy" # (0..5) - (open_paren꞉ OpenParen): "(" # (5..6) - (arguments꞉ YulArguments): [] # (6..6) - (close_paren꞉ CloseParen): ")" # (6..7) diff --git a/crates/solidity/testing/snapshots/cst_output/YulFunctionCallExpression/built_in_prevrandao/generated/0.4.11-success.yml b/crates/solidity/testing/snapshots/cst_output/YulFunctionCallExpression/built_in_prevrandao/generated/0.4.11-success.yml index 53cabecb6f..2a4228a9f9 100644 --- a/crates/solidity/testing/snapshots/cst_output/YulFunctionCallExpression/built_in_prevrandao/generated/0.4.11-success.yml +++ b/crates/solidity/testing/snapshots/cst_output/YulFunctionCallExpression/built_in_prevrandao/generated/0.4.11-success.yml @@ -8,7 +8,7 @@ Errors: [] Tree: - (YulFunctionCallExpression): # "prevrandao()\n" (0..13) - (operand꞉ YulExpression) ► (variant꞉ YulPath): # "prevrandao" (0..10) - - (item꞉ YulPathComponent) ► (variant꞉ YulIdentifier): "prevrandao" # (0..10) + - (item꞉ YulIdentifier): "prevrandao" # (0..10) - (open_paren꞉ OpenParen): "(" # (10..11) - (arguments꞉ YulArguments): [] # (11..11) - (close_paren꞉ CloseParen): ")" # (11..12) diff --git a/crates/solidity/testing/snapshots/cst_output/YulFunctionCallExpression/built_in_returndatacopy/generated/0.4.11-success.yml b/crates/solidity/testing/snapshots/cst_output/YulFunctionCallExpression/built_in_returndatacopy/generated/0.4.11-success.yml index 5923ce7f3b..f3a3252d43 100644 --- a/crates/solidity/testing/snapshots/cst_output/YulFunctionCallExpression/built_in_returndatacopy/generated/0.4.11-success.yml +++ b/crates/solidity/testing/snapshots/cst_output/YulFunctionCallExpression/built_in_returndatacopy/generated/0.4.11-success.yml @@ -8,7 +8,7 @@ Errors: [] Tree: - (YulFunctionCallExpression): # "returndatacopy()\n" (0..17) - (operand꞉ YulExpression) ► (variant꞉ YulPath): # "returndatacopy" (0..14) - - (item꞉ YulPathComponent) ► (variant꞉ YulIdentifier): "returndatacopy" # (0..14) + - (item꞉ YulIdentifier): "returndatacopy" # (0..14) - (open_paren꞉ OpenParen): "(" # (14..15) - (arguments꞉ YulArguments): [] # (15..15) - (close_paren꞉ CloseParen): ")" # (15..16) diff --git a/crates/solidity/testing/snapshots/cst_output/YulFunctionCallExpression/built_in_returndatasize/generated/0.4.11-success.yml b/crates/solidity/testing/snapshots/cst_output/YulFunctionCallExpression/built_in_returndatasize/generated/0.4.11-success.yml index 2be5befd9f..430609bde9 100644 --- a/crates/solidity/testing/snapshots/cst_output/YulFunctionCallExpression/built_in_returndatasize/generated/0.4.11-success.yml +++ b/crates/solidity/testing/snapshots/cst_output/YulFunctionCallExpression/built_in_returndatasize/generated/0.4.11-success.yml @@ -8,7 +8,7 @@ Errors: [] Tree: - (YulFunctionCallExpression): # "returndatasize()\n" (0..17) - (operand꞉ YulExpression) ► (variant꞉ YulPath): # "returndatasize" (0..14) - - (item꞉ YulPathComponent) ► (variant꞉ YulIdentifier): "returndatasize" # (0..14) + - (item꞉ YulIdentifier): "returndatasize" # (0..14) - (open_paren꞉ OpenParen): "(" # (14..15) - (arguments꞉ YulArguments): [] # (15..15) - (close_paren꞉ CloseParen): ")" # (15..16) diff --git a/crates/solidity/testing/snapshots/cst_output/YulFunctionCallExpression/built_in_sha3/generated/0.5.0-success.yml b/crates/solidity/testing/snapshots/cst_output/YulFunctionCallExpression/built_in_sha3/generated/0.5.0-success.yml index 82e87c2a28..ec7c6c6499 100644 --- a/crates/solidity/testing/snapshots/cst_output/YulFunctionCallExpression/built_in_sha3/generated/0.5.0-success.yml +++ b/crates/solidity/testing/snapshots/cst_output/YulFunctionCallExpression/built_in_sha3/generated/0.5.0-success.yml @@ -8,7 +8,7 @@ Errors: [] Tree: - (YulFunctionCallExpression): # "sha3()\n" (0..7) - (operand꞉ YulExpression) ► (variant꞉ YulPath): # "sha3" (0..4) - - (item꞉ YulPathComponent) ► (variant꞉ YulIdentifier): "sha3" # (0..4) + - (item꞉ YulIdentifier): "sha3" # (0..4) - (open_paren꞉ OpenParen): "(" # (4..5) - (arguments꞉ YulArguments): [] # (5..5) - (close_paren꞉ CloseParen): ")" # (5..6) diff --git a/crates/solidity/testing/snapshots/cst_output/YulFunctionCallExpression/built_in_staticcall/generated/0.4.11-success.yml b/crates/solidity/testing/snapshots/cst_output/YulFunctionCallExpression/built_in_staticcall/generated/0.4.11-success.yml index 3f5bcebb5f..ec8daa426d 100644 --- a/crates/solidity/testing/snapshots/cst_output/YulFunctionCallExpression/built_in_staticcall/generated/0.4.11-success.yml +++ b/crates/solidity/testing/snapshots/cst_output/YulFunctionCallExpression/built_in_staticcall/generated/0.4.11-success.yml @@ -8,7 +8,7 @@ Errors: [] Tree: - (YulFunctionCallExpression): # "staticcall()\n" (0..13) - (operand꞉ YulExpression) ► (variant꞉ YulPath): # "staticcall" (0..10) - - (item꞉ YulPathComponent) ► (variant꞉ YulIdentifier): "staticcall" # (0..10) + - (item꞉ YulIdentifier): "staticcall" # (0..10) - (open_paren꞉ OpenParen): "(" # (10..11) - (arguments꞉ YulArguments): [] # (11..11) - (close_paren꞉ CloseParen): ")" # (11..12) diff --git a/crates/solidity/testing/snapshots/cst_output/YulFunctionCallExpression/built_in_suicide/generated/0.5.0-success.yml b/crates/solidity/testing/snapshots/cst_output/YulFunctionCallExpression/built_in_suicide/generated/0.5.0-success.yml index ce86300fed..02f246c76b 100644 --- a/crates/solidity/testing/snapshots/cst_output/YulFunctionCallExpression/built_in_suicide/generated/0.5.0-success.yml +++ b/crates/solidity/testing/snapshots/cst_output/YulFunctionCallExpression/built_in_suicide/generated/0.5.0-success.yml @@ -8,7 +8,7 @@ Errors: [] Tree: - (YulFunctionCallExpression): # "suicide()\n" (0..10) - (operand꞉ YulExpression) ► (variant꞉ YulPath): # "suicide" (0..7) - - (item꞉ YulPathComponent) ► (variant꞉ YulIdentifier): "suicide" # (0..7) + - (item꞉ YulIdentifier): "suicide" # (0..7) - (open_paren꞉ OpenParen): "(" # (7..8) - (arguments꞉ YulArguments): [] # (8..8) - (close_paren꞉ CloseParen): ")" # (8..9) diff --git a/crates/solidity/testing/snapshots/cst_output/YulFunctionCallExpression/built_in_tload/generated/0.4.11-success.yml b/crates/solidity/testing/snapshots/cst_output/YulFunctionCallExpression/built_in_tload/generated/0.4.11-success.yml index e6c1b01f85..9fbb821880 100644 --- a/crates/solidity/testing/snapshots/cst_output/YulFunctionCallExpression/built_in_tload/generated/0.4.11-success.yml +++ b/crates/solidity/testing/snapshots/cst_output/YulFunctionCallExpression/built_in_tload/generated/0.4.11-success.yml @@ -8,7 +8,7 @@ Errors: [] Tree: - (YulFunctionCallExpression): # "tstore()\n" (0..9) - (operand꞉ YulExpression) ► (variant꞉ YulPath): # "tstore" (0..6) - - (item꞉ YulPathComponent) ► (variant꞉ YulIdentifier): "tstore" # (0..6) + - (item꞉ YulIdentifier): "tstore" # (0..6) - (open_paren꞉ OpenParen): "(" # (6..7) - (arguments꞉ YulArguments): [] # (7..7) - (close_paren꞉ CloseParen): ")" # (7..8) diff --git a/crates/solidity/testing/snapshots/cst_output/YulFunctionCallExpression/built_in_tstore/generated/0.4.11-success.yml b/crates/solidity/testing/snapshots/cst_output/YulFunctionCallExpression/built_in_tstore/generated/0.4.11-success.yml index d665928aff..b7a832ab57 100644 --- a/crates/solidity/testing/snapshots/cst_output/YulFunctionCallExpression/built_in_tstore/generated/0.4.11-success.yml +++ b/crates/solidity/testing/snapshots/cst_output/YulFunctionCallExpression/built_in_tstore/generated/0.4.11-success.yml @@ -8,7 +8,7 @@ Errors: [] Tree: - (YulFunctionCallExpression): # "tload()\n" (0..8) - (operand꞉ YulExpression) ► (variant꞉ YulPath): # "tload" (0..5) - - (item꞉ YulPathComponent) ► (variant꞉ YulIdentifier): "tload" # (0..5) + - (item꞉ YulIdentifier): "tload" # (0..5) - (open_paren꞉ OpenParen): "(" # (5..6) - (arguments꞉ YulArguments): [] # (6..6) - (close_paren꞉ CloseParen): ")" # (6..7) diff --git a/crates/solidity/testing/snapshots/cst_output/YulStatements/function_pointer/generated/0.4.11-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulStatements/function_pointer/generated/0.4.11-failure.yml deleted file mode 100644 index 8c5486d36e..0000000000 --- a/crates/solidity/testing/snapshots/cst_output/YulStatements/function_pointer/generated/0.4.11-failure.yml +++ /dev/null @@ -1,38 +0,0 @@ -# This file is generated automatically by infrastructure scripts. Please don't edit by hand. - -Source: > - 1 │ { │ 0..1 - 2 │ // https://github.com/ethereum/solidity/blob/ebdce269005e8f2a6652bad64a000725ff1624fe/docs/assembly.rst#access-to-external-variables-functions-and-libraries │ 2..159 - 3 │ f.address := newAddress │ 160..184 - 4 │ f.selector := newSelector │ 185..211 - 5 │ } │ 212..213 - -Errors: # 1 total - - > - Error: Expected YulIdentifier. - ╭─[crates/solidity/testing/snapshots/cst_output/YulStatements/function_pointer/input.sol:3:4] - │ - 3 │ ╭─▶ f.address := newAddress - 4 │ ├─▶ f.selector := newSelector - │ │ - │ ╰─────────────────────────────────── Error occurred here. - ───╯ - -Tree: - - (YulStatements): # "{\n\t// https://github.com/ethereum/solidity/blob/eb..." (0..214) - - (item꞉ YulStatement) ► (variant꞉ YulBlock): # "{\n\t// https://github.com/ethereum/solidity/blob/eb..." (0..214) - - (open_brace꞉ OpenBrace): "{" # (0..1) - - (trailing_trivia꞉ EndOfLine): "\n" # (1..2) - - (statements꞉ YulStatements): # "\t// https://github.com/ethereum/solidity/blob/ebdc..." (2..163) - - (item꞉ YulStatement) ► (variant꞉ YulVariableAssignmentStatement) ► (variables꞉ YulPaths): # "\t// https://github.com/ethereum/solidity/blob/ebdc..." (2..163) - - (item꞉ YulPath): # "\t// https://github.com/ethereum/solidity/blob/ebdc..." (2..163) - - (item꞉ YulPathComponent): # "\t// https://github.com/ethereum/solidity/blob/ebdc..." (2..162) - - (leading_trivia꞉ Whitespace): "\t" # (2..3) - - (leading_trivia꞉ SingleLineComment): "// https://github.com/ethereum/solidity/blob/ebdce..." # (3..159) - - (leading_trivia꞉ EndOfLine): "\n" # (159..160) - - (leading_trivia꞉ Whitespace): "\t" # (160..161) - - (variant꞉ YulIdentifier): "f" # (161..162) - - (separator꞉ Period): "." # (162..163) - - (UNRECOGNIZED): "address := newAddress\n\tf.selector := newSelector\n" # (163..212) - - (close_brace꞉ CloseBrace): "}" # (212..213) - - (trailing_trivia꞉ EndOfLine): "\n" # (213..214) diff --git a/crates/solidity/testing/snapshots/cst_output/YulStatements/function_pointer/generated/0.8.10-success.yml b/crates/solidity/testing/snapshots/cst_output/YulStatements/function_pointer/generated/0.4.11-success.yml similarity index 64% rename from crates/solidity/testing/snapshots/cst_output/YulStatements/function_pointer/generated/0.8.10-success.yml rename to crates/solidity/testing/snapshots/cst_output/YulStatements/function_pointer/generated/0.4.11-success.yml index 9ee50c3fb0..a5b562df1b 100644 --- a/crates/solidity/testing/snapshots/cst_output/YulStatements/function_pointer/generated/0.8.10-success.yml +++ b/crates/solidity/testing/snapshots/cst_output/YulStatements/function_pointer/generated/0.4.11-success.yml @@ -18,37 +18,33 @@ Tree: - (item꞉ YulStatement) ► (variant꞉ YulVariableAssignmentStatement): # "\t// https://github.com/ethereum/solidity/blob/ebdc..." (2..185) - (variables꞉ YulPaths): # "\t// https://github.com/ethereum/solidity/blob/ebdc..." (2..170) - (item꞉ YulPath): # "\t// https://github.com/ethereum/solidity/blob/ebdc..." (2..170) - - (item꞉ YulPathComponent): # "\t// https://github.com/ethereum/solidity/blob/ebdc..." (2..162) - - (leading_trivia꞉ Whitespace): "\t" # (2..3) - - (leading_trivia꞉ SingleLineComment): "// https://github.com/ethereum/solidity/blob/ebdce..." # (3..159) - - (leading_trivia꞉ EndOfLine): "\n" # (159..160) - - (leading_trivia꞉ Whitespace): "\t" # (160..161) - - (variant꞉ YulIdentifier): "f" # (161..162) + - (leading_trivia꞉ Whitespace): "\t" # (2..3) + - (leading_trivia꞉ SingleLineComment): "// https://github.com/ethereum/solidity/blob/ebdce..." # (3..159) + - (leading_trivia꞉ EndOfLine): "\n" # (159..160) + - (leading_trivia꞉ Whitespace): "\t" # (160..161) + - (item꞉ YulIdentifier): "f" # (161..162) - (separator꞉ Period): "." # (162..163) - - (item꞉ YulPathComponent) ► (variant꞉ YulAddressKeyword): "address" # (163..170) + - (item꞉ YulIdentifier): "address" # (163..170) - (assignment꞉ YulAssignmentOperator): # " :=" (170..173) - (leading_trivia꞉ Whitespace): " " # (170..171) - (variant꞉ ColonEqual): ":=" # (171..173) - (expression꞉ YulExpression) ► (variant꞉ YulPath): # " newAddress\n" (173..185) - - (item꞉ YulPathComponent): # " newAddress\n" (173..185) - - (leading_trivia꞉ Whitespace): " " # (173..174) - - (variant꞉ YulIdentifier): "newAddress" # (174..184) - - (trailing_trivia꞉ EndOfLine): "\n" # (184..185) + - (leading_trivia꞉ Whitespace): " " # (173..174) + - (item꞉ YulIdentifier): "newAddress" # (174..184) + - (trailing_trivia꞉ EndOfLine): "\n" # (184..185) - (item꞉ YulStatement) ► (variant꞉ YulVariableAssignmentStatement): # "\tf.selector := newSelector\n" (185..212) - (variables꞉ YulPaths): # "\tf.selector" (185..196) - (item꞉ YulPath): # "\tf.selector" (185..196) - - (item꞉ YulPathComponent): # "\tf" (185..187) - - (leading_trivia꞉ Whitespace): "\t" # (185..186) - - (variant꞉ YulIdentifier): "f" # (186..187) + - (leading_trivia꞉ Whitespace): "\t" # (185..186) + - (item꞉ YulIdentifier): "f" # (186..187) - (separator꞉ Period): "." # (187..188) - - (item꞉ YulPathComponent) ► (variant꞉ YulIdentifier): "selector" # (188..196) + - (item꞉ YulIdentifier): "selector" # (188..196) - (assignment꞉ YulAssignmentOperator): # " :=" (196..199) - (leading_trivia꞉ Whitespace): " " # (196..197) - (variant꞉ ColonEqual): ":=" # (197..199) - (expression꞉ YulExpression) ► (variant꞉ YulPath): # " newSelector\n" (199..212) - - (item꞉ YulPathComponent): # " newSelector\n" (199..212) - - (leading_trivia꞉ Whitespace): " " # (199..200) - - (variant꞉ YulIdentifier): "newSelector" # (200..211) - - (trailing_trivia꞉ EndOfLine): "\n" # (211..212) + - (leading_trivia꞉ Whitespace): " " # (199..200) + - (item꞉ YulIdentifier): "newSelector" # (200..211) + - (trailing_trivia꞉ EndOfLine): "\n" # (211..212) - (close_brace꞉ CloseBrace): "}" # (212..213) - (trailing_trivia꞉ EndOfLine): "\n" # (213..214) diff --git a/crates/solidity/testing/snapshots/cst_output/YulStatements/function_pointer/generated/0.5.8-success.yml b/crates/solidity/testing/snapshots/cst_output/YulStatements/function_pointer/generated/0.5.8-success.yml index 8c053dde71..c42aeffc74 100644 --- a/crates/solidity/testing/snapshots/cst_output/YulStatements/function_pointer/generated/0.5.8-success.yml +++ b/crates/solidity/testing/snapshots/cst_output/YulStatements/function_pointer/generated/0.5.8-success.yml @@ -18,33 +18,29 @@ Tree: - (item꞉ YulStatement) ► (variant꞉ YulVariableAssignmentStatement): # "\t// https://github.com/ethereum/solidity/blob/ebdc..." (2..185) - (variables꞉ YulPaths): # "\t// https://github.com/ethereum/solidity/blob/ebdc..." (2..170) - (item꞉ YulPath): # "\t// https://github.com/ethereum/solidity/blob/ebdc..." (2..170) - - (item꞉ YulPathComponent): # "\t// https://github.com/ethereum/solidity/blob/ebdc..." (2..170) - - (leading_trivia꞉ Whitespace): "\t" # (2..3) - - (leading_trivia꞉ SingleLineComment): "// https://github.com/ethereum/solidity/blob/ebdce..." # (3..159) - - (leading_trivia꞉ EndOfLine): "\n" # (159..160) - - (leading_trivia꞉ Whitespace): "\t" # (160..161) - - (variant꞉ YulIdentifier): "f.address" # (161..170) + - (leading_trivia꞉ Whitespace): "\t" # (2..3) + - (leading_trivia꞉ SingleLineComment): "// https://github.com/ethereum/solidity/blob/ebdce..." # (3..159) + - (leading_trivia꞉ EndOfLine): "\n" # (159..160) + - (leading_trivia꞉ Whitespace): "\t" # (160..161) + - (item꞉ YulIdentifier): "f.address" # (161..170) - (assignment꞉ YulAssignmentOperator): # " :=" (170..173) - (leading_trivia꞉ Whitespace): " " # (170..171) - (variant꞉ ColonEqual): ":=" # (171..173) - (expression꞉ YulExpression) ► (variant꞉ YulPath): # " newAddress\n" (173..185) - - (item꞉ YulPathComponent): # " newAddress\n" (173..185) - - (leading_trivia꞉ Whitespace): " " # (173..174) - - (variant꞉ YulIdentifier): "newAddress" # (174..184) - - (trailing_trivia꞉ EndOfLine): "\n" # (184..185) + - (leading_trivia꞉ Whitespace): " " # (173..174) + - (item꞉ YulIdentifier): "newAddress" # (174..184) + - (trailing_trivia꞉ EndOfLine): "\n" # (184..185) - (item꞉ YulStatement) ► (variant꞉ YulVariableAssignmentStatement): # "\tf.selector := newSelector\n" (185..212) - (variables꞉ YulPaths): # "\tf.selector" (185..196) - (item꞉ YulPath): # "\tf.selector" (185..196) - - (item꞉ YulPathComponent): # "\tf.selector" (185..196) - - (leading_trivia꞉ Whitespace): "\t" # (185..186) - - (variant꞉ YulIdentifier): "f.selector" # (186..196) + - (leading_trivia꞉ Whitespace): "\t" # (185..186) + - (item꞉ YulIdentifier): "f.selector" # (186..196) - (assignment꞉ YulAssignmentOperator): # " :=" (196..199) - (leading_trivia꞉ Whitespace): " " # (196..197) - (variant꞉ ColonEqual): ":=" # (197..199) - (expression꞉ YulExpression) ► (variant꞉ YulPath): # " newSelector\n" (199..212) - - (item꞉ YulPathComponent): # " newSelector\n" (199..212) - - (leading_trivia꞉ Whitespace): " " # (199..200) - - (variant꞉ YulIdentifier): "newSelector" # (200..211) - - (trailing_trivia꞉ EndOfLine): "\n" # (211..212) + - (leading_trivia꞉ Whitespace): " " # (199..200) + - (item꞉ YulIdentifier): "newSelector" # (200..211) + - (trailing_trivia꞉ EndOfLine): "\n" # (211..212) - (close_brace꞉ CloseBrace): "}" # (212..213) - (trailing_trivia꞉ EndOfLine): "\n" # (213..214) diff --git a/crates/solidity/testing/snapshots/cst_output/YulStatements/function_pointer/generated/0.7.0-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulStatements/function_pointer/generated/0.7.0-failure.yml deleted file mode 100644 index 8c5486d36e..0000000000 --- a/crates/solidity/testing/snapshots/cst_output/YulStatements/function_pointer/generated/0.7.0-failure.yml +++ /dev/null @@ -1,38 +0,0 @@ -# This file is generated automatically by infrastructure scripts. Please don't edit by hand. - -Source: > - 1 │ { │ 0..1 - 2 │ // https://github.com/ethereum/solidity/blob/ebdce269005e8f2a6652bad64a000725ff1624fe/docs/assembly.rst#access-to-external-variables-functions-and-libraries │ 2..159 - 3 │ f.address := newAddress │ 160..184 - 4 │ f.selector := newSelector │ 185..211 - 5 │ } │ 212..213 - -Errors: # 1 total - - > - Error: Expected YulIdentifier. - ╭─[crates/solidity/testing/snapshots/cst_output/YulStatements/function_pointer/input.sol:3:4] - │ - 3 │ ╭─▶ f.address := newAddress - 4 │ ├─▶ f.selector := newSelector - │ │ - │ ╰─────────────────────────────────── Error occurred here. - ───╯ - -Tree: - - (YulStatements): # "{\n\t// https://github.com/ethereum/solidity/blob/eb..." (0..214) - - (item꞉ YulStatement) ► (variant꞉ YulBlock): # "{\n\t// https://github.com/ethereum/solidity/blob/eb..." (0..214) - - (open_brace꞉ OpenBrace): "{" # (0..1) - - (trailing_trivia꞉ EndOfLine): "\n" # (1..2) - - (statements꞉ YulStatements): # "\t// https://github.com/ethereum/solidity/blob/ebdc..." (2..163) - - (item꞉ YulStatement) ► (variant꞉ YulVariableAssignmentStatement) ► (variables꞉ YulPaths): # "\t// https://github.com/ethereum/solidity/blob/ebdc..." (2..163) - - (item꞉ YulPath): # "\t// https://github.com/ethereum/solidity/blob/ebdc..." (2..163) - - (item꞉ YulPathComponent): # "\t// https://github.com/ethereum/solidity/blob/ebdc..." (2..162) - - (leading_trivia꞉ Whitespace): "\t" # (2..3) - - (leading_trivia꞉ SingleLineComment): "// https://github.com/ethereum/solidity/blob/ebdce..." # (3..159) - - (leading_trivia꞉ EndOfLine): "\n" # (159..160) - - (leading_trivia꞉ Whitespace): "\t" # (160..161) - - (variant꞉ YulIdentifier): "f" # (161..162) - - (separator꞉ Period): "." # (162..163) - - (UNRECOGNIZED): "address := newAddress\n\tf.selector := newSelector\n" # (163..212) - - (close_brace꞉ CloseBrace): "}" # (212..213) - - (trailing_trivia꞉ EndOfLine): "\n" # (213..214) diff --git a/crates/solidity/testing/snapshots/cst_output/YulStatements/function_pointer/generated/0.7.0-success.yml b/crates/solidity/testing/snapshots/cst_output/YulStatements/function_pointer/generated/0.7.0-success.yml new file mode 100644 index 0000000000..a5b562df1b --- /dev/null +++ b/crates/solidity/testing/snapshots/cst_output/YulStatements/function_pointer/generated/0.7.0-success.yml @@ -0,0 +1,50 @@ +# This file is generated automatically by infrastructure scripts. Please don't edit by hand. + +Source: > + 1 │ { │ 0..1 + 2 │ // https://github.com/ethereum/solidity/blob/ebdce269005e8f2a6652bad64a000725ff1624fe/docs/assembly.rst#access-to-external-variables-functions-and-libraries │ 2..159 + 3 │ f.address := newAddress │ 160..184 + 4 │ f.selector := newSelector │ 185..211 + 5 │ } │ 212..213 + +Errors: [] + +Tree: + - (YulStatements): # "{\n\t// https://github.com/ethereum/solidity/blob/eb..." (0..214) + - (item꞉ YulStatement) ► (variant꞉ YulBlock): # "{\n\t// https://github.com/ethereum/solidity/blob/eb..." (0..214) + - (open_brace꞉ OpenBrace): "{" # (0..1) + - (trailing_trivia꞉ EndOfLine): "\n" # (1..2) + - (statements꞉ YulStatements): # "\t// https://github.com/ethereum/solidity/blob/ebdc..." (2..212) + - (item꞉ YulStatement) ► (variant꞉ YulVariableAssignmentStatement): # "\t// https://github.com/ethereum/solidity/blob/ebdc..." (2..185) + - (variables꞉ YulPaths): # "\t// https://github.com/ethereum/solidity/blob/ebdc..." (2..170) + - (item꞉ YulPath): # "\t// https://github.com/ethereum/solidity/blob/ebdc..." (2..170) + - (leading_trivia꞉ Whitespace): "\t" # (2..3) + - (leading_trivia꞉ SingleLineComment): "// https://github.com/ethereum/solidity/blob/ebdce..." # (3..159) + - (leading_trivia꞉ EndOfLine): "\n" # (159..160) + - (leading_trivia꞉ Whitespace): "\t" # (160..161) + - (item꞉ YulIdentifier): "f" # (161..162) + - (separator꞉ Period): "." # (162..163) + - (item꞉ YulIdentifier): "address" # (163..170) + - (assignment꞉ YulAssignmentOperator): # " :=" (170..173) + - (leading_trivia꞉ Whitespace): " " # (170..171) + - (variant꞉ ColonEqual): ":=" # (171..173) + - (expression꞉ YulExpression) ► (variant꞉ YulPath): # " newAddress\n" (173..185) + - (leading_trivia꞉ Whitespace): " " # (173..174) + - (item꞉ YulIdentifier): "newAddress" # (174..184) + - (trailing_trivia꞉ EndOfLine): "\n" # (184..185) + - (item꞉ YulStatement) ► (variant꞉ YulVariableAssignmentStatement): # "\tf.selector := newSelector\n" (185..212) + - (variables꞉ YulPaths): # "\tf.selector" (185..196) + - (item꞉ YulPath): # "\tf.selector" (185..196) + - (leading_trivia꞉ Whitespace): "\t" # (185..186) + - (item꞉ YulIdentifier): "f" # (186..187) + - (separator꞉ Period): "." # (187..188) + - (item꞉ YulIdentifier): "selector" # (188..196) + - (assignment꞉ YulAssignmentOperator): # " :=" (196..199) + - (leading_trivia꞉ Whitespace): " " # (196..197) + - (variant꞉ ColonEqual): ":=" # (197..199) + - (expression꞉ YulExpression) ► (variant꞉ YulPath): # " newSelector\n" (199..212) + - (leading_trivia꞉ Whitespace): " " # (199..200) + - (item꞉ YulIdentifier): "newSelector" # (200..211) + - (trailing_trivia꞉ EndOfLine): "\n" # (211..212) + - (close_brace꞉ CloseBrace): "}" # (212..213) + - (trailing_trivia꞉ EndOfLine): "\n" # (213..214) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/colon_equal_separated/generated/0.4.11-success.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/colon_equal_separated/generated/0.4.11-success.yml index 3c61b84dc9..3749675bbf 100644 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/colon_equal_separated/generated/0.4.11-success.yml +++ b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/colon_equal_separated/generated/0.4.11-success.yml @@ -10,10 +10,9 @@ Tree: - (YulVariableAssignmentStatement): # '// ColonEqual was two separate tokens before "0.5....' (0..64) - (variables꞉ YulPaths): # '// ColonEqual was two separate tokens before "0.5....' (0..57) - (item꞉ YulPath): # '// ColonEqual was two separate tokens before "0.5....' (0..57) - - (item꞉ YulPathComponent): # '// ColonEqual was two separate tokens before "0.5....' (0..57) - - (leading_trivia꞉ SingleLineComment): '// ColonEqual was two separate tokens before "0.5....' # (0..53) - - (leading_trivia꞉ EndOfLine): "\n" # (53..54) - - (variant꞉ YulIdentifier): "foo" # (54..57) + - (leading_trivia꞉ SingleLineComment): '// ColonEqual was two separate tokens before "0.5....' # (0..53) + - (leading_trivia꞉ EndOfLine): "\n" # (53..54) + - (item꞉ YulIdentifier): "foo" # (54..57) - (assignment꞉ YulAssignmentOperator) ► (variant꞉ YulColonAndEqual): # " : =" (57..61) - (leading_trivia꞉ Whitespace): " " # (57..58) - (colon꞉ Colon): ":" # (58..59) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/colon_equal_separated/generated/0.5.5-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/colon_equal_separated/generated/0.5.5-failure.yml index a7c6e1231a..57475b9531 100644 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/colon_equal_separated/generated/0.5.5-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/colon_equal_separated/generated/0.5.5-failure.yml @@ -18,8 +18,7 @@ Tree: - (YulVariableAssignmentStatement): # '// ColonEqual was two separate tokens before "0.5....' (0..64) - (variables꞉ YulPaths): # '// ColonEqual was two separate tokens before "0.5....' (0..57) - (item꞉ YulPath): # '// ColonEqual was two separate tokens before "0.5....' (0..57) - - (item꞉ YulPathComponent): # '// ColonEqual was two separate tokens before "0.5....' (0..57) - - (leading_trivia꞉ SingleLineComment): '// ColonEqual was two separate tokens before "0.5....' # (0..53) - - (leading_trivia꞉ EndOfLine): "\n" # (53..54) - - (variant꞉ YulIdentifier): "foo" # (54..57) + - (leading_trivia꞉ SingleLineComment): '// ColonEqual was two separate tokens before "0.5....' # (0..53) + - (leading_trivia꞉ EndOfLine): "\n" # (53..54) + - (item꞉ YulIdentifier): "foo" # (54..57) - (UNRECOGNIZED): " : = 0\n" # (57..64) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_add/generated/0.8.10-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_add/generated/0.8.10-failure.yml deleted file mode 100644 index 5fe4457113..0000000000 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_add/generated/0.8.10-failure.yml +++ /dev/null @@ -1,17 +0,0 @@ -# This file is generated automatically by infrastructure scripts. Please don't edit by hand. - -Source: > - 1 │ add := 0 │ 0..8 - -Errors: # 1 total - - > - Error: Expected YulAddressKeyword or YulIdentifier. - ╭─[crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_add/input.sol:1:1] - │ - 1 │ add := 0 - │ ────┬──── - │ ╰────── Error occurred here. - ───╯ - -Tree: - - (UNRECOGNIZED): "add := 0\n" # (0..9) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_addmod/generated/0.8.10-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_addmod/generated/0.8.10-failure.yml deleted file mode 100644 index 8731681758..0000000000 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_addmod/generated/0.8.10-failure.yml +++ /dev/null @@ -1,17 +0,0 @@ -# This file is generated automatically by infrastructure scripts. Please don't edit by hand. - -Source: > - 1 │ addmod := 0 │ 0..11 - -Errors: # 1 total - - > - Error: Expected YulAddressKeyword or YulIdentifier. - ╭─[crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_addmod/input.sol:1:1] - │ - 1 │ addmod := 0 - │ ──────┬───── - │ ╰─────── Error occurred here. - ───╯ - -Tree: - - (UNRECOGNIZED): "addmod := 0\n" # (0..12) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_address/generated/0.4.11-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_address/generated/0.4.11-failure.yml deleted file mode 100644 index 36aa3c4073..0000000000 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_address/generated/0.4.11-failure.yml +++ /dev/null @@ -1,17 +0,0 @@ -# This file is generated automatically by infrastructure scripts. Please don't edit by hand. - -Source: > - 1 │ address := 0 │ 0..12 - -Errors: # 1 total - - > - Error: Expected YulIdentifier. - ╭─[crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_address/input.sol:1:1] - │ - 1 │ address := 0 - │ ──────┬────── - │ ╰──────── Error occurred here. - ───╯ - -Tree: - - (UNRECOGNIZED): "address := 0\n" # (0..13) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_address/generated/0.8.10-success.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_address/generated/0.4.11-success.yml similarity index 89% rename from crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_address/generated/0.8.10-success.yml rename to crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_address/generated/0.4.11-success.yml index ea99fa8506..74ab51b016 100644 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_address/generated/0.8.10-success.yml +++ b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_address/generated/0.4.11-success.yml @@ -9,7 +9,7 @@ Tree: - (YulVariableAssignmentStatement): # "address := 0\n" (0..13) - (variables꞉ YulPaths): # "address" (0..7) - (item꞉ YulPath): # "address" (0..7) - - (item꞉ YulPathComponent) ► (variant꞉ YulAddressKeyword): "address" # (0..7) + - (item꞉ YulIdentifier): "address" # (0..7) - (assignment꞉ YulAssignmentOperator): # " :=" (7..10) - (leading_trivia꞉ Whitespace): " " # (7..8) - (variant꞉ ColonEqual): ":=" # (8..10) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_and/generated/0.8.10-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_and/generated/0.8.10-failure.yml deleted file mode 100644 index 82ccc886cd..0000000000 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_and/generated/0.8.10-failure.yml +++ /dev/null @@ -1,17 +0,0 @@ -# This file is generated automatically by infrastructure scripts. Please don't edit by hand. - -Source: > - 1 │ and := 0 │ 0..8 - -Errors: # 1 total - - > - Error: Expected YulAddressKeyword or YulIdentifier. - ╭─[crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_and/input.sol:1:1] - │ - 1 │ and := 0 - │ ────┬──── - │ ╰────── Error occurred here. - ───╯ - -Tree: - - (UNRECOGNIZED): "and := 0\n" # (0..9) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_balance/generated/0.8.10-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_balance/generated/0.8.10-failure.yml deleted file mode 100644 index 4af5fbc17f..0000000000 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_balance/generated/0.8.10-failure.yml +++ /dev/null @@ -1,17 +0,0 @@ -# This file is generated automatically by infrastructure scripts. Please don't edit by hand. - -Source: > - 1 │ balance := 0 │ 0..12 - -Errors: # 1 total - - > - Error: Expected YulAddressKeyword or YulIdentifier. - ╭─[crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_balance/input.sol:1:1] - │ - 1 │ balance := 0 - │ ──────┬────── - │ ╰──────── Error occurred here. - ───╯ - -Tree: - - (UNRECOGNIZED): "balance := 0\n" # (0..13) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_basefee/generated/0.4.11-success.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_basefee/generated/0.4.11-success.yml index 553c4da1f4..d6a2743fdc 100644 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_basefee/generated/0.4.11-success.yml +++ b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_basefee/generated/0.4.11-success.yml @@ -9,7 +9,7 @@ Tree: - (YulVariableAssignmentStatement): # "basefee := 0\n" (0..13) - (variables꞉ YulPaths): # "basefee" (0..7) - (item꞉ YulPath): # "basefee" (0..7) - - (item꞉ YulPathComponent) ► (variant꞉ YulIdentifier): "basefee" # (0..7) + - (item꞉ YulIdentifier): "basefee" # (0..7) - (assignment꞉ YulAssignmentOperator): # " :=" (7..10) - (leading_trivia꞉ Whitespace): " " # (7..8) - (variant꞉ ColonEqual): ":=" # (8..10) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_basefee/generated/0.8.10-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_basefee/generated/0.8.10-failure.yml deleted file mode 100644 index 73fab92240..0000000000 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_basefee/generated/0.8.10-failure.yml +++ /dev/null @@ -1,17 +0,0 @@ -# This file is generated automatically by infrastructure scripts. Please don't edit by hand. - -Source: > - 1 │ basefee := 0 │ 0..12 - -Errors: # 1 total - - > - Error: Expected YulAddressKeyword or YulIdentifier. - ╭─[crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_basefee/input.sol:1:1] - │ - 1 │ basefee := 0 - │ ──────┬────── - │ ╰──────── Error occurred here. - ───╯ - -Tree: - - (UNRECOGNIZED): "basefee := 0\n" # (0..13) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_blockhash/generated/0.8.10-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_blockhash/generated/0.8.10-failure.yml deleted file mode 100644 index 425601cc7f..0000000000 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_blockhash/generated/0.8.10-failure.yml +++ /dev/null @@ -1,17 +0,0 @@ -# This file is generated automatically by infrastructure scripts. Please don't edit by hand. - -Source: > - 1 │ blockhash := 0 │ 0..14 - -Errors: # 1 total - - > - Error: Expected YulAddressKeyword or YulIdentifier. - ╭─[crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_blockhash/input.sol:1:1] - │ - 1 │ blockhash := 0 - │ ───────┬─────── - │ ╰───────── Error occurred here. - ───╯ - -Tree: - - (UNRECOGNIZED): "blockhash := 0\n" # (0..15) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_byte/generated/0.8.10-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_byte/generated/0.8.10-failure.yml deleted file mode 100644 index ed57c70ba5..0000000000 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_byte/generated/0.8.10-failure.yml +++ /dev/null @@ -1,17 +0,0 @@ -# This file is generated automatically by infrastructure scripts. Please don't edit by hand. - -Source: > - 1 │ byte := 0 │ 0..9 - -Errors: # 1 total - - > - Error: Expected YulAddressKeyword or YulIdentifier. - ╭─[crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_byte/input.sol:1:1] - │ - 1 │ byte := 0 - │ ─────┬──── - │ ╰────── Error occurred here. - ───╯ - -Tree: - - (UNRECOGNIZED): "byte := 0\n" # (0..10) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_call/generated/0.8.10-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_call/generated/0.8.10-failure.yml deleted file mode 100644 index 47e38968e0..0000000000 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_call/generated/0.8.10-failure.yml +++ /dev/null @@ -1,17 +0,0 @@ -# This file is generated automatically by infrastructure scripts. Please don't edit by hand. - -Source: > - 1 │ call := 0 │ 0..9 - -Errors: # 1 total - - > - Error: Expected YulAddressKeyword or YulIdentifier. - ╭─[crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_call/input.sol:1:1] - │ - 1 │ call := 0 - │ ─────┬──── - │ ╰────── Error occurred here. - ───╯ - -Tree: - - (UNRECOGNIZED): "call := 0\n" # (0..10) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_callcode/generated/0.8.10-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_callcode/generated/0.8.10-failure.yml deleted file mode 100644 index 4eec56335f..0000000000 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_callcode/generated/0.8.10-failure.yml +++ /dev/null @@ -1,17 +0,0 @@ -# This file is generated automatically by infrastructure scripts. Please don't edit by hand. - -Source: > - 1 │ callcode := 0 │ 0..13 - -Errors: # 1 total - - > - Error: Expected YulAddressKeyword or YulIdentifier. - ╭─[crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_callcode/input.sol:1:1] - │ - 1 │ callcode := 0 - │ ───────┬────── - │ ╰──────── Error occurred here. - ───╯ - -Tree: - - (UNRECOGNIZED): "callcode := 0\n" # (0..14) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_calldatacopy/generated/0.8.10-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_calldatacopy/generated/0.8.10-failure.yml deleted file mode 100644 index e72bf100f2..0000000000 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_calldatacopy/generated/0.8.10-failure.yml +++ /dev/null @@ -1,17 +0,0 @@ -# This file is generated automatically by infrastructure scripts. Please don't edit by hand. - -Source: > - 1 │ calldatacopy := 0 │ 0..17 - -Errors: # 1 total - - > - Error: Expected YulAddressKeyword or YulIdentifier. - ╭─[crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_calldatacopy/input.sol:1:1] - │ - 1 │ calldatacopy := 0 - │ ─────────┬──────── - │ ╰────────── Error occurred here. - ───╯ - -Tree: - - (UNRECOGNIZED): "calldatacopy := 0\n" # (0..18) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_calldataload/generated/0.8.10-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_calldataload/generated/0.8.10-failure.yml deleted file mode 100644 index 22cd461671..0000000000 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_calldataload/generated/0.8.10-failure.yml +++ /dev/null @@ -1,17 +0,0 @@ -# This file is generated automatically by infrastructure scripts. Please don't edit by hand. - -Source: > - 1 │ calldataload := 0 │ 0..17 - -Errors: # 1 total - - > - Error: Expected YulAddressKeyword or YulIdentifier. - ╭─[crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_calldataload/input.sol:1:1] - │ - 1 │ calldataload := 0 - │ ─────────┬──────── - │ ╰────────── Error occurred here. - ───╯ - -Tree: - - (UNRECOGNIZED): "calldataload := 0\n" # (0..18) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_calldatasize/generated/0.8.10-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_calldatasize/generated/0.8.10-failure.yml deleted file mode 100644 index c9bd3f3efc..0000000000 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_calldatasize/generated/0.8.10-failure.yml +++ /dev/null @@ -1,17 +0,0 @@ -# This file is generated automatically by infrastructure scripts. Please don't edit by hand. - -Source: > - 1 │ calldatasize := 0 │ 0..17 - -Errors: # 1 total - - > - Error: Expected YulAddressKeyword or YulIdentifier. - ╭─[crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_calldatasize/input.sol:1:1] - │ - 1 │ calldatasize := 0 - │ ─────────┬──────── - │ ╰────────── Error occurred here. - ───╯ - -Tree: - - (UNRECOGNIZED): "calldatasize := 0\n" # (0..18) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_caller/generated/0.8.10-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_caller/generated/0.8.10-failure.yml deleted file mode 100644 index 7e6b756a33..0000000000 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_caller/generated/0.8.10-failure.yml +++ /dev/null @@ -1,17 +0,0 @@ -# This file is generated automatically by infrastructure scripts. Please don't edit by hand. - -Source: > - 1 │ caller := 0 │ 0..11 - -Errors: # 1 total - - > - Error: Expected YulAddressKeyword or YulIdentifier. - ╭─[crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_caller/input.sol:1:1] - │ - 1 │ caller := 0 - │ ──────┬───── - │ ╰─────── Error occurred here. - ───╯ - -Tree: - - (UNRECOGNIZED): "caller := 0\n" # (0..12) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_callvalue/generated/0.8.10-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_callvalue/generated/0.8.10-failure.yml deleted file mode 100644 index 8a7027b3c2..0000000000 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_callvalue/generated/0.8.10-failure.yml +++ /dev/null @@ -1,17 +0,0 @@ -# This file is generated automatically by infrastructure scripts. Please don't edit by hand. - -Source: > - 1 │ callvalue := 0 │ 0..14 - -Errors: # 1 total - - > - Error: Expected YulAddressKeyword or YulIdentifier. - ╭─[crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_callvalue/input.sol:1:1] - │ - 1 │ callvalue := 0 - │ ───────┬─────── - │ ╰───────── Error occurred here. - ───╯ - -Tree: - - (UNRECOGNIZED): "callvalue := 0\n" # (0..15) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_chainid/generated/0.4.11-success.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_chainid/generated/0.4.11-success.yml index cdb35acd28..dff709c62d 100644 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_chainid/generated/0.4.11-success.yml +++ b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_chainid/generated/0.4.11-success.yml @@ -9,7 +9,7 @@ Tree: - (YulVariableAssignmentStatement): # "chainid := 0\n" (0..13) - (variables꞉ YulPaths): # "chainid" (0..7) - (item꞉ YulPath): # "chainid" (0..7) - - (item꞉ YulPathComponent) ► (variant꞉ YulIdentifier): "chainid" # (0..7) + - (item꞉ YulIdentifier): "chainid" # (0..7) - (assignment꞉ YulAssignmentOperator): # " :=" (7..10) - (leading_trivia꞉ Whitespace): " " # (7..8) - (variant꞉ ColonEqual): ":=" # (8..10) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_chainid/generated/0.8.10-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_chainid/generated/0.8.10-failure.yml deleted file mode 100644 index c5193221be..0000000000 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_chainid/generated/0.8.10-failure.yml +++ /dev/null @@ -1,17 +0,0 @@ -# This file is generated automatically by infrastructure scripts. Please don't edit by hand. - -Source: > - 1 │ chainid := 0 │ 0..12 - -Errors: # 1 total - - > - Error: Expected YulAddressKeyword or YulIdentifier. - ╭─[crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_chainid/input.sol:1:1] - │ - 1 │ chainid := 0 - │ ──────┬────── - │ ╰──────── Error occurred here. - ───╯ - -Tree: - - (UNRECOGNIZED): "chainid := 0\n" # (0..13) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_coinbase/generated/0.8.10-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_coinbase/generated/0.8.10-failure.yml deleted file mode 100644 index d4d59fc5c6..0000000000 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_coinbase/generated/0.8.10-failure.yml +++ /dev/null @@ -1,17 +0,0 @@ -# This file is generated automatically by infrastructure scripts. Please don't edit by hand. - -Source: > - 1 │ coinbase := 0 │ 0..13 - -Errors: # 1 total - - > - Error: Expected YulAddressKeyword or YulIdentifier. - ╭─[crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_coinbase/input.sol:1:1] - │ - 1 │ coinbase := 0 - │ ───────┬────── - │ ╰──────── Error occurred here. - ───╯ - -Tree: - - (UNRECOGNIZED): "coinbase := 0\n" # (0..14) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_create/generated/0.8.10-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_create/generated/0.8.10-failure.yml deleted file mode 100644 index d577ff6bbe..0000000000 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_create/generated/0.8.10-failure.yml +++ /dev/null @@ -1,17 +0,0 @@ -# This file is generated automatically by infrastructure scripts. Please don't edit by hand. - -Source: > - 1 │ create := 0 │ 0..11 - -Errors: # 1 total - - > - Error: Expected YulAddressKeyword or YulIdentifier. - ╭─[crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_create/input.sol:1:1] - │ - 1 │ create := 0 - │ ──────┬───── - │ ╰─────── Error occurred here. - ───╯ - -Tree: - - (UNRECOGNIZED): "create := 0\n" # (0..12) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_create2/generated/0.4.11-success.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_create2/generated/0.4.11-success.yml index 678427714a..9b6c1ce690 100644 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_create2/generated/0.4.11-success.yml +++ b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_create2/generated/0.4.11-success.yml @@ -9,7 +9,7 @@ Tree: - (YulVariableAssignmentStatement): # "create2 := 0\n" (0..13) - (variables꞉ YulPaths): # "create2" (0..7) - (item꞉ YulPath): # "create2" (0..7) - - (item꞉ YulPathComponent) ► (variant꞉ YulIdentifier): "create2" # (0..7) + - (item꞉ YulIdentifier): "create2" # (0..7) - (assignment꞉ YulAssignmentOperator): # " :=" (7..10) - (leading_trivia꞉ Whitespace): " " # (7..8) - (variant꞉ ColonEqual): ":=" # (8..10) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_create2/generated/0.8.10-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_create2/generated/0.8.10-failure.yml deleted file mode 100644 index ffbc4a8eda..0000000000 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_create2/generated/0.8.10-failure.yml +++ /dev/null @@ -1,17 +0,0 @@ -# This file is generated automatically by infrastructure scripts. Please don't edit by hand. - -Source: > - 1 │ create2 := 0 │ 0..12 - -Errors: # 1 total - - > - Error: Expected YulAddressKeyword or YulIdentifier. - ╭─[crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_create2/input.sol:1:1] - │ - 1 │ create2 := 0 - │ ──────┬────── - │ ╰──────── Error occurred here. - ───╯ - -Tree: - - (UNRECOGNIZED): "create2 := 0\n" # (0..13) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_delegatecall/generated/0.8.10-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_delegatecall/generated/0.8.10-failure.yml deleted file mode 100644 index 9b502b7ca7..0000000000 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_delegatecall/generated/0.8.10-failure.yml +++ /dev/null @@ -1,17 +0,0 @@ -# This file is generated automatically by infrastructure scripts. Please don't edit by hand. - -Source: > - 1 │ delegatecall := 0 │ 0..17 - -Errors: # 1 total - - > - Error: Expected YulAddressKeyword or YulIdentifier. - ╭─[crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_delegatecall/input.sol:1:1] - │ - 1 │ delegatecall := 0 - │ ─────────┬──────── - │ ╰────────── Error occurred here. - ───╯ - -Tree: - - (UNRECOGNIZED): "delegatecall := 0\n" # (0..18) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_difficulty/generated/0.8.10-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_difficulty/generated/0.8.10-failure.yml deleted file mode 100644 index 3f46dd06a0..0000000000 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_difficulty/generated/0.8.10-failure.yml +++ /dev/null @@ -1,17 +0,0 @@ -# This file is generated automatically by infrastructure scripts. Please don't edit by hand. - -Source: > - 1 │ difficulty := 0 │ 0..15 - -Errors: # 1 total - - > - Error: Expected YulAddressKeyword or YulIdentifier. - ╭─[crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_difficulty/input.sol:1:1] - │ - 1 │ difficulty := 0 - │ ────────┬─────── - │ ╰───────── Error occurred here. - ───╯ - -Tree: - - (UNRECOGNIZED): "difficulty := 0\n" # (0..16) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_div/generated/0.8.10-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_div/generated/0.8.10-failure.yml deleted file mode 100644 index 7d42bdb509..0000000000 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_div/generated/0.8.10-failure.yml +++ /dev/null @@ -1,17 +0,0 @@ -# This file is generated automatically by infrastructure scripts. Please don't edit by hand. - -Source: > - 1 │ div := 0 │ 0..8 - -Errors: # 1 total - - > - Error: Expected YulAddressKeyword or YulIdentifier. - ╭─[crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_div/input.sol:1:1] - │ - 1 │ div := 0 - │ ────┬──── - │ ╰────── Error occurred here. - ───╯ - -Tree: - - (UNRECOGNIZED): "div := 0\n" # (0..9) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_eq/generated/0.8.10-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_eq/generated/0.8.10-failure.yml deleted file mode 100644 index 51e672e5e4..0000000000 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_eq/generated/0.8.10-failure.yml +++ /dev/null @@ -1,17 +0,0 @@ -# This file is generated automatically by infrastructure scripts. Please don't edit by hand. - -Source: > - 1 │ eq := 0 │ 0..7 - -Errors: # 1 total - - > - Error: Expected YulAddressKeyword or YulIdentifier. - ╭─[crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_eq/input.sol:1:1] - │ - 1 │ eq := 0 - │ ────┬─── - │ ╰───── Error occurred here. - ───╯ - -Tree: - - (UNRECOGNIZED): "eq := 0\n" # (0..8) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_exp/generated/0.8.10-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_exp/generated/0.8.10-failure.yml deleted file mode 100644 index f74a877c47..0000000000 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_exp/generated/0.8.10-failure.yml +++ /dev/null @@ -1,17 +0,0 @@ -# This file is generated automatically by infrastructure scripts. Please don't edit by hand. - -Source: > - 1 │ exp := 0 │ 0..8 - -Errors: # 1 total - - > - Error: Expected YulAddressKeyword or YulIdentifier. - ╭─[crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_exp/input.sol:1:1] - │ - 1 │ exp := 0 - │ ────┬──── - │ ╰────── Error occurred here. - ───╯ - -Tree: - - (UNRECOGNIZED): "exp := 0\n" # (0..9) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_extcodecopy/generated/0.8.10-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_extcodecopy/generated/0.8.10-failure.yml deleted file mode 100644 index 73326ad3e6..0000000000 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_extcodecopy/generated/0.8.10-failure.yml +++ /dev/null @@ -1,17 +0,0 @@ -# This file is generated automatically by infrastructure scripts. Please don't edit by hand. - -Source: > - 1 │ extcodecopy := 0 │ 0..16 - -Errors: # 1 total - - > - Error: Expected YulAddressKeyword or YulIdentifier. - ╭─[crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_extcodecopy/input.sol:1:1] - │ - 1 │ extcodecopy := 0 - │ ────────┬──────── - │ ╰────────── Error occurred here. - ───╯ - -Tree: - - (UNRECOGNIZED): "extcodecopy := 0\n" # (0..17) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_extcodehash/generated/0.4.11-success.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_extcodehash/generated/0.4.11-success.yml index ec4200ec28..88b734fbe3 100644 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_extcodehash/generated/0.4.11-success.yml +++ b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_extcodehash/generated/0.4.11-success.yml @@ -9,7 +9,7 @@ Tree: - (YulVariableAssignmentStatement): # "extcodehash := 0\n" (0..17) - (variables꞉ YulPaths): # "extcodehash" (0..11) - (item꞉ YulPath): # "extcodehash" (0..11) - - (item꞉ YulPathComponent) ► (variant꞉ YulIdentifier): "extcodehash" # (0..11) + - (item꞉ YulIdentifier): "extcodehash" # (0..11) - (assignment꞉ YulAssignmentOperator): # " :=" (11..14) - (leading_trivia꞉ Whitespace): " " # (11..12) - (variant꞉ ColonEqual): ":=" # (12..14) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_extcodehash/generated/0.8.10-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_extcodehash/generated/0.8.10-failure.yml deleted file mode 100644 index 1a964d39d6..0000000000 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_extcodehash/generated/0.8.10-failure.yml +++ /dev/null @@ -1,17 +0,0 @@ -# This file is generated automatically by infrastructure scripts. Please don't edit by hand. - -Source: > - 1 │ extcodehash := 0 │ 0..16 - -Errors: # 1 total - - > - Error: Expected YulAddressKeyword or YulIdentifier. - ╭─[crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_extcodehash/input.sol:1:1] - │ - 1 │ extcodehash := 0 - │ ────────┬──────── - │ ╰────────── Error occurred here. - ───╯ - -Tree: - - (UNRECOGNIZED): "extcodehash := 0\n" # (0..17) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_extcodesize/generated/0.8.10-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_extcodesize/generated/0.8.10-failure.yml deleted file mode 100644 index 9f692641d3..0000000000 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_extcodesize/generated/0.8.10-failure.yml +++ /dev/null @@ -1,17 +0,0 @@ -# This file is generated automatically by infrastructure scripts. Please don't edit by hand. - -Source: > - 1 │ extcodesize := 0 │ 0..16 - -Errors: # 1 total - - > - Error: Expected YulAddressKeyword or YulIdentifier. - ╭─[crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_extcodesize/input.sol:1:1] - │ - 1 │ extcodesize := 0 - │ ────────┬──────── - │ ╰────────── Error occurred here. - ───╯ - -Tree: - - (UNRECOGNIZED): "extcodesize := 0\n" # (0..17) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_gas/generated/0.8.10-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_gas/generated/0.8.10-failure.yml deleted file mode 100644 index c1a576cff8..0000000000 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_gas/generated/0.8.10-failure.yml +++ /dev/null @@ -1,17 +0,0 @@ -# This file is generated automatically by infrastructure scripts. Please don't edit by hand. - -Source: > - 1 │ gas := 0 │ 0..8 - -Errors: # 1 total - - > - Error: Expected YulAddressKeyword or YulIdentifier. - ╭─[crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_gas/input.sol:1:1] - │ - 1 │ gas := 0 - │ ────┬──── - │ ╰────── Error occurred here. - ───╯ - -Tree: - - (UNRECOGNIZED): "gas := 0\n" # (0..9) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_gaslimit/generated/0.8.10-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_gaslimit/generated/0.8.10-failure.yml deleted file mode 100644 index 29937aad43..0000000000 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_gaslimit/generated/0.8.10-failure.yml +++ /dev/null @@ -1,17 +0,0 @@ -# This file is generated automatically by infrastructure scripts. Please don't edit by hand. - -Source: > - 1 │ gaslimit := 0 │ 0..13 - -Errors: # 1 total - - > - Error: Expected YulAddressKeyword or YulIdentifier. - ╭─[crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_gaslimit/input.sol:1:1] - │ - 1 │ gaslimit := 0 - │ ───────┬────── - │ ╰──────── Error occurred here. - ───╯ - -Tree: - - (UNRECOGNIZED): "gaslimit := 0\n" # (0..14) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_gasprice/generated/0.8.10-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_gasprice/generated/0.8.10-failure.yml deleted file mode 100644 index 98d3ebf7e7..0000000000 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_gasprice/generated/0.8.10-failure.yml +++ /dev/null @@ -1,17 +0,0 @@ -# This file is generated automatically by infrastructure scripts. Please don't edit by hand. - -Source: > - 1 │ gasprice := 0 │ 0..13 - -Errors: # 1 total - - > - Error: Expected YulAddressKeyword or YulIdentifier. - ╭─[crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_gasprice/input.sol:1:1] - │ - 1 │ gasprice := 0 - │ ───────┬────── - │ ╰──────── Error occurred here. - ───╯ - -Tree: - - (UNRECOGNIZED): "gasprice := 0\n" # (0..14) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_gt/generated/0.8.10-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_gt/generated/0.8.10-failure.yml deleted file mode 100644 index d868fca281..0000000000 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_gt/generated/0.8.10-failure.yml +++ /dev/null @@ -1,17 +0,0 @@ -# This file is generated automatically by infrastructure scripts. Please don't edit by hand. - -Source: > - 1 │ gt := 0 │ 0..7 - -Errors: # 1 total - - > - Error: Expected YulAddressKeyword or YulIdentifier. - ╭─[crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_gt/input.sol:1:1] - │ - 1 │ gt := 0 - │ ────┬─── - │ ╰───── Error occurred here. - ───╯ - -Tree: - - (UNRECOGNIZED): "gt := 0\n" # (0..8) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_invalid/generated/0.8.10-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_invalid/generated/0.8.10-failure.yml deleted file mode 100644 index 9d9f8f3c75..0000000000 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_invalid/generated/0.8.10-failure.yml +++ /dev/null @@ -1,17 +0,0 @@ -# This file is generated automatically by infrastructure scripts. Please don't edit by hand. - -Source: > - 1 │ invalid := 0 │ 0..12 - -Errors: # 1 total - - > - Error: Expected YulAddressKeyword or YulIdentifier. - ╭─[crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_invalid/input.sol:1:1] - │ - 1 │ invalid := 0 - │ ──────┬────── - │ ╰──────── Error occurred here. - ───╯ - -Tree: - - (UNRECOGNIZED): "invalid := 0\n" # (0..13) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_iszero/generated/0.8.10-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_iszero/generated/0.8.10-failure.yml deleted file mode 100644 index 3f7df8c346..0000000000 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_iszero/generated/0.8.10-failure.yml +++ /dev/null @@ -1,17 +0,0 @@ -# This file is generated automatically by infrastructure scripts. Please don't edit by hand. - -Source: > - 1 │ iszero := 0 │ 0..11 - -Errors: # 1 total - - > - Error: Expected YulAddressKeyword or YulIdentifier. - ╭─[crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_iszero/input.sol:1:1] - │ - 1 │ iszero := 0 - │ ──────┬───── - │ ╰─────── Error occurred here. - ───╯ - -Tree: - - (UNRECOGNIZED): "iszero := 0\n" # (0..12) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_keccak256/generated/0.4.11-success.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_keccak256/generated/0.4.11-success.yml index 49cd5a9ee0..cba87e3217 100644 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_keccak256/generated/0.4.11-success.yml +++ b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_keccak256/generated/0.4.11-success.yml @@ -9,7 +9,7 @@ Tree: - (YulVariableAssignmentStatement): # "keccak256 := 0\n" (0..15) - (variables꞉ YulPaths): # "keccak256" (0..9) - (item꞉ YulPath): # "keccak256" (0..9) - - (item꞉ YulPathComponent) ► (variant꞉ YulIdentifier): "keccak256" # (0..9) + - (item꞉ YulIdentifier): "keccak256" # (0..9) - (assignment꞉ YulAssignmentOperator): # " :=" (9..12) - (leading_trivia꞉ Whitespace): " " # (9..10) - (variant꞉ ColonEqual): ":=" # (10..12) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_keccak256/generated/0.8.10-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_keccak256/generated/0.8.10-failure.yml deleted file mode 100644 index 4cee534672..0000000000 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_keccak256/generated/0.8.10-failure.yml +++ /dev/null @@ -1,17 +0,0 @@ -# This file is generated automatically by infrastructure scripts. Please don't edit by hand. - -Source: > - 1 │ keccak256 := 0 │ 0..14 - -Errors: # 1 total - - > - Error: Expected YulAddressKeyword or YulIdentifier. - ╭─[crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_keccak256/input.sol:1:1] - │ - 1 │ keccak256 := 0 - │ ───────┬─────── - │ ╰───────── Error occurred here. - ───╯ - -Tree: - - (UNRECOGNIZED): "keccak256 := 0\n" # (0..15) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_log0/generated/0.8.10-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_log0/generated/0.8.10-failure.yml deleted file mode 100644 index b947c65e07..0000000000 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_log0/generated/0.8.10-failure.yml +++ /dev/null @@ -1,17 +0,0 @@ -# This file is generated automatically by infrastructure scripts. Please don't edit by hand. - -Source: > - 1 │ log0 := 0 │ 0..9 - -Errors: # 1 total - - > - Error: Expected YulAddressKeyword or YulIdentifier. - ╭─[crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_log0/input.sol:1:1] - │ - 1 │ log0 := 0 - │ ─────┬──── - │ ╰────── Error occurred here. - ───╯ - -Tree: - - (UNRECOGNIZED): "log0 := 0\n" # (0..10) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_log1/generated/0.8.10-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_log1/generated/0.8.10-failure.yml deleted file mode 100644 index 585b4a0baa..0000000000 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_log1/generated/0.8.10-failure.yml +++ /dev/null @@ -1,17 +0,0 @@ -# This file is generated automatically by infrastructure scripts. Please don't edit by hand. - -Source: > - 1 │ log1 := 0 │ 0..9 - -Errors: # 1 total - - > - Error: Expected YulAddressKeyword or YulIdentifier. - ╭─[crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_log1/input.sol:1:1] - │ - 1 │ log1 := 0 - │ ─────┬──── - │ ╰────── Error occurred here. - ───╯ - -Tree: - - (UNRECOGNIZED): "log1 := 0\n" # (0..10) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_log2/generated/0.8.10-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_log2/generated/0.8.10-failure.yml deleted file mode 100644 index 125c3e989c..0000000000 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_log2/generated/0.8.10-failure.yml +++ /dev/null @@ -1,17 +0,0 @@ -# This file is generated automatically by infrastructure scripts. Please don't edit by hand. - -Source: > - 1 │ log2 := 0 │ 0..9 - -Errors: # 1 total - - > - Error: Expected YulAddressKeyword or YulIdentifier. - ╭─[crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_log2/input.sol:1:1] - │ - 1 │ log2 := 0 - │ ─────┬──── - │ ╰────── Error occurred here. - ───╯ - -Tree: - - (UNRECOGNIZED): "log2 := 0\n" # (0..10) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_log3/generated/0.8.10-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_log3/generated/0.8.10-failure.yml deleted file mode 100644 index 4da408c55e..0000000000 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_log3/generated/0.8.10-failure.yml +++ /dev/null @@ -1,17 +0,0 @@ -# This file is generated automatically by infrastructure scripts. Please don't edit by hand. - -Source: > - 1 │ log3 := 0 │ 0..9 - -Errors: # 1 total - - > - Error: Expected YulAddressKeyword or YulIdentifier. - ╭─[crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_log3/input.sol:1:1] - │ - 1 │ log3 := 0 - │ ─────┬──── - │ ╰────── Error occurred here. - ───╯ - -Tree: - - (UNRECOGNIZED): "log3 := 0\n" # (0..10) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_log4/generated/0.8.10-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_log4/generated/0.8.10-failure.yml deleted file mode 100644 index c5dba688ae..0000000000 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_log4/generated/0.8.10-failure.yml +++ /dev/null @@ -1,17 +0,0 @@ -# This file is generated automatically by infrastructure scripts. Please don't edit by hand. - -Source: > - 1 │ log4 := 0 │ 0..9 - -Errors: # 1 total - - > - Error: Expected YulAddressKeyword or YulIdentifier. - ╭─[crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_log4/input.sol:1:1] - │ - 1 │ log4 := 0 - │ ─────┬──── - │ ╰────── Error occurred here. - ───╯ - -Tree: - - (UNRECOGNIZED): "log4 := 0\n" # (0..10) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_lt/generated/0.8.10-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_lt/generated/0.8.10-failure.yml deleted file mode 100644 index 5d009ebfdb..0000000000 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_lt/generated/0.8.10-failure.yml +++ /dev/null @@ -1,17 +0,0 @@ -# This file is generated automatically by infrastructure scripts. Please don't edit by hand. - -Source: > - 1 │ lt := 0 │ 0..7 - -Errors: # 1 total - - > - Error: Expected YulAddressKeyword or YulIdentifier. - ╭─[crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_lt/input.sol:1:1] - │ - 1 │ lt := 0 - │ ────┬─── - │ ╰───── Error occurred here. - ───╯ - -Tree: - - (UNRECOGNIZED): "lt := 0\n" # (0..8) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_mload/generated/0.8.10-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_mload/generated/0.8.10-failure.yml deleted file mode 100644 index 04586f0f6e..0000000000 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_mload/generated/0.8.10-failure.yml +++ /dev/null @@ -1,17 +0,0 @@ -# This file is generated automatically by infrastructure scripts. Please don't edit by hand. - -Source: > - 1 │ mload := 0 │ 0..10 - -Errors: # 1 total - - > - Error: Expected YulAddressKeyword or YulIdentifier. - ╭─[crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_mload/input.sol:1:1] - │ - 1 │ mload := 0 - │ ─────┬───── - │ ╰─────── Error occurred here. - ───╯ - -Tree: - - (UNRECOGNIZED): "mload := 0\n" # (0..11) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_mod/generated/0.8.10-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_mod/generated/0.8.10-failure.yml deleted file mode 100644 index e2a14e52bc..0000000000 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_mod/generated/0.8.10-failure.yml +++ /dev/null @@ -1,17 +0,0 @@ -# This file is generated automatically by infrastructure scripts. Please don't edit by hand. - -Source: > - 1 │ mod := 0 │ 0..8 - -Errors: # 1 total - - > - Error: Expected YulAddressKeyword or YulIdentifier. - ╭─[crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_mod/input.sol:1:1] - │ - 1 │ mod := 0 - │ ────┬──── - │ ╰────── Error occurred here. - ───╯ - -Tree: - - (UNRECOGNIZED): "mod := 0\n" # (0..9) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_msize/generated/0.8.10-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_msize/generated/0.8.10-failure.yml deleted file mode 100644 index 8b02d570f4..0000000000 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_msize/generated/0.8.10-failure.yml +++ /dev/null @@ -1,17 +0,0 @@ -# This file is generated automatically by infrastructure scripts. Please don't edit by hand. - -Source: > - 1 │ msize := 0 │ 0..10 - -Errors: # 1 total - - > - Error: Expected YulAddressKeyword or YulIdentifier. - ╭─[crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_msize/input.sol:1:1] - │ - 1 │ msize := 0 - │ ─────┬───── - │ ╰─────── Error occurred here. - ───╯ - -Tree: - - (UNRECOGNIZED): "msize := 0\n" # (0..11) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_mstore/generated/0.8.10-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_mstore/generated/0.8.10-failure.yml deleted file mode 100644 index 4edf635839..0000000000 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_mstore/generated/0.8.10-failure.yml +++ /dev/null @@ -1,17 +0,0 @@ -# This file is generated automatically by infrastructure scripts. Please don't edit by hand. - -Source: > - 1 │ mstore := 0 │ 0..11 - -Errors: # 1 total - - > - Error: Expected YulAddressKeyword or YulIdentifier. - ╭─[crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_mstore/input.sol:1:1] - │ - 1 │ mstore := 0 - │ ──────┬───── - │ ╰─────── Error occurred here. - ───╯ - -Tree: - - (UNRECOGNIZED): "mstore := 0\n" # (0..12) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_mstore8/generated/0.8.10-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_mstore8/generated/0.8.10-failure.yml deleted file mode 100644 index 4733134b24..0000000000 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_mstore8/generated/0.8.10-failure.yml +++ /dev/null @@ -1,17 +0,0 @@ -# This file is generated automatically by infrastructure scripts. Please don't edit by hand. - -Source: > - 1 │ mstore8 := 0 │ 0..12 - -Errors: # 1 total - - > - Error: Expected YulAddressKeyword or YulIdentifier. - ╭─[crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_mstore8/input.sol:1:1] - │ - 1 │ mstore8 := 0 - │ ──────┬────── - │ ╰──────── Error occurred here. - ───╯ - -Tree: - - (UNRECOGNIZED): "mstore8 := 0\n" # (0..13) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_mul/generated/0.8.10-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_mul/generated/0.8.10-failure.yml deleted file mode 100644 index f577e793a0..0000000000 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_mul/generated/0.8.10-failure.yml +++ /dev/null @@ -1,17 +0,0 @@ -# This file is generated automatically by infrastructure scripts. Please don't edit by hand. - -Source: > - 1 │ mul := 0 │ 0..8 - -Errors: # 1 total - - > - Error: Expected YulAddressKeyword or YulIdentifier. - ╭─[crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_mul/input.sol:1:1] - │ - 1 │ mul := 0 - │ ────┬──── - │ ╰────── Error occurred here. - ───╯ - -Tree: - - (UNRECOGNIZED): "mul := 0\n" # (0..9) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_mulmod/generated/0.8.10-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_mulmod/generated/0.8.10-failure.yml deleted file mode 100644 index efbee5e856..0000000000 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_mulmod/generated/0.8.10-failure.yml +++ /dev/null @@ -1,17 +0,0 @@ -# This file is generated automatically by infrastructure scripts. Please don't edit by hand. - -Source: > - 1 │ mulmod := 0 │ 0..11 - -Errors: # 1 total - - > - Error: Expected YulAddressKeyword or YulIdentifier. - ╭─[crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_mulmod/input.sol:1:1] - │ - 1 │ mulmod := 0 - │ ──────┬───── - │ ╰─────── Error occurred here. - ───╯ - -Tree: - - (UNRECOGNIZED): "mulmod := 0\n" # (0..12) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_not/generated/0.8.10-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_not/generated/0.8.10-failure.yml deleted file mode 100644 index 60216aa8a3..0000000000 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_not/generated/0.8.10-failure.yml +++ /dev/null @@ -1,17 +0,0 @@ -# This file is generated automatically by infrastructure scripts. Please don't edit by hand. - -Source: > - 1 │ not := 0 │ 0..8 - -Errors: # 1 total - - > - Error: Expected YulAddressKeyword or YulIdentifier. - ╭─[crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_not/input.sol:1:1] - │ - 1 │ not := 0 - │ ────┬──── - │ ╰────── Error occurred here. - ───╯ - -Tree: - - (UNRECOGNIZED): "not := 0\n" # (0..9) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_number/generated/0.8.10-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_number/generated/0.8.10-failure.yml deleted file mode 100644 index d61ed5b034..0000000000 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_number/generated/0.8.10-failure.yml +++ /dev/null @@ -1,17 +0,0 @@ -# This file is generated automatically by infrastructure scripts. Please don't edit by hand. - -Source: > - 1 │ number := 0 │ 0..11 - -Errors: # 1 total - - > - Error: Expected YulAddressKeyword or YulIdentifier. - ╭─[crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_number/input.sol:1:1] - │ - 1 │ number := 0 - │ ──────┬───── - │ ╰─────── Error occurred here. - ───╯ - -Tree: - - (UNRECOGNIZED): "number := 0\n" # (0..12) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_or/generated/0.8.10-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_or/generated/0.8.10-failure.yml deleted file mode 100644 index 7a90da63c7..0000000000 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_or/generated/0.8.10-failure.yml +++ /dev/null @@ -1,17 +0,0 @@ -# This file is generated automatically by infrastructure scripts. Please don't edit by hand. - -Source: > - 1 │ or := 0 │ 0..7 - -Errors: # 1 total - - > - Error: Expected YulAddressKeyword or YulIdentifier. - ╭─[crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_or/input.sol:1:1] - │ - 1 │ or := 0 - │ ────┬─── - │ ╰───── Error occurred here. - ───╯ - -Tree: - - (UNRECOGNIZED): "or := 0\n" # (0..8) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_origin/generated/0.8.10-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_origin/generated/0.8.10-failure.yml deleted file mode 100644 index 9b535f483f..0000000000 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_origin/generated/0.8.10-failure.yml +++ /dev/null @@ -1,17 +0,0 @@ -# This file is generated automatically by infrastructure scripts. Please don't edit by hand. - -Source: > - 1 │ origin := 0 │ 0..11 - -Errors: # 1 total - - > - Error: Expected YulAddressKeyword or YulIdentifier. - ╭─[crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_origin/input.sol:1:1] - │ - 1 │ origin := 0 - │ ──────┬───── - │ ╰─────── Error occurred here. - ───╯ - -Tree: - - (UNRECOGNIZED): "origin := 0\n" # (0..12) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_pop/generated/0.8.10-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_pop/generated/0.8.10-failure.yml deleted file mode 100644 index 99c01e5b49..0000000000 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_pop/generated/0.8.10-failure.yml +++ /dev/null @@ -1,17 +0,0 @@ -# This file is generated automatically by infrastructure scripts. Please don't edit by hand. - -Source: > - 1 │ pop := 0 │ 0..8 - -Errors: # 1 total - - > - Error: Expected YulAddressKeyword or YulIdentifier. - ╭─[crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_pop/input.sol:1:1] - │ - 1 │ pop := 0 - │ ────┬──── - │ ╰────── Error occurred here. - ───╯ - -Tree: - - (UNRECOGNIZED): "pop := 0\n" # (0..9) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_prevrandao/generated/0.4.11-success.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_prevrandao/generated/0.4.11-success.yml index 9a7596a566..cea739a1be 100644 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_prevrandao/generated/0.4.11-success.yml +++ b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_prevrandao/generated/0.4.11-success.yml @@ -9,7 +9,7 @@ Tree: - (YulVariableAssignmentStatement): # "prevrandao := 0\n" (0..16) - (variables꞉ YulPaths): # "prevrandao" (0..10) - (item꞉ YulPath): # "prevrandao" (0..10) - - (item꞉ YulPathComponent) ► (variant꞉ YulIdentifier): "prevrandao" # (0..10) + - (item꞉ YulIdentifier): "prevrandao" # (0..10) - (assignment꞉ YulAssignmentOperator): # " :=" (10..13) - (leading_trivia꞉ Whitespace): " " # (10..11) - (variant꞉ ColonEqual): ":=" # (11..13) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_prevrandao/generated/0.8.18-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_prevrandao/generated/0.8.18-failure.yml index 8edc663084..aca16dca94 100644 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_prevrandao/generated/0.8.18-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_prevrandao/generated/0.8.18-failure.yml @@ -5,7 +5,7 @@ Source: > Errors: # 1 total - > - Error: Expected YulAddressKeyword or YulIdentifier. + Error: Expected YulIdentifier. ╭─[crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_prevrandao/input.sol:1:1] │ 1 │ prevrandao := 0 diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_return/generated/0.8.10-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_return/generated/0.8.10-failure.yml deleted file mode 100644 index 25d697e6a5..0000000000 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_return/generated/0.8.10-failure.yml +++ /dev/null @@ -1,17 +0,0 @@ -# This file is generated automatically by infrastructure scripts. Please don't edit by hand. - -Source: > - 1 │ return := 0 │ 0..11 - -Errors: # 1 total - - > - Error: Expected YulAddressKeyword or YulIdentifier. - ╭─[crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_return/input.sol:1:1] - │ - 1 │ return := 0 - │ ──────┬───── - │ ╰─────── Error occurred here. - ───╯ - -Tree: - - (UNRECOGNIZED): "return := 0\n" # (0..12) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_returndatacopy/generated/0.4.11-success.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_returndatacopy/generated/0.4.11-success.yml index 1d488082f9..92b2956448 100644 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_returndatacopy/generated/0.4.11-success.yml +++ b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_returndatacopy/generated/0.4.11-success.yml @@ -9,7 +9,7 @@ Tree: - (YulVariableAssignmentStatement): # "returndatacopy := 0\n" (0..20) - (variables꞉ YulPaths): # "returndatacopy" (0..14) - (item꞉ YulPath): # "returndatacopy" (0..14) - - (item꞉ YulPathComponent) ► (variant꞉ YulIdentifier): "returndatacopy" # (0..14) + - (item꞉ YulIdentifier): "returndatacopy" # (0..14) - (assignment꞉ YulAssignmentOperator): # " :=" (14..17) - (leading_trivia꞉ Whitespace): " " # (14..15) - (variant꞉ ColonEqual): ":=" # (15..17) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_returndatacopy/generated/0.8.10-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_returndatacopy/generated/0.8.10-failure.yml deleted file mode 100644 index 10ed574513..0000000000 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_returndatacopy/generated/0.8.10-failure.yml +++ /dev/null @@ -1,17 +0,0 @@ -# This file is generated automatically by infrastructure scripts. Please don't edit by hand. - -Source: > - 1 │ returndatacopy := 0 │ 0..19 - -Errors: # 1 total - - > - Error: Expected YulAddressKeyword or YulIdentifier. - ╭─[crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_returndatacopy/input.sol:1:1] - │ - 1 │ returndatacopy := 0 - │ ──────────┬───────── - │ ╰─────────── Error occurred here. - ───╯ - -Tree: - - (UNRECOGNIZED): "returndatacopy := 0\n" # (0..20) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_returndatasize/generated/0.4.11-success.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_returndatasize/generated/0.4.11-success.yml index c687064348..1ea5d6a6e5 100644 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_returndatasize/generated/0.4.11-success.yml +++ b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_returndatasize/generated/0.4.11-success.yml @@ -9,7 +9,7 @@ Tree: - (YulVariableAssignmentStatement): # "returndatasize := 0\n" (0..20) - (variables꞉ YulPaths): # "returndatasize" (0..14) - (item꞉ YulPath): # "returndatasize" (0..14) - - (item꞉ YulPathComponent) ► (variant꞉ YulIdentifier): "returndatasize" # (0..14) + - (item꞉ YulIdentifier): "returndatasize" # (0..14) - (assignment꞉ YulAssignmentOperator): # " :=" (14..17) - (leading_trivia꞉ Whitespace): " " # (14..15) - (variant꞉ ColonEqual): ":=" # (15..17) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_returndatasize/generated/0.8.10-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_returndatasize/generated/0.8.10-failure.yml deleted file mode 100644 index 3ce415286f..0000000000 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_returndatasize/generated/0.8.10-failure.yml +++ /dev/null @@ -1,17 +0,0 @@ -# This file is generated automatically by infrastructure scripts. Please don't edit by hand. - -Source: > - 1 │ returndatasize := 0 │ 0..19 - -Errors: # 1 total - - > - Error: Expected YulAddressKeyword or YulIdentifier. - ╭─[crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_returndatasize/input.sol:1:1] - │ - 1 │ returndatasize := 0 - │ ──────────┬───────── - │ ╰─────────── Error occurred here. - ───╯ - -Tree: - - (UNRECOGNIZED): "returndatasize := 0\n" # (0..20) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_revert/generated/0.8.10-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_revert/generated/0.8.10-failure.yml deleted file mode 100644 index 7371ce2a09..0000000000 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_revert/generated/0.8.10-failure.yml +++ /dev/null @@ -1,17 +0,0 @@ -# This file is generated automatically by infrastructure scripts. Please don't edit by hand. - -Source: > - 1 │ revert := 0 │ 0..11 - -Errors: # 1 total - - > - Error: Expected YulAddressKeyword or YulIdentifier. - ╭─[crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_revert/input.sol:1:1] - │ - 1 │ revert := 0 - │ ──────┬───── - │ ╰─────── Error occurred here. - ───╯ - -Tree: - - (UNRECOGNIZED): "revert := 0\n" # (0..12) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_sar/generated/0.4.11-success.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_sar/generated/0.4.11-success.yml index 9d15bbcbc4..36949d58f7 100644 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_sar/generated/0.4.11-success.yml +++ b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_sar/generated/0.4.11-success.yml @@ -9,7 +9,7 @@ Tree: - (YulVariableAssignmentStatement): # "sar := 0\n" (0..9) - (variables꞉ YulPaths): # "sar" (0..3) - (item꞉ YulPath): # "sar" (0..3) - - (item꞉ YulPathComponent) ► (variant꞉ YulIdentifier): "sar" # (0..3) + - (item꞉ YulIdentifier): "sar" # (0..3) - (assignment꞉ YulAssignmentOperator): # " :=" (3..6) - (leading_trivia꞉ Whitespace): " " # (3..4) - (variant꞉ ColonEqual): ":=" # (4..6) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_sar/generated/0.8.10-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_sar/generated/0.8.10-failure.yml deleted file mode 100644 index c940eddeba..0000000000 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_sar/generated/0.8.10-failure.yml +++ /dev/null @@ -1,17 +0,0 @@ -# This file is generated automatically by infrastructure scripts. Please don't edit by hand. - -Source: > - 1 │ sar := 0 │ 0..8 - -Errors: # 1 total - - > - Error: Expected YulAddressKeyword or YulIdentifier. - ╭─[crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_sar/input.sol:1:1] - │ - 1 │ sar := 0 - │ ────┬──── - │ ╰────── Error occurred here. - ───╯ - -Tree: - - (UNRECOGNIZED): "sar := 0\n" # (0..9) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_sdiv/generated/0.8.10-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_sdiv/generated/0.8.10-failure.yml deleted file mode 100644 index 757e6db0d9..0000000000 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_sdiv/generated/0.8.10-failure.yml +++ /dev/null @@ -1,17 +0,0 @@ -# This file is generated automatically by infrastructure scripts. Please don't edit by hand. - -Source: > - 1 │ sdiv := 0 │ 0..9 - -Errors: # 1 total - - > - Error: Expected YulAddressKeyword or YulIdentifier. - ╭─[crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_sdiv/input.sol:1:1] - │ - 1 │ sdiv := 0 - │ ─────┬──── - │ ╰────── Error occurred here. - ───╯ - -Tree: - - (UNRECOGNIZED): "sdiv := 0\n" # (0..10) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_selfbalance/generated/0.4.11-success.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_selfbalance/generated/0.4.11-success.yml index d5f5c258e1..e02586e5bb 100644 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_selfbalance/generated/0.4.11-success.yml +++ b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_selfbalance/generated/0.4.11-success.yml @@ -9,7 +9,7 @@ Tree: - (YulVariableAssignmentStatement): # "selfbalance := 0\n" (0..17) - (variables꞉ YulPaths): # "selfbalance" (0..11) - (item꞉ YulPath): # "selfbalance" (0..11) - - (item꞉ YulPathComponent) ► (variant꞉ YulIdentifier): "selfbalance" # (0..11) + - (item꞉ YulIdentifier): "selfbalance" # (0..11) - (assignment꞉ YulAssignmentOperator): # " :=" (11..14) - (leading_trivia꞉ Whitespace): " " # (11..12) - (variant꞉ ColonEqual): ":=" # (12..14) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_selfbalance/generated/0.8.10-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_selfbalance/generated/0.8.10-failure.yml deleted file mode 100644 index a35d709ec9..0000000000 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_selfbalance/generated/0.8.10-failure.yml +++ /dev/null @@ -1,17 +0,0 @@ -# This file is generated automatically by infrastructure scripts. Please don't edit by hand. - -Source: > - 1 │ selfbalance := 0 │ 0..16 - -Errors: # 1 total - - > - Error: Expected YulAddressKeyword or YulIdentifier. - ╭─[crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_selfbalance/input.sol:1:1] - │ - 1 │ selfbalance := 0 - │ ────────┬──────── - │ ╰────────── Error occurred here. - ───╯ - -Tree: - - (UNRECOGNIZED): "selfbalance := 0\n" # (0..17) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_selfdestruct/generated/0.8.10-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_selfdestruct/generated/0.8.10-failure.yml deleted file mode 100644 index 68009198c6..0000000000 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_selfdestruct/generated/0.8.10-failure.yml +++ /dev/null @@ -1,17 +0,0 @@ -# This file is generated automatically by infrastructure scripts. Please don't edit by hand. - -Source: > - 1 │ selfdestruct := 0 │ 0..17 - -Errors: # 1 total - - > - Error: Expected YulAddressKeyword or YulIdentifier. - ╭─[crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_selfdestruct/input.sol:1:1] - │ - 1 │ selfdestruct := 0 - │ ─────────┬──────── - │ ╰────────── Error occurred here. - ───╯ - -Tree: - - (UNRECOGNIZED): "selfdestruct := 0\n" # (0..18) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_sgt/generated/0.8.10-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_sgt/generated/0.8.10-failure.yml deleted file mode 100644 index a46c3f23cc..0000000000 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_sgt/generated/0.8.10-failure.yml +++ /dev/null @@ -1,17 +0,0 @@ -# This file is generated automatically by infrastructure scripts. Please don't edit by hand. - -Source: > - 1 │ sgt := 0 │ 0..8 - -Errors: # 1 total - - > - Error: Expected YulAddressKeyword or YulIdentifier. - ╭─[crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_sgt/input.sol:1:1] - │ - 1 │ sgt := 0 - │ ────┬──── - │ ╰────── Error occurred here. - ───╯ - -Tree: - - (UNRECOGNIZED): "sgt := 0\n" # (0..9) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_sha3/generated/0.5.0-success.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_sha3/generated/0.5.0-success.yml index cb75824229..d93ff264c3 100644 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_sha3/generated/0.5.0-success.yml +++ b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_sha3/generated/0.5.0-success.yml @@ -9,7 +9,7 @@ Tree: - (YulVariableAssignmentStatement): # "sha3 := 0\n" (0..10) - (variables꞉ YulPaths): # "sha3" (0..4) - (item꞉ YulPath): # "sha3" (0..4) - - (item꞉ YulPathComponent) ► (variant꞉ YulIdentifier): "sha3" # (0..4) + - (item꞉ YulIdentifier): "sha3" # (0..4) - (assignment꞉ YulAssignmentOperator): # " :=" (4..7) - (leading_trivia꞉ Whitespace): " " # (4..5) - (variant꞉ ColonEqual): ":=" # (5..7) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_shl/generated/0.4.11-success.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_shl/generated/0.4.11-success.yml index 47db775a8a..2b3212bbee 100644 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_shl/generated/0.4.11-success.yml +++ b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_shl/generated/0.4.11-success.yml @@ -9,7 +9,7 @@ Tree: - (YulVariableAssignmentStatement): # "shl := 0\n" (0..9) - (variables꞉ YulPaths): # "shl" (0..3) - (item꞉ YulPath): # "shl" (0..3) - - (item꞉ YulPathComponent) ► (variant꞉ YulIdentifier): "shl" # (0..3) + - (item꞉ YulIdentifier): "shl" # (0..3) - (assignment꞉ YulAssignmentOperator): # " :=" (3..6) - (leading_trivia꞉ Whitespace): " " # (3..4) - (variant꞉ ColonEqual): ":=" # (4..6) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_shl/generated/0.8.10-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_shl/generated/0.8.10-failure.yml deleted file mode 100644 index c61c6d40ed..0000000000 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_shl/generated/0.8.10-failure.yml +++ /dev/null @@ -1,17 +0,0 @@ -# This file is generated automatically by infrastructure scripts. Please don't edit by hand. - -Source: > - 1 │ shl := 0 │ 0..8 - -Errors: # 1 total - - > - Error: Expected YulAddressKeyword or YulIdentifier. - ╭─[crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_shl/input.sol:1:1] - │ - 1 │ shl := 0 - │ ────┬──── - │ ╰────── Error occurred here. - ───╯ - -Tree: - - (UNRECOGNIZED): "shl := 0\n" # (0..9) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_shr/generated/0.4.11-success.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_shr/generated/0.4.11-success.yml index 034ba39553..e29118b19f 100644 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_shr/generated/0.4.11-success.yml +++ b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_shr/generated/0.4.11-success.yml @@ -9,7 +9,7 @@ Tree: - (YulVariableAssignmentStatement): # "shr := 0\n" (0..9) - (variables꞉ YulPaths): # "shr" (0..3) - (item꞉ YulPath): # "shr" (0..3) - - (item꞉ YulPathComponent) ► (variant꞉ YulIdentifier): "shr" # (0..3) + - (item꞉ YulIdentifier): "shr" # (0..3) - (assignment꞉ YulAssignmentOperator): # " :=" (3..6) - (leading_trivia꞉ Whitespace): " " # (3..4) - (variant꞉ ColonEqual): ":=" # (4..6) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_shr/generated/0.8.10-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_shr/generated/0.8.10-failure.yml deleted file mode 100644 index 4201c01713..0000000000 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_shr/generated/0.8.10-failure.yml +++ /dev/null @@ -1,17 +0,0 @@ -# This file is generated automatically by infrastructure scripts. Please don't edit by hand. - -Source: > - 1 │ shr := 0 │ 0..8 - -Errors: # 1 total - - > - Error: Expected YulAddressKeyword or YulIdentifier. - ╭─[crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_shr/input.sol:1:1] - │ - 1 │ shr := 0 - │ ────┬──── - │ ╰────── Error occurred here. - ───╯ - -Tree: - - (UNRECOGNIZED): "shr := 0\n" # (0..9) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_signextend/generated/0.8.10-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_signextend/generated/0.8.10-failure.yml deleted file mode 100644 index be71d5724f..0000000000 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_signextend/generated/0.8.10-failure.yml +++ /dev/null @@ -1,17 +0,0 @@ -# This file is generated automatically by infrastructure scripts. Please don't edit by hand. - -Source: > - 1 │ signextend := 0 │ 0..15 - -Errors: # 1 total - - > - Error: Expected YulAddressKeyword or YulIdentifier. - ╭─[crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_signextend/input.sol:1:1] - │ - 1 │ signextend := 0 - │ ────────┬─────── - │ ╰───────── Error occurred here. - ───╯ - -Tree: - - (UNRECOGNIZED): "signextend := 0\n" # (0..16) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_sload/generated/0.8.10-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_sload/generated/0.8.10-failure.yml deleted file mode 100644 index e612ede164..0000000000 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_sload/generated/0.8.10-failure.yml +++ /dev/null @@ -1,17 +0,0 @@ -# This file is generated automatically by infrastructure scripts. Please don't edit by hand. - -Source: > - 1 │ sload := 0 │ 0..10 - -Errors: # 1 total - - > - Error: Expected YulAddressKeyword or YulIdentifier. - ╭─[crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_sload/input.sol:1:1] - │ - 1 │ sload := 0 - │ ─────┬───── - │ ╰─────── Error occurred here. - ───╯ - -Tree: - - (UNRECOGNIZED): "sload := 0\n" # (0..11) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_slt/generated/0.8.10-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_slt/generated/0.8.10-failure.yml deleted file mode 100644 index f99be7b639..0000000000 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_slt/generated/0.8.10-failure.yml +++ /dev/null @@ -1,17 +0,0 @@ -# This file is generated automatically by infrastructure scripts. Please don't edit by hand. - -Source: > - 1 │ slt := 0 │ 0..8 - -Errors: # 1 total - - > - Error: Expected YulAddressKeyword or YulIdentifier. - ╭─[crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_slt/input.sol:1:1] - │ - 1 │ slt := 0 - │ ────┬──── - │ ╰────── Error occurred here. - ───╯ - -Tree: - - (UNRECOGNIZED): "slt := 0\n" # (0..9) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_smod/generated/0.8.10-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_smod/generated/0.8.10-failure.yml deleted file mode 100644 index 595c058dc0..0000000000 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_smod/generated/0.8.10-failure.yml +++ /dev/null @@ -1,17 +0,0 @@ -# This file is generated automatically by infrastructure scripts. Please don't edit by hand. - -Source: > - 1 │ smod := 0 │ 0..9 - -Errors: # 1 total - - > - Error: Expected YulAddressKeyword or YulIdentifier. - ╭─[crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_smod/input.sol:1:1] - │ - 1 │ smod := 0 - │ ─────┬──── - │ ╰────── Error occurred here. - ───╯ - -Tree: - - (UNRECOGNIZED): "smod := 0\n" # (0..10) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_sstore/generated/0.8.10-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_sstore/generated/0.8.10-failure.yml deleted file mode 100644 index fc7fee7cb4..0000000000 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_sstore/generated/0.8.10-failure.yml +++ /dev/null @@ -1,17 +0,0 @@ -# This file is generated automatically by infrastructure scripts. Please don't edit by hand. - -Source: > - 1 │ sstore := 0 │ 0..11 - -Errors: # 1 total - - > - Error: Expected YulAddressKeyword or YulIdentifier. - ╭─[crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_sstore/input.sol:1:1] - │ - 1 │ sstore := 0 - │ ──────┬───── - │ ╰─────── Error occurred here. - ───╯ - -Tree: - - (UNRECOGNIZED): "sstore := 0\n" # (0..12) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_staticcall/generated/0.4.11-success.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_staticcall/generated/0.4.11-success.yml index 18aae8eaa8..68bbc01ed3 100644 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_staticcall/generated/0.4.11-success.yml +++ b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_staticcall/generated/0.4.11-success.yml @@ -9,7 +9,7 @@ Tree: - (YulVariableAssignmentStatement): # "staticcall := 0\n" (0..16) - (variables꞉ YulPaths): # "staticcall" (0..10) - (item꞉ YulPath): # "staticcall" (0..10) - - (item꞉ YulPathComponent) ► (variant꞉ YulIdentifier): "staticcall" # (0..10) + - (item꞉ YulIdentifier): "staticcall" # (0..10) - (assignment꞉ YulAssignmentOperator): # " :=" (10..13) - (leading_trivia꞉ Whitespace): " " # (10..11) - (variant꞉ ColonEqual): ":=" # (11..13) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_staticcall/generated/0.8.10-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_staticcall/generated/0.8.10-failure.yml deleted file mode 100644 index f3c72b7ad3..0000000000 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_staticcall/generated/0.8.10-failure.yml +++ /dev/null @@ -1,17 +0,0 @@ -# This file is generated automatically by infrastructure scripts. Please don't edit by hand. - -Source: > - 1 │ staticcall := 0 │ 0..15 - -Errors: # 1 total - - > - Error: Expected YulAddressKeyword or YulIdentifier. - ╭─[crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_staticcall/input.sol:1:1] - │ - 1 │ staticcall := 0 - │ ────────┬─────── - │ ╰───────── Error occurred here. - ───╯ - -Tree: - - (UNRECOGNIZED): "staticcall := 0\n" # (0..16) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_stop/generated/0.8.10-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_stop/generated/0.8.10-failure.yml deleted file mode 100644 index ef87755155..0000000000 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_stop/generated/0.8.10-failure.yml +++ /dev/null @@ -1,17 +0,0 @@ -# This file is generated automatically by infrastructure scripts. Please don't edit by hand. - -Source: > - 1 │ stop := 0 │ 0..9 - -Errors: # 1 total - - > - Error: Expected YulAddressKeyword or YulIdentifier. - ╭─[crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_stop/input.sol:1:1] - │ - 1 │ stop := 0 - │ ─────┬──── - │ ╰────── Error occurred here. - ───╯ - -Tree: - - (UNRECOGNIZED): "stop := 0\n" # (0..10) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_sub/generated/0.8.10-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_sub/generated/0.8.10-failure.yml deleted file mode 100644 index bceb8ec080..0000000000 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_sub/generated/0.8.10-failure.yml +++ /dev/null @@ -1,17 +0,0 @@ -# This file is generated automatically by infrastructure scripts. Please don't edit by hand. - -Source: > - 1 │ sub := 0 │ 0..8 - -Errors: # 1 total - - > - Error: Expected YulAddressKeyword or YulIdentifier. - ╭─[crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_sub/input.sol:1:1] - │ - 1 │ sub := 0 - │ ────┬──── - │ ╰────── Error occurred here. - ───╯ - -Tree: - - (UNRECOGNIZED): "sub := 0\n" # (0..9) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_suicide/generated/0.5.0-success.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_suicide/generated/0.5.0-success.yml index bfef325e21..ad998f3e1b 100644 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_suicide/generated/0.5.0-success.yml +++ b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_suicide/generated/0.5.0-success.yml @@ -9,7 +9,7 @@ Tree: - (YulVariableAssignmentStatement): # "suicide := 0\n" (0..13) - (variables꞉ YulPaths): # "suicide" (0..7) - (item꞉ YulPath): # "suicide" (0..7) - - (item꞉ YulPathComponent) ► (variant꞉ YulIdentifier): "suicide" # (0..7) + - (item꞉ YulIdentifier): "suicide" # (0..7) - (assignment꞉ YulAssignmentOperator): # " :=" (7..10) - (leading_trivia꞉ Whitespace): " " # (7..8) - (variant꞉ ColonEqual): ":=" # (8..10) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_timestamp/generated/0.8.10-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_timestamp/generated/0.8.10-failure.yml deleted file mode 100644 index a2a1dd9d42..0000000000 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_timestamp/generated/0.8.10-failure.yml +++ /dev/null @@ -1,17 +0,0 @@ -# This file is generated automatically by infrastructure scripts. Please don't edit by hand. - -Source: > - 1 │ timestamp := 0 │ 0..14 - -Errors: # 1 total - - > - Error: Expected YulAddressKeyword or YulIdentifier. - ╭─[crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_timestamp/input.sol:1:1] - │ - 1 │ timestamp := 0 - │ ───────┬─────── - │ ╰───────── Error occurred here. - ───╯ - -Tree: - - (UNRECOGNIZED): "timestamp := 0\n" # (0..15) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_xor/generated/0.8.10-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_xor/generated/0.8.10-failure.yml deleted file mode 100644 index 0f4ff5d0f8..0000000000 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_xor/generated/0.8.10-failure.yml +++ /dev/null @@ -1,17 +0,0 @@ -# This file is generated automatically by infrastructure scripts. Please don't edit by hand. - -Source: > - 1 │ xor := 0 │ 0..8 - -Errors: # 1 total - - > - Error: Expected YulAddressKeyword or YulIdentifier. - ╭─[crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_xor/input.sol:1:1] - │ - 1 │ xor := 0 - │ ────┬──── - │ ╰────── Error occurred here. - ───╯ - -Tree: - - (UNRECOGNIZED): "xor := 0\n" # (0..9) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableDeclarationStatement/multiple_variables_with_value/generated/0.4.11-success.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableDeclarationStatement/multiple_variables_with_value/generated/0.4.11-success.yml index 9d3f3fe9e8..864b22fe45 100644 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableDeclarationStatement/multiple_variables_with_value/generated/0.4.11-success.yml +++ b/crates/solidity/testing/snapshots/cst_output/YulVariableDeclarationStatement/multiple_variables_with_value/generated/0.4.11-success.yml @@ -23,9 +23,8 @@ Tree: - (variant꞉ ColonEqual): ":=" # (12..14) - (expression꞉ YulExpression) ► (variant꞉ YulFunctionCallExpression): # " foo()\n" (14..21) - (operand꞉ YulExpression) ► (variant꞉ YulPath): # " foo" (14..18) - - (item꞉ YulPathComponent): # " foo" (14..18) - - (leading_trivia꞉ Whitespace): " " # (14..15) - - (variant꞉ YulIdentifier): "foo" # (15..18) + - (leading_trivia꞉ Whitespace): " " # (14..15) + - (item꞉ YulIdentifier): "foo" # (15..18) - (open_paren꞉ OpenParen): "(" # (18..19) - (arguments꞉ YulArguments): [] # (19..19) - (close_paren꞉ CloseParen): ")" # (19..20)