diff --git a/.changeset/young-bottles-beam.md b/.changeset/young-bottles-beam.md new file mode 100644 index 0000000000..24a91c32ef --- /dev/null +++ b/.changeset/young-bottles-beam.md @@ -0,0 +1,5 @@ +--- +"@slang-private/codegen-runtime-npm-package": patch +--- + +Change `ParseOutput` and `File.tree` to return a `NonTerminal` instead of a `Node` diff --git a/crates/codegen/runtime/cargo/crate/src/runtime/compilation/file.rs b/crates/codegen/runtime/cargo/crate/src/runtime/compilation/file.rs index 07693c8335..a5a7df7862 100644 --- a/crates/codegen/runtime/cargo/crate/src/runtime/compilation/file.rs +++ b/crates/codegen/runtime/cargo/crate/src/runtime/compilation/file.rs @@ -1,19 +1,20 @@ use std::collections::BTreeMap; +use std::rc::Rc; use metaslang_cst::text_index::TextIndex; -use crate::cst::{Cursor, Node}; +use crate::cst::{Cursor, NonterminalNode}; #[derive(Clone)] pub struct File { id: String, - tree: Node, + tree: Rc, resolved_imports: BTreeMap, } impl File { - pub(super) fn new(id: String, tree: Node) -> Self { + pub(super) fn new(id: String, tree: Rc) -> Self { Self { id, tree, @@ -26,12 +27,12 @@ impl File { &self.id } - pub fn tree(&self) -> &Node { + pub fn tree(&self) -> &Rc { &self.tree } pub fn create_tree_cursor(&self) -> Cursor { - self.tree.clone().cursor_with_offset(TextIndex::ZERO) + Rc::clone(&self.tree).cursor_with_offset(TextIndex::ZERO) } pub(super) fn resolve_import(&mut self, import_path: &Cursor, destination_file_id: String) { diff --git a/crates/codegen/runtime/cargo/crate/src/runtime/compilation/internal_builder.rs b/crates/codegen/runtime/cargo/crate/src/runtime/compilation/internal_builder.rs index f35bea3920..14ccb1ff35 100644 --- a/crates/codegen/runtime/cargo/crate/src/runtime/compilation/internal_builder.rs +++ b/crates/codegen/runtime/cargo/crate/src/runtime/compilation/internal_builder.rs @@ -43,7 +43,7 @@ impl InternalCompilationBuilder { let import_paths = self.imports.extract(parse_output.create_tree_cursor()); - let file = File::new(id.clone(), parse_output.tree().clone()); + let file = File::new(id.clone(), Rc::clone(parse_output.tree())); self.files.insert(id, file); AddFileResponse { import_paths } diff --git a/crates/codegen/runtime/cargo/crate/src/runtime/parser/lexer/mod.rs b/crates/codegen/runtime/cargo/crate/src/runtime/parser/lexer/mod.rs index d5146b38f1..a7aa61c41a 100644 --- a/crates/codegen/runtime/cargo/crate/src/runtime/parser/lexer/mod.rs +++ b/crates/codegen/runtime/cargo/crate/src/runtime/parser/lexer/mod.rs @@ -94,7 +94,7 @@ pub(crate) trait Lexer { .is_some_and(|t| t.accepted_as(kind)) { input.set_position(start); - return ParserResult::no_match(None, vec![kind]); + return ParserResult::no_match(vec![kind]); } let end = input.position(); @@ -126,7 +126,7 @@ pub(crate) trait Lexer { .is_some_and(|t| t.accepted_as(kind)) { input.set_position(restore); - return ParserResult::no_match(None, vec![kind]); + return ParserResult::no_match(vec![kind]); } let end = input.position(); children.push(Edge::root(Node::terminal(kind, input.content(start..end)))); diff --git a/crates/codegen/runtime/cargo/crate/src/runtime/parser/parse_output.rs b/crates/codegen/runtime/cargo/crate/src/runtime/parser/parse_output.rs index 4fbb7d45f1..d395732cd2 100644 --- a/crates/codegen/runtime/cargo/crate/src/runtime/parser/parse_output.rs +++ b/crates/codegen/runtime/cargo/crate/src/runtime/parser/parse_output.rs @@ -1,14 +1,16 @@ -use crate::cst::{Cursor, Node, TextIndex}; +use std::rc::Rc; + +use crate::cst::{Cursor, NonterminalNode, TextIndex}; use crate::parser::ParseError; #[derive(Clone, Debug, PartialEq)] pub struct ParseOutput { - pub(crate) tree: Node, + pub(crate) tree: Rc, pub(crate) errors: Vec, } impl ParseOutput { - pub fn tree(&self) -> &Node { + pub fn tree(&self) -> &Rc { &self.tree } @@ -22,6 +24,6 @@ impl ParseOutput { /// Creates a cursor that starts at the root of the parse tree. pub fn create_tree_cursor(&self) -> Cursor { - self.tree.clone().cursor_with_offset(TextIndex::ZERO) + Rc::clone(&self.tree).cursor_with_offset(TextIndex::ZERO) } } diff --git a/crates/codegen/runtime/cargo/crate/src/runtime/parser/parser.rs.jinja2 b/crates/codegen/runtime/cargo/crate/src/runtime/parser/parser.rs.jinja2 index b5d5399f5d..ec4b39e366 100644 --- a/crates/codegen/runtime/cargo/crate/src/runtime/parser/parser.rs.jinja2 +++ b/crates/codegen/runtime/cargo/crate/src/runtime/parser/parser.rs.jinja2 @@ -108,7 +108,7 @@ impl Parser { {%- else -%} match kind { {%- for parser_name, _ in model.parser.parser_functions -%} - NonterminalKind::{{ parser_name }} => Self::{{ parser_name | snake_case }}.parse(self, input), + NonterminalKind::{{ parser_name }} => Self::{{ parser_name | snake_case }}.parse(self, input, kind), {%- endfor -%} } {%- endif -%} diff --git a/crates/codegen/runtime/cargo/crate/src/runtime/parser/parser_support/parser_function.rs b/crates/codegen/runtime/cargo/crate/src/runtime/parser/parser_support/parser_function.rs index a34d29c681..d0b5f1aaa5 100644 --- a/crates/codegen/runtime/cargo/crate/src/runtime/parser/parser_support/parser_function.rs +++ b/crates/codegen/runtime/cargo/crate/src/runtime/parser/parser_support/parser_function.rs @@ -1,6 +1,9 @@ use std::rc::Rc; -use crate::cst::{Edge, EdgeLabel, Node, TerminalKind, TerminalKindExtensions, TextIndex}; +use crate::cst::{ + Edge, EdgeLabel, Node, NonterminalKind, NonterminalNode, TerminalKind, TerminalKindExtensions, + TextIndex, +}; use crate::parser::lexer::Lexer; use crate::parser::parser_support::context::ParserContext; use crate::parser::parser_support::parser_result::{ @@ -12,7 +15,7 @@ pub trait ParserFunction

where Self: Fn(&P, &mut ParserContext<'_>) -> ParserResult, { - fn parse(&self, parser: &P, input: &str) -> ParseOutput; + fn parse(&self, parser: &P, input: &str, topmost_kind: NonterminalKind) -> ParseOutput; } impl ParserFunction

for F @@ -21,7 +24,7 @@ where F: Fn(&P, &mut ParserContext<'_>) -> ParserResult, { #[allow(clippy::too_many_lines)] - fn parse(&self, parser: &P, input: &str) -> ParseOutput { + fn parse(&self, parser: &P, input: &str, topmost_kind: NonterminalKind) -> ParseOutput { let mut stream = ParserContext::new(input); let mut result = self(parser, &mut stream); @@ -46,7 +49,7 @@ where let mut new_children = nonterminal.children.clone(); new_children.extend(eof_trivia); - topmost.node = Node::nonterminal(nonterminal.kind, new_children); + topmost.node = Node::nonterminal(topmost_kind, new_children); } } @@ -62,7 +65,7 @@ where // trivia is already parsed twice, one for each branch. And there's a good reason: each branch might // accept different trivia, so it's not clear what the combination of the two rules should return in a // NoMatch. Therefore, we just parse it again. Note that trivia is anyway cached by the parser (#1119). - let mut trivia_nodes = if let ParserResult::Match(matched) = + let mut children = if let ParserResult::Match(matched) = Lexer::leading_trivia(parser, &mut stream) { matched.nodes @@ -71,7 +74,7 @@ where }; let mut start = TextIndex::ZERO; - for edge in &trivia_nodes { + for edge in &children { if let Node::Terminal(terminal) = &edge.node { if terminal.kind.is_valid() { start.advance_str(terminal.text.as_str()); @@ -86,14 +89,11 @@ where }; let node = Node::terminal(kind, input.to_string()); - let tree = if no_match.kind.is_none() || start.utf8 == 0 { - node - } else { - trivia_nodes.push(Edge { label, node }); - Node::nonterminal(no_match.kind.unwrap(), trivia_nodes) - }; + + children.push(Edge { label, node }); + ParseOutput { - tree, + tree: Rc::new(NonterminalNode::new(topmost_kind, children)), errors: vec![ParseError::new( start..start + input.into(), no_match.expected_terminals, @@ -161,17 +161,17 @@ where )); ParseOutput { - tree: Node::nonterminal(topmost_node.kind, new_children), + tree: Rc::new(NonterminalNode::new(topmost_node.kind, new_children)), errors, } } else { - let tree = Node::Nonterminal(topmost_node); + let tree = topmost_node; let errors = stream.into_errors(); // Sanity check: Make sure that succesful parse is equivalent to not having any invalid nodes debug_assert_eq!( errors.is_empty(), - tree.clone() + Rc::clone(&tree) .cursor_with_offset(TextIndex::ZERO) .remaining_nodes() .all(|edge| edge diff --git a/crates/codegen/runtime/cargo/crate/src/runtime/parser/parser_support/parser_result.rs b/crates/codegen/runtime/cargo/crate/src/runtime/parser/parser_support/parser_result.rs index 3c2e9258b1..a3b7503e39 100644 --- a/crates/codegen/runtime/cargo/crate/src/runtime/parser/parser_support/parser_result.rs +++ b/crates/codegen/runtime/cargo/crate/src/runtime/parser/parser_support/parser_result.rs @@ -16,7 +16,6 @@ pub enum ParserResult { impl Default for ParserResult { fn default() -> Self { Self::NoMatch(NoMatch { - kind: None, expected_terminals: vec![], }) } @@ -35,13 +34,13 @@ impl ParserResult { ParserResult::IncompleteMatch(IncompleteMatch::new(nodes, expected_terminals)) } - /// Whenever a parser didn't run because it's disabled due to versioning. Shorthand for `no_match(None, vec![])`. + /// Whenever a parser didn't run because it's disabled due to versioning. Shorthand for `no_match(vec![])`. pub fn disabled() -> Self { - Self::no_match(None, vec![]) + Self::no_match(vec![]) } - pub fn no_match(kind: Option, expected_terminals: Vec) -> Self { - ParserResult::NoMatch(NoMatch::new(kind, expected_terminals)) + pub fn no_match(expected_terminals: Vec) -> Self { + ParserResult::NoMatch(NoMatch::new(expected_terminals)) } #[must_use] @@ -62,9 +61,7 @@ impl ParserResult { nodes: vec![Edge::root(Node::nonterminal(new_kind, skipped.nodes))], ..skipped }), - ParserResult::NoMatch(no_match) => { - ParserResult::no_match(Some(new_kind), no_match.expected_terminals) - } + ParserResult::NoMatch(no_match) => ParserResult::no_match(no_match.expected_terminals), ParserResult::PrattOperatorMatch(_) => { unreachable!("PrattOperatorMatch cannot be converted to a nonterminal") } @@ -243,18 +240,13 @@ impl IncompleteMatch { #[derive(PartialEq, Eq, Clone, Debug)] pub struct NoMatch { - /// The nonterminal kind this match is coming from - pub kind: Option, /// Terminals that would have allowed for more progress. Collected for the purposes of error reporting. pub expected_terminals: Vec, } impl NoMatch { - pub fn new(kind: Option, expected_terminals: Vec) -> Self { - Self { - kind, - expected_terminals, - } + pub fn new(expected_terminals: Vec) -> Self { + Self { expected_terminals } } } diff --git a/crates/codegen/runtime/cargo/crate/src/runtime/parser/parser_support/recovery.rs b/crates/codegen/runtime/cargo/crate/src/runtime/parser/parser_support/recovery.rs index 9885e723b3..cec55a393c 100644 --- a/crates/codegen/runtime/cargo/crate/src/runtime/parser/parser_support/recovery.rs +++ b/crates/codegen/runtime/cargo/crate/src/runtime/parser/parser_support/recovery.rs @@ -105,7 +105,7 @@ impl ParserResult { ParseResultKind::Incomplete => { ParserResult::incomplete_match(nodes, expected_terminals) } - ParseResultKind::NoMatch => ParserResult::no_match(None, expected_terminals), + ParseResultKind::NoMatch => ParserResult::no_match(expected_terminals), } } } diff --git a/crates/codegen/runtime/cargo/crate/src/runtime/parser/parser_support/repetition_helper.rs b/crates/codegen/runtime/cargo/crate/src/runtime/parser/parser_support/repetition_helper.rs index 3d612e4fe3..e4bcf1433d 100644 --- a/crates/codegen/runtime/cargo/crate/src/runtime/parser/parser_support/repetition_helper.rs +++ b/crates/codegen/runtime/cargo/crate/src/runtime/parser/parser_support/repetition_helper.rs @@ -26,10 +26,7 @@ impl RepetitionHelper { // Couldn't get a full match but we allow 0 items - return an empty match // so the parse is considered valid but note the expected terminals - ParserResult::NoMatch(NoMatch { - kind: _, - expected_terminals, - }) if MIN_COUNT == 0 => { + ParserResult::NoMatch(NoMatch { expected_terminals }) if MIN_COUNT == 0 => { return ParserResult::r#match(vec![], expected_terminals); } // Don't try repeating if we don't have a full match and we require at least one @@ -63,9 +60,7 @@ impl RepetitionHelper { ParserResult::IncompleteMatch(IncompleteMatch { expected_terminals, .. }) - | ParserResult::NoMatch(NoMatch { - expected_terminals, .. - }), + | ParserResult::NoMatch(NoMatch { expected_terminals }), ) => { input.rewind(save); running.expected_terminals = expected_terminals; diff --git a/crates/codegen/runtime/cargo/crate/src/runtime/parser/parser_support/separated_helper.rs b/crates/codegen/runtime/cargo/crate/src/runtime/parser/parser_support/separated_helper.rs index 68c15223f9..b4a78fa1ac 100644 --- a/crates/codegen/runtime/cargo/crate/src/runtime/parser/parser_support/separated_helper.rs +++ b/crates/codegen/runtime/cargo/crate/src/runtime/parser/parser_support/separated_helper.rs @@ -90,7 +90,7 @@ impl SeparatedHelper { } ParserResult::NoMatch(no_match) => { return if accum.is_empty() { - ParserResult::no_match(None, no_match.expected_terminals) + ParserResult::no_match(no_match.expected_terminals) } else { ParserResult::incomplete_match(accum, no_match.expected_terminals) }; diff --git a/crates/codegen/runtime/cargo/wasm/src/runtime/interface/compilation.wit.jinja2 b/crates/codegen/runtime/cargo/wasm/src/runtime/interface/compilation.wit.jinja2 index 40eb5fc094..542e2b398e 100644 --- a/crates/codegen/runtime/cargo/wasm/src/runtime/interface/compilation.wit.jinja2 +++ b/crates/codegen/runtime/cargo/wasm/src/runtime/interface/compilation.wit.jinja2 @@ -1,6 +1,6 @@ interface compilation { use bindings.{binding-graph}; - use cst.{node, cursor}; + use cst.{nonterminal-node, cursor}; /// A builder for creating compilation units. /// Allows incrementally building a transitive list of all files and their imports. @@ -60,7 +60,7 @@ interface compilation { id: func() -> string; /// Returns the syntax tree of this file. - tree: func() -> node; + tree: func() -> nonterminal-node; /// Creates a cursor for traversing the syntax tree of this file. create-tree-cursor: func() -> cursor; diff --git a/crates/codegen/runtime/cargo/wasm/src/runtime/interface/generated/compilation.wit b/crates/codegen/runtime/cargo/wasm/src/runtime/interface/generated/compilation.wit index 0e49e71703..ea64aab4ac 100644 --- a/crates/codegen/runtime/cargo/wasm/src/runtime/interface/generated/compilation.wit +++ b/crates/codegen/runtime/cargo/wasm/src/runtime/interface/generated/compilation.wit @@ -2,7 +2,7 @@ interface compilation { use bindings.{binding-graph}; - use cst.{node, cursor}; + use cst.{nonterminal-node, cursor}; /// A builder for creating compilation units. /// Allows incrementally building a transitive list of all files and their imports. @@ -62,7 +62,7 @@ interface compilation { id: func() -> string; /// Returns the syntax tree of this file. - tree: func() -> node; + tree: func() -> nonterminal-node; /// Creates a cursor for traversing the syntax tree of this file. create-tree-cursor: func() -> cursor; diff --git a/crates/codegen/runtime/cargo/wasm/src/runtime/interface/generated/parser.wit b/crates/codegen/runtime/cargo/wasm/src/runtime/interface/generated/parser.wit index df41c2e0fc..6eca8e01ae 100644 --- a/crates/codegen/runtime/cargo/wasm/src/runtime/interface/generated/parser.wit +++ b/crates/codegen/runtime/cargo/wasm/src/runtime/interface/generated/parser.wit @@ -1,7 +1,7 @@ // This file is generated automatically by infrastructure scripts. Please don't edit by hand. interface parser { - use cst.{cursor, node, nonterminal-kind, text-range}; + use cst.{cursor, nonterminal-node, nonterminal-kind, text-range}; /// A parser instance that can parse source code into syntax trees. /// Each parser is configured for a specific language version and grammar. @@ -34,7 +34,7 @@ interface parser { resource parse-output { /// Returns the root node of the parsed syntax tree. /// Even if there are parsing errors, a partial tree will still be available. - tree: func() -> node; + tree: func() -> nonterminal-node; /// Returns a list of all parsing errors encountered. /// An empty list indicates successful parsing with no errors. diff --git a/crates/codegen/runtime/cargo/wasm/src/runtime/interface/parser.wit.jinja2 b/crates/codegen/runtime/cargo/wasm/src/runtime/interface/parser.wit.jinja2 index 3a155a6535..ebe1e15d83 100644 --- a/crates/codegen/runtime/cargo/wasm/src/runtime/interface/parser.wit.jinja2 +++ b/crates/codegen/runtime/cargo/wasm/src/runtime/interface/parser.wit.jinja2 @@ -1,5 +1,5 @@ interface parser { - use cst.{cursor, node, nonterminal-kind, text-range}; + use cst.{cursor, nonterminal-node, nonterminal-kind, text-range}; /// A parser instance that can parse source code into syntax trees. /// Each parser is configured for a specific language version and grammar. @@ -32,7 +32,7 @@ interface parser { resource parse-output { /// Returns the root node of the parsed syntax tree. /// Even if there are parsing errors, a partial tree will still be available. - tree: func() -> node; + tree: func() -> nonterminal-node; /// Returns a list of all parsing errors encountered. /// An empty list indicates successful parsing with no errors. diff --git a/crates/codegen/runtime/cargo/wasm/src/runtime/wrappers/compilation/mod.rs b/crates/codegen/runtime/cargo/wasm/src/runtime/wrappers/compilation/mod.rs index 3ecc07023c..38b6e130ca 100644 --- a/crates/codegen/runtime/cargo/wasm/src/runtime/wrappers/compilation/mod.rs +++ b/crates/codegen/runtime/cargo/wasm/src/runtime/wrappers/compilation/mod.rs @@ -11,7 +11,9 @@ mod ffi { Guest, GuestCompilationUnit, GuestFile, GuestInternalCompilationBuilder, InternalCompilationBuilder, InternalCompilationBuilderBorrow, }; - pub use crate::wasm_crate::bindgen::exports::nomic_foundation::slang::cst::{Cursor, Node}; + pub use crate::wasm_crate::bindgen::exports::nomic_foundation::slang::cst::{ + Cursor, NonterminalNode, + }; } mod rust { @@ -110,7 +112,7 @@ define_rc_wrapper! { File { self._borrow_ffi().id().to_owned() } - fn tree(&self) -> ffi::Node { + fn tree(&self) -> ffi::NonterminalNode { self._borrow_ffi().tree().to_owned()._into_ffi() } diff --git a/crates/codegen/runtime/cargo/wasm/src/runtime/wrappers/parser/mod.rs b/crates/codegen/runtime/cargo/wasm/src/runtime/wrappers/parser/mod.rs index 679567d03e..c783de47bd 100644 --- a/crates/codegen/runtime/cargo/wasm/src/runtime/wrappers/parser/mod.rs +++ b/crates/codegen/runtime/cargo/wasm/src/runtime/wrappers/parser/mod.rs @@ -1,8 +1,10 @@ +use std::rc::Rc; + use crate::wasm_crate::utils::{define_wrapper, FromFFI, IntoFFI}; mod ffi { pub use crate::wasm_crate::bindgen::exports::nomic_foundation::slang::cst::{ - Cursor, Node, TextRange, + Cursor, NonterminalNode, TextRange, }; pub use crate::wasm_crate::bindgen::exports::nomic_foundation::slang::parser::{ Guest, GuestParseError, GuestParseOutput, GuestParser, NonterminalKind, ParseError, @@ -70,8 +72,8 @@ define_wrapper! { ParseError { //================================================ define_wrapper! { ParseOutput { - fn tree(&self) -> ffi::Node { - self._borrow_ffi().tree().clone()._into_ffi() + fn tree(&self) -> ffi::NonterminalNode { + Rc::clone(self._borrow_ffi().tree())._into_ffi() } fn errors(&self) -> Vec { diff --git a/crates/codegen/runtime/npm/package/wasm/generated/interfaces/nomic-foundation-slang-compilation.d.ts b/crates/codegen/runtime/npm/package/wasm/generated/interfaces/nomic-foundation-slang-compilation.d.ts index 6a3a511d89..c08b1eed29 100644 --- a/crates/codegen/runtime/npm/package/wasm/generated/interfaces/nomic-foundation-slang-compilation.d.ts +++ b/crates/codegen/runtime/npm/package/wasm/generated/interfaces/nomic-foundation-slang-compilation.d.ts @@ -7,8 +7,8 @@ export namespace NomicFoundationSlangCompilation { } import type { BindingGraph } from "./nomic-foundation-slang-bindings.js"; export { BindingGraph }; -import type { Node } from "./nomic-foundation-slang-cst.js"; -export { Node }; +import type { NonterminalNode } from "./nomic-foundation-slang-cst.js"; +export { NonterminalNode }; import type { Cursor } from "./nomic-foundation-slang-cst.js"; export { Cursor }; /** @@ -64,7 +64,7 @@ export class File { /** * Returns the syntax tree of this file. */ - get tree(): Node; + get tree(): NonterminalNode; /** * Creates a cursor for traversing the syntax tree of this file. */ diff --git a/crates/codegen/runtime/npm/package/wasm/generated/interfaces/nomic-foundation-slang-parser.d.ts b/crates/codegen/runtime/npm/package/wasm/generated/interfaces/nomic-foundation-slang-parser.d.ts index 6ac5bb7305..07fe4156a6 100644 --- a/crates/codegen/runtime/npm/package/wasm/generated/interfaces/nomic-foundation-slang-parser.d.ts +++ b/crates/codegen/runtime/npm/package/wasm/generated/interfaces/nomic-foundation-slang-parser.d.ts @@ -7,8 +7,8 @@ export namespace NomicFoundationSlangParser { } import type { Cursor } from "./nomic-foundation-slang-cst.js"; export { Cursor }; -import type { Node } from "./nomic-foundation-slang-cst.js"; -export { Node }; +import type { NonterminalNode } from "./nomic-foundation-slang-cst.js"; +export { NonterminalNode }; import type { NonterminalKind } from "./nomic-foundation-slang-cst.js"; export { NonterminalKind }; import type { TextRange } from "./nomic-foundation-slang-cst.js"; @@ -37,7 +37,7 @@ export class ParseOutput { * Returns the root node of the parsed syntax tree. * Even if there are parsing errors, a partial tree will still be available. */ - get tree(): Node; + get tree(): NonterminalNode; /** * Returns a list of all parsing errors encountered. * An empty list indicates successful parsing with no errors. diff --git a/crates/metaslang/cst/generated/public_api.txt b/crates/metaslang/cst/generated/public_api.txt index 0bc0de927a..526e846ff2 100644 --- a/crates/metaslang/cst/generated/public_api.txt +++ b/crates/metaslang/cst/generated/public_api.txt @@ -153,6 +153,8 @@ pub fn metaslang_cst::nodes::NonterminalNode::cursor_with_offset(self: alloc: pub fn metaslang_cst::nodes::NonterminalNode::descendants(self: alloc::rc::Rc) -> metaslang_cst::cursor::CursorIterator pub fn metaslang_cst::nodes::NonterminalNode::id(self: &alloc::rc::Rc) -> usize pub fn metaslang_cst::nodes::NonterminalNode::unparse(&self) -> alloc::string::String +impl metaslang_cst::nodes::NonterminalNode +pub fn metaslang_cst::nodes::NonterminalNode::new(kind: ::NonterminalKind, children: alloc::vec::Vec>) -> Self impl core::clone::Clone for metaslang_cst::nodes::NonterminalNode where ::NonterminalKind: core::clone::Clone pub fn metaslang_cst::nodes::NonterminalNode::clone(&self) -> metaslang_cst::nodes::NonterminalNode impl core::cmp::Eq for metaslang_cst::nodes::NonterminalNode where ::NonterminalKind: core::cmp::Eq diff --git a/crates/metaslang/cst/src/nodes.rs b/crates/metaslang/cst/src/nodes.rs index 1c39f16d8a..c437547094 100644 --- a/crates/metaslang/cst/src/nodes.rs +++ b/crates/metaslang/cst/src/nodes.rs @@ -36,6 +36,18 @@ pub struct Edge { pub node: Node, } +impl NonterminalNode { + pub fn new(kind: T::NonterminalKind, children: Vec>) -> Self { + let text_len = children.iter().map(|edge| edge.text_len()).sum(); + + NonterminalNode { + kind, + text_len, + children, + } + } +} + impl Edge { /// Creates an edge to a root node (using the default label). pub fn root(node: Node) -> Self { @@ -56,13 +68,7 @@ impl std::ops::Deref for Edge { impl Node { pub fn nonterminal(kind: T::NonterminalKind, children: Vec>) -> Self { - let text_len = children.iter().map(|edge| edge.text_len()).sum(); - - Self::Nonterminal(Rc::new(NonterminalNode { - kind, - text_len, - children, - })) + Self::Nonterminal(Rc::new(NonterminalNode::new(kind, children))) } pub fn terminal(kind: T::TerminalKind, text: String) -> Self { diff --git a/crates/solidity/outputs/cargo/crate/generated/public_api.txt b/crates/solidity/outputs/cargo/crate/generated/public_api.txt index 28e6a838a3..263373152a 100644 --- a/crates/solidity/outputs/cargo/crate/generated/public_api.txt +++ b/crates/solidity/outputs/cargo/crate/generated/public_api.txt @@ -37,7 +37,7 @@ pub struct slang_solidity::compilation::File impl slang_solidity::compilation::File pub fn slang_solidity::compilation::File::create_tree_cursor(&self) -> slang_solidity::cst::Cursor pub fn slang_solidity::compilation::File::id(&self) -> &str -pub fn slang_solidity::compilation::File::tree(&self) -> &slang_solidity::cst::Node +pub fn slang_solidity::compilation::File::tree(&self) -> &alloc::rc::Rc impl core::clone::Clone for slang_solidity::compilation::File pub fn slang_solidity::compilation::File::clone(&self) -> slang_solidity::compilation::File pub struct slang_solidity::compilation::InternalCompilationBuilder @@ -960,7 +960,7 @@ impl slang_solidity::parser::ParseOutput pub fn slang_solidity::parser::ParseOutput::create_tree_cursor(&self) -> slang_solidity::cst::Cursor pub fn slang_solidity::parser::ParseOutput::errors(&self) -> &alloc::vec::Vec pub fn slang_solidity::parser::ParseOutput::is_valid(&self) -> bool -pub fn slang_solidity::parser::ParseOutput::tree(&self) -> &slang_solidity::cst::Node +pub fn slang_solidity::parser::ParseOutput::tree(&self) -> &alloc::rc::Rc impl core::clone::Clone for slang_solidity::parser::ParseOutput pub fn slang_solidity::parser::ParseOutput::clone(&self) -> slang_solidity::parser::ParseOutput impl core::cmp::PartialEq for slang_solidity::parser::ParseOutput diff --git a/crates/solidity/outputs/cargo/crate/src/extensions/bindings/mod.rs b/crates/solidity/outputs/cargo/crate/src/extensions/bindings/mod.rs index 90b69796da..63a1a8ccaa 100644 --- a/crates/solidity/outputs/cargo/crate/src/extensions/bindings/mod.rs +++ b/crates/solidity/outputs/cargo/crate/src/extensions/bindings/mod.rs @@ -16,7 +16,8 @@ pub fn add_built_ins( let parser = Parser::create(version)?; let parse_output = parser.parse(Parser::ROOT_KIND, source); - let built_ins_cursor = transform(parse_output.tree()).cursor_with_offset(TextIndex::ZERO); + let built_ins_cursor = transform(&Node::Nonterminal(Rc::clone(parse_output.tree()))) + .cursor_with_offset(TextIndex::ZERO); builder.add_system_file("built_ins.sol", built_ins_cursor); Ok(()) diff --git a/crates/solidity/outputs/cargo/crate/src/generated/compilation/file.rs b/crates/solidity/outputs/cargo/crate/src/generated/compilation/file.rs index 94eee8ad56..2f5fd5bcc3 100644 --- a/crates/solidity/outputs/cargo/crate/src/generated/compilation/file.rs +++ b/crates/solidity/outputs/cargo/crate/src/generated/compilation/file.rs @@ -1,21 +1,22 @@ // This file is generated automatically by infrastructure scripts. Please don't edit by hand. use std::collections::BTreeMap; +use std::rc::Rc; use metaslang_cst::text_index::TextIndex; -use crate::cst::{Cursor, Node}; +use crate::cst::{Cursor, NonterminalNode}; #[derive(Clone)] pub struct File { id: String, - tree: Node, + tree: Rc, resolved_imports: BTreeMap, } impl File { - pub(super) fn new(id: String, tree: Node) -> Self { + pub(super) fn new(id: String, tree: Rc) -> Self { Self { id, tree, @@ -28,12 +29,12 @@ impl File { &self.id } - pub fn tree(&self) -> &Node { + pub fn tree(&self) -> &Rc { &self.tree } pub fn create_tree_cursor(&self) -> Cursor { - self.tree.clone().cursor_with_offset(TextIndex::ZERO) + Rc::clone(&self.tree).cursor_with_offset(TextIndex::ZERO) } pub(super) fn resolve_import(&mut self, import_path: &Cursor, destination_file_id: String) { diff --git a/crates/solidity/outputs/cargo/crate/src/generated/compilation/internal_builder.rs b/crates/solidity/outputs/cargo/crate/src/generated/compilation/internal_builder.rs index a0a79d7944..a0c2ec5e73 100644 --- a/crates/solidity/outputs/cargo/crate/src/generated/compilation/internal_builder.rs +++ b/crates/solidity/outputs/cargo/crate/src/generated/compilation/internal_builder.rs @@ -45,7 +45,7 @@ impl InternalCompilationBuilder { let import_paths = self.imports.extract(parse_output.create_tree_cursor()); - let file = File::new(id.clone(), parse_output.tree().clone()); + let file = File::new(id.clone(), Rc::clone(parse_output.tree())); self.files.insert(id, file); AddFileResponse { import_paths } 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 9ea72c7af4..1b2e858edf 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 @@ -9063,349 +9063,413 @@ impl Parser { pub fn parse(&self, kind: NonterminalKind, input: &str) -> ParseOutput { match kind { - NonterminalKind::AbicoderPragma => Self::abicoder_pragma.parse(self, input), - NonterminalKind::AdditiveExpression => Self::additive_expression.parse(self, input), - NonterminalKind::AddressType => Self::address_type.parse(self, input), - NonterminalKind::AndExpression => Self::and_expression.parse(self, input), - NonterminalKind::ArgumentsDeclaration => Self::arguments_declaration.parse(self, input), - NonterminalKind::ArrayExpression => Self::array_expression.parse(self, input), - NonterminalKind::ArrayTypeName => Self::array_type_name.parse(self, input), - NonterminalKind::ArrayValues => Self::array_values.parse(self, input), - NonterminalKind::AssemblyFlags => Self::assembly_flags.parse(self, input), + NonterminalKind::AbicoderPragma => Self::abicoder_pragma.parse(self, input, kind), + NonterminalKind::AdditiveExpression => { + Self::additive_expression.parse(self, input, kind) + } + NonterminalKind::AddressType => Self::address_type.parse(self, input, kind), + NonterminalKind::AndExpression => Self::and_expression.parse(self, input, kind), + NonterminalKind::ArgumentsDeclaration => { + Self::arguments_declaration.parse(self, input, kind) + } + NonterminalKind::ArrayExpression => Self::array_expression.parse(self, input, kind), + NonterminalKind::ArrayTypeName => Self::array_type_name.parse(self, input, kind), + NonterminalKind::ArrayValues => Self::array_values.parse(self, input, kind), + NonterminalKind::AssemblyFlags => Self::assembly_flags.parse(self, input, kind), NonterminalKind::AssemblyFlagsDeclaration => { - Self::assembly_flags_declaration.parse(self, input) + Self::assembly_flags_declaration.parse(self, input, kind) + } + NonterminalKind::AssemblyStatement => Self::assembly_statement.parse(self, input, kind), + NonterminalKind::AssignmentExpression => { + Self::assignment_expression.parse(self, input, kind) } - NonterminalKind::AssemblyStatement => Self::assembly_statement.parse(self, input), - NonterminalKind::AssignmentExpression => Self::assignment_expression.parse(self, input), NonterminalKind::BitwiseAndExpression => { - Self::bitwise_and_expression.parse(self, input) + Self::bitwise_and_expression.parse(self, input, kind) + } + NonterminalKind::BitwiseOrExpression => { + Self::bitwise_or_expression.parse(self, input, kind) } - NonterminalKind::BitwiseOrExpression => Self::bitwise_or_expression.parse(self, input), NonterminalKind::BitwiseXorExpression => { - Self::bitwise_xor_expression.parse(self, input) + Self::bitwise_xor_expression.parse(self, input, kind) } - NonterminalKind::Block => Self::block.parse(self, input), - NonterminalKind::BreakStatement => Self::break_statement.parse(self, input), - NonterminalKind::CallOptions => Self::call_options.parse(self, input), + NonterminalKind::Block => Self::block.parse(self, input, kind), + NonterminalKind::BreakStatement => Self::break_statement.parse(self, input, kind), + NonterminalKind::CallOptions => Self::call_options.parse(self, input, kind), NonterminalKind::CallOptionsExpression => { - Self::call_options_expression.parse(self, input) + Self::call_options_expression.parse(self, input, kind) + } + NonterminalKind::CatchClause => Self::catch_clause.parse(self, input, kind), + NonterminalKind::CatchClauseError => Self::catch_clause_error.parse(self, input, kind), + NonterminalKind::CatchClauses => Self::catch_clauses.parse(self, input, kind), + NonterminalKind::ComparisonExpression => { + Self::comparison_expression.parse(self, input, kind) } - NonterminalKind::CatchClause => Self::catch_clause.parse(self, input), - NonterminalKind::CatchClauseError => Self::catch_clause_error.parse(self, input), - NonterminalKind::CatchClauses => Self::catch_clauses.parse(self, input), - NonterminalKind::ComparisonExpression => Self::comparison_expression.parse(self, input), NonterminalKind::ConditionalExpression => { - Self::conditional_expression.parse(self, input) + Self::conditional_expression.parse(self, input, kind) + } + NonterminalKind::ConstantDefinition => { + Self::constant_definition.parse(self, input, kind) + } + NonterminalKind::ConstructorAttribute => { + Self::constructor_attribute.parse(self, input, kind) } - NonterminalKind::ConstantDefinition => Self::constant_definition.parse(self, input), - NonterminalKind::ConstructorAttribute => Self::constructor_attribute.parse(self, input), NonterminalKind::ConstructorAttributes => { - Self::constructor_attributes.parse(self, input) + Self::constructor_attributes.parse(self, input, kind) } NonterminalKind::ConstructorDefinition => { - Self::constructor_definition.parse(self, input) + Self::constructor_definition.parse(self, input, kind) + } + NonterminalKind::ContinueStatement => Self::continue_statement.parse(self, input, kind), + NonterminalKind::ContractDefinition => { + Self::contract_definition.parse(self, input, kind) } - NonterminalKind::ContinueStatement => Self::continue_statement.parse(self, input), - NonterminalKind::ContractDefinition => Self::contract_definition.parse(self, input), - NonterminalKind::ContractMember => Self::contract_member.parse(self, input), - NonterminalKind::ContractMembers => Self::contract_members.parse(self, input), + NonterminalKind::ContractMember => Self::contract_member.parse(self, input, kind), + NonterminalKind::ContractMembers => Self::contract_members.parse(self, input, kind), NonterminalKind::DecimalNumberExpression => { - Self::decimal_number_expression.parse(self, input) - } - NonterminalKind::DoWhileStatement => Self::do_while_statement.parse(self, input), - NonterminalKind::ElementaryType => Self::elementary_type.parse(self, input), - NonterminalKind::ElseBranch => Self::else_branch.parse(self, input), - NonterminalKind::EmitStatement => Self::emit_statement.parse(self, input), - NonterminalKind::EnumDefinition => Self::enum_definition.parse(self, input), - NonterminalKind::EnumMembers => Self::enum_members.parse(self, input), - NonterminalKind::EqualityExpression => Self::equality_expression.parse(self, input), - NonterminalKind::ErrorDefinition => Self::error_definition.parse(self, input), - NonterminalKind::ErrorParameter => Self::error_parameter.parse(self, input), - NonterminalKind::ErrorParameters => Self::error_parameters.parse(self, input), + Self::decimal_number_expression.parse(self, input, kind) + } + NonterminalKind::DoWhileStatement => Self::do_while_statement.parse(self, input, kind), + NonterminalKind::ElementaryType => Self::elementary_type.parse(self, input, kind), + NonterminalKind::ElseBranch => Self::else_branch.parse(self, input, kind), + NonterminalKind::EmitStatement => Self::emit_statement.parse(self, input, kind), + NonterminalKind::EnumDefinition => Self::enum_definition.parse(self, input, kind), + NonterminalKind::EnumMembers => Self::enum_members.parse(self, input, kind), + NonterminalKind::EqualityExpression => { + Self::equality_expression.parse(self, input, kind) + } + NonterminalKind::ErrorDefinition => Self::error_definition.parse(self, input, kind), + NonterminalKind::ErrorParameter => Self::error_parameter.parse(self, input, kind), + NonterminalKind::ErrorParameters => Self::error_parameters.parse(self, input, kind), NonterminalKind::ErrorParametersDeclaration => { - Self::error_parameters_declaration.parse(self, input) + Self::error_parameters_declaration.parse(self, input, kind) } - NonterminalKind::EventDefinition => Self::event_definition.parse(self, input), - NonterminalKind::EventParameter => Self::event_parameter.parse(self, input), - NonterminalKind::EventParameters => Self::event_parameters.parse(self, input), + NonterminalKind::EventDefinition => Self::event_definition.parse(self, input, kind), + NonterminalKind::EventParameter => Self::event_parameter.parse(self, input, kind), + NonterminalKind::EventParameters => Self::event_parameters.parse(self, input, kind), NonterminalKind::EventParametersDeclaration => { - Self::event_parameters_declaration.parse(self, input) + Self::event_parameters_declaration.parse(self, input, kind) + } + NonterminalKind::ExperimentalFeature => { + Self::experimental_feature.parse(self, input, kind) + } + NonterminalKind::ExperimentalPragma => { + Self::experimental_pragma.parse(self, input, kind) } - NonterminalKind::ExperimentalFeature => Self::experimental_feature.parse(self, input), - NonterminalKind::ExperimentalPragma => Self::experimental_pragma.parse(self, input), NonterminalKind::ExponentiationExpression => { - Self::exponentiation_expression.parse(self, input) + Self::exponentiation_expression.parse(self, input, kind) + } + NonterminalKind::Expression => Self::expression.parse(self, input, kind), + NonterminalKind::ExpressionStatement => { + Self::expression_statement.parse(self, input, kind) } - NonterminalKind::Expression => Self::expression.parse(self, input), - NonterminalKind::ExpressionStatement => Self::expression_statement.parse(self, input), NonterminalKind::FallbackFunctionAttribute => { - Self::fallback_function_attribute.parse(self, input) + Self::fallback_function_attribute.parse(self, input, kind) } NonterminalKind::FallbackFunctionAttributes => { - Self::fallback_function_attributes.parse(self, input) + Self::fallback_function_attributes.parse(self, input, kind) } NonterminalKind::FallbackFunctionDefinition => { - Self::fallback_function_definition.parse(self, input) + Self::fallback_function_definition.parse(self, input, kind) } - NonterminalKind::ForStatement => Self::for_statement.parse(self, input), + NonterminalKind::ForStatement => Self::for_statement.parse(self, input, kind), NonterminalKind::ForStatementCondition => { - Self::for_statement_condition.parse(self, input) + Self::for_statement_condition.parse(self, input, kind) } NonterminalKind::ForStatementInitialization => { - Self::for_statement_initialization.parse(self, input) + Self::for_statement_initialization.parse(self, input, kind) + } + NonterminalKind::FunctionAttribute => Self::function_attribute.parse(self, input, kind), + NonterminalKind::FunctionAttributes => { + Self::function_attributes.parse(self, input, kind) } - NonterminalKind::FunctionAttribute => Self::function_attribute.parse(self, input), - NonterminalKind::FunctionAttributes => Self::function_attributes.parse(self, input), - NonterminalKind::FunctionBody => Self::function_body.parse(self, input), + NonterminalKind::FunctionBody => Self::function_body.parse(self, input, kind), NonterminalKind::FunctionCallExpression => { - Self::function_call_expression.parse(self, input) + Self::function_call_expression.parse(self, input, kind) } - NonterminalKind::FunctionDefinition => Self::function_definition.parse(self, input), - NonterminalKind::FunctionName => Self::function_name.parse(self, input), - NonterminalKind::FunctionType => Self::function_type.parse(self, input), + NonterminalKind::FunctionDefinition => { + Self::function_definition.parse(self, input, kind) + } + NonterminalKind::FunctionName => Self::function_name.parse(self, input, kind), + NonterminalKind::FunctionType => Self::function_type.parse(self, input, kind), NonterminalKind::FunctionTypeAttribute => { - Self::function_type_attribute.parse(self, input) + Self::function_type_attribute.parse(self, input, kind) } NonterminalKind::FunctionTypeAttributes => { - Self::function_type_attributes.parse(self, input) - } - NonterminalKind::HexNumberExpression => Self::hex_number_expression.parse(self, input), - NonterminalKind::HexStringLiteral => Self::hex_string_literal.parse(self, input), - NonterminalKind::HexStringLiterals => Self::hex_string_literals.parse(self, input), - NonterminalKind::IdentifierPath => Self::identifier_path.parse(self, input), - NonterminalKind::IfStatement => Self::if_statement.parse(self, input), - NonterminalKind::ImportAlias => Self::import_alias.parse(self, input), - NonterminalKind::ImportClause => Self::import_clause.parse(self, input), - NonterminalKind::ImportDeconstruction => Self::import_deconstruction.parse(self, input), + Self::function_type_attributes.parse(self, input, kind) + } + NonterminalKind::HexNumberExpression => { + Self::hex_number_expression.parse(self, input, kind) + } + NonterminalKind::HexStringLiteral => Self::hex_string_literal.parse(self, input, kind), + NonterminalKind::HexStringLiterals => { + Self::hex_string_literals.parse(self, input, kind) + } + NonterminalKind::IdentifierPath => Self::identifier_path.parse(self, input, kind), + NonterminalKind::IfStatement => Self::if_statement.parse(self, input, kind), + NonterminalKind::ImportAlias => Self::import_alias.parse(self, input, kind), + NonterminalKind::ImportClause => Self::import_clause.parse(self, input, kind), + NonterminalKind::ImportDeconstruction => { + Self::import_deconstruction.parse(self, input, kind) + } NonterminalKind::ImportDeconstructionSymbol => { - Self::import_deconstruction_symbol.parse(self, input) + Self::import_deconstruction_symbol.parse(self, input, kind) } NonterminalKind::ImportDeconstructionSymbols => { - Self::import_deconstruction_symbols.parse(self, input) + Self::import_deconstruction_symbols.parse(self, input, kind) } - NonterminalKind::ImportDirective => Self::import_directive.parse(self, input), - NonterminalKind::IndexAccessEnd => Self::index_access_end.parse(self, input), + NonterminalKind::ImportDirective => Self::import_directive.parse(self, input, kind), + NonterminalKind::IndexAccessEnd => Self::index_access_end.parse(self, input, kind), NonterminalKind::IndexAccessExpression => { - Self::index_access_expression.parse(self, input) - } - NonterminalKind::InheritanceSpecifier => Self::inheritance_specifier.parse(self, input), - NonterminalKind::InheritanceType => Self::inheritance_type.parse(self, input), - NonterminalKind::InheritanceTypes => Self::inheritance_types.parse(self, input), - NonterminalKind::InterfaceDefinition => Self::interface_definition.parse(self, input), - NonterminalKind::InterfaceMembers => Self::interface_members.parse(self, input), - NonterminalKind::LibraryDefinition => Self::library_definition.parse(self, input), - NonterminalKind::LibraryMembers => Self::library_members.parse(self, input), - NonterminalKind::MappingKey => Self::mapping_key.parse(self, input), - NonterminalKind::MappingKeyType => Self::mapping_key_type.parse(self, input), - NonterminalKind::MappingType => Self::mapping_type.parse(self, input), - NonterminalKind::MappingValue => Self::mapping_value.parse(self, input), + Self::index_access_expression.parse(self, input, kind) + } + NonterminalKind::InheritanceSpecifier => { + Self::inheritance_specifier.parse(self, input, kind) + } + NonterminalKind::InheritanceType => Self::inheritance_type.parse(self, input, kind), + NonterminalKind::InheritanceTypes => Self::inheritance_types.parse(self, input, kind), + NonterminalKind::InterfaceDefinition => { + Self::interface_definition.parse(self, input, kind) + } + NonterminalKind::InterfaceMembers => Self::interface_members.parse(self, input, kind), + NonterminalKind::LibraryDefinition => Self::library_definition.parse(self, input, kind), + NonterminalKind::LibraryMembers => Self::library_members.parse(self, input, kind), + NonterminalKind::MappingKey => Self::mapping_key.parse(self, input, kind), + NonterminalKind::MappingKeyType => Self::mapping_key_type.parse(self, input, kind), + NonterminalKind::MappingType => Self::mapping_type.parse(self, input, kind), + NonterminalKind::MappingValue => Self::mapping_value.parse(self, input, kind), NonterminalKind::MemberAccessExpression => { - Self::member_access_expression.parse(self, input) + Self::member_access_expression.parse(self, input, kind) + } + NonterminalKind::ModifierAttribute => Self::modifier_attribute.parse(self, input, kind), + NonterminalKind::ModifierAttributes => { + Self::modifier_attributes.parse(self, input, kind) + } + NonterminalKind::ModifierDefinition => { + Self::modifier_definition.parse(self, input, kind) + } + NonterminalKind::ModifierInvocation => { + Self::modifier_invocation.parse(self, input, kind) } - NonterminalKind::ModifierAttribute => Self::modifier_attribute.parse(self, input), - NonterminalKind::ModifierAttributes => Self::modifier_attributes.parse(self, input), - NonterminalKind::ModifierDefinition => Self::modifier_definition.parse(self, input), - NonterminalKind::ModifierInvocation => Self::modifier_invocation.parse(self, input), NonterminalKind::MultiplicativeExpression => { - Self::multiplicative_expression.parse(self, input) + Self::multiplicative_expression.parse(self, input, kind) + } + NonterminalKind::NamedArgument => Self::named_argument.parse(self, input, kind), + NonterminalKind::NamedArgumentGroup => { + Self::named_argument_group.parse(self, input, kind) } - NonterminalKind::NamedArgument => Self::named_argument.parse(self, input), - NonterminalKind::NamedArgumentGroup => Self::named_argument_group.parse(self, input), - NonterminalKind::NamedArguments => Self::named_arguments.parse(self, input), + NonterminalKind::NamedArguments => Self::named_arguments.parse(self, input, kind), NonterminalKind::NamedArgumentsDeclaration => { - Self::named_arguments_declaration.parse(self, input) + Self::named_arguments_declaration.parse(self, input, kind) } - NonterminalKind::NamedImport => Self::named_import.parse(self, input), - NonterminalKind::NewExpression => Self::new_expression.parse(self, input), - NonterminalKind::NumberUnit => Self::number_unit.parse(self, input), - NonterminalKind::OrExpression => Self::or_expression.parse(self, input), - NonterminalKind::OverridePaths => Self::override_paths.parse(self, input), + NonterminalKind::NamedImport => Self::named_import.parse(self, input, kind), + NonterminalKind::NewExpression => Self::new_expression.parse(self, input, kind), + NonterminalKind::NumberUnit => Self::number_unit.parse(self, input, kind), + NonterminalKind::OrExpression => Self::or_expression.parse(self, input, kind), + NonterminalKind::OverridePaths => Self::override_paths.parse(self, input, kind), NonterminalKind::OverridePathsDeclaration => { - Self::override_paths_declaration.parse(self, input) + Self::override_paths_declaration.parse(self, input, kind) } - NonterminalKind::OverrideSpecifier => Self::override_specifier.parse(self, input), - NonterminalKind::Parameter => Self::parameter.parse(self, input), - NonterminalKind::Parameters => Self::parameters.parse(self, input), + NonterminalKind::OverrideSpecifier => Self::override_specifier.parse(self, input, kind), + NonterminalKind::Parameter => Self::parameter.parse(self, input, kind), + NonterminalKind::Parameters => Self::parameters.parse(self, input, kind), NonterminalKind::ParametersDeclaration => { - Self::parameters_declaration.parse(self, input) + Self::parameters_declaration.parse(self, input, kind) + } + NonterminalKind::PathImport => Self::path_import.parse(self, input, kind), + NonterminalKind::PositionalArguments => { + Self::positional_arguments.parse(self, input, kind) } - NonterminalKind::PathImport => Self::path_import.parse(self, input), - NonterminalKind::PositionalArguments => Self::positional_arguments.parse(self, input), NonterminalKind::PositionalArgumentsDeclaration => { - Self::positional_arguments_declaration.parse(self, input) + Self::positional_arguments_declaration.parse(self, input, kind) } - NonterminalKind::PostfixExpression => Self::postfix_expression.parse(self, input), - NonterminalKind::Pragma => Self::pragma.parse(self, input), - NonterminalKind::PragmaDirective => Self::pragma_directive.parse(self, input), - NonterminalKind::PrefixExpression => Self::prefix_expression.parse(self, input), + NonterminalKind::PostfixExpression => Self::postfix_expression.parse(self, input, kind), + NonterminalKind::Pragma => Self::pragma.parse(self, input, kind), + NonterminalKind::PragmaDirective => Self::pragma_directive.parse(self, input, kind), + NonterminalKind::PrefixExpression => Self::prefix_expression.parse(self, input, kind), NonterminalKind::ReceiveFunctionAttribute => { - Self::receive_function_attribute.parse(self, input) + Self::receive_function_attribute.parse(self, input, kind) } NonterminalKind::ReceiveFunctionAttributes => { - Self::receive_function_attributes.parse(self, input) + Self::receive_function_attributes.parse(self, input, kind) } NonterminalKind::ReceiveFunctionDefinition => { - Self::receive_function_definition.parse(self, input) + Self::receive_function_definition.parse(self, input, kind) + } + NonterminalKind::ReturnStatement => Self::return_statement.parse(self, input, kind), + NonterminalKind::ReturnsDeclaration => { + Self::returns_declaration.parse(self, input, kind) } - NonterminalKind::ReturnStatement => Self::return_statement.parse(self, input), - NonterminalKind::ReturnsDeclaration => Self::returns_declaration.parse(self, input), - NonterminalKind::RevertStatement => Self::revert_statement.parse(self, input), - NonterminalKind::ShiftExpression => Self::shift_expression.parse(self, input), + NonterminalKind::RevertStatement => Self::revert_statement.parse(self, input, kind), + NonterminalKind::ShiftExpression => Self::shift_expression.parse(self, input, kind), NonterminalKind::SimpleVersionLiteral => { - Self::simple_version_literal.parse(self, input) + Self::simple_version_literal.parse(self, input, kind) + } + NonterminalKind::SourceUnit => Self::source_unit.parse(self, input, kind), + NonterminalKind::SourceUnitMember => Self::source_unit_member.parse(self, input, kind), + NonterminalKind::SourceUnitMembers => { + Self::source_unit_members.parse(self, input, kind) } - NonterminalKind::SourceUnit => Self::source_unit.parse(self, input), - NonterminalKind::SourceUnitMember => Self::source_unit_member.parse(self, input), - NonterminalKind::SourceUnitMembers => Self::source_unit_members.parse(self, input), NonterminalKind::StateVariableAttribute => { - Self::state_variable_attribute.parse(self, input) + Self::state_variable_attribute.parse(self, input, kind) } NonterminalKind::StateVariableAttributes => { - Self::state_variable_attributes.parse(self, input) + Self::state_variable_attributes.parse(self, input, kind) } NonterminalKind::StateVariableDefinition => { - Self::state_variable_definition.parse(self, input) + Self::state_variable_definition.parse(self, input, kind) } NonterminalKind::StateVariableDefinitionValue => { - Self::state_variable_definition_value.parse(self, input) - } - NonterminalKind::Statement => Self::statement.parse(self, input), - NonterminalKind::Statements => Self::statements.parse(self, input), - NonterminalKind::StorageLocation => Self::storage_location.parse(self, input), - NonterminalKind::StringExpression => Self::string_expression.parse(self, input), - NonterminalKind::StringLiteral => Self::string_literal.parse(self, input), - NonterminalKind::StringLiterals => Self::string_literals.parse(self, input), - NonterminalKind::StructDefinition => Self::struct_definition.parse(self, input), - NonterminalKind::StructMember => Self::struct_member.parse(self, input), - NonterminalKind::StructMembers => Self::struct_members.parse(self, input), - NonterminalKind::ThrowStatement => Self::throw_statement.parse(self, input), - NonterminalKind::TryStatement => Self::try_statement.parse(self, input), + Self::state_variable_definition_value.parse(self, input, kind) + } + NonterminalKind::Statement => Self::statement.parse(self, input, kind), + NonterminalKind::Statements => Self::statements.parse(self, input, kind), + NonterminalKind::StorageLocation => Self::storage_location.parse(self, input, kind), + NonterminalKind::StringExpression => Self::string_expression.parse(self, input, kind), + NonterminalKind::StringLiteral => Self::string_literal.parse(self, input, kind), + NonterminalKind::StringLiterals => Self::string_literals.parse(self, input, kind), + NonterminalKind::StructDefinition => Self::struct_definition.parse(self, input, kind), + NonterminalKind::StructMember => Self::struct_member.parse(self, input, kind), + NonterminalKind::StructMembers => Self::struct_members.parse(self, input, kind), + NonterminalKind::ThrowStatement => Self::throw_statement.parse(self, input, kind), + NonterminalKind::TryStatement => Self::try_statement.parse(self, input, kind), NonterminalKind::TupleDeconstructionElement => { - Self::tuple_deconstruction_element.parse(self, input) + Self::tuple_deconstruction_element.parse(self, input, kind) } NonterminalKind::TupleDeconstructionElements => { - Self::tuple_deconstruction_elements.parse(self, input) + Self::tuple_deconstruction_elements.parse(self, input, kind) } NonterminalKind::TupleDeconstructionStatement => { - Self::tuple_deconstruction_statement.parse(self, input) - } - NonterminalKind::TupleExpression => Self::tuple_expression.parse(self, input), - NonterminalKind::TupleMember => Self::tuple_member.parse(self, input), - NonterminalKind::TupleValue => Self::tuple_value.parse(self, input), - NonterminalKind::TupleValues => Self::tuple_values.parse(self, input), - NonterminalKind::TypeExpression => Self::type_expression.parse(self, input), - NonterminalKind::TypeName => Self::type_name.parse(self, input), - NonterminalKind::TypedTupleMember => Self::typed_tuple_member.parse(self, input), - NonterminalKind::UncheckedBlock => Self::unchecked_block.parse(self, input), + Self::tuple_deconstruction_statement.parse(self, input, kind) + } + NonterminalKind::TupleExpression => Self::tuple_expression.parse(self, input, kind), + NonterminalKind::TupleMember => Self::tuple_member.parse(self, input, kind), + NonterminalKind::TupleValue => Self::tuple_value.parse(self, input, kind), + NonterminalKind::TupleValues => Self::tuple_values.parse(self, input, kind), + NonterminalKind::TypeExpression => Self::type_expression.parse(self, input, kind), + NonterminalKind::TypeName => Self::type_name.parse(self, input, kind), + NonterminalKind::TypedTupleMember => Self::typed_tuple_member.parse(self, input, kind), + NonterminalKind::UncheckedBlock => Self::unchecked_block.parse(self, input, kind), NonterminalKind::UnicodeStringLiteral => { - Self::unicode_string_literal.parse(self, input) + Self::unicode_string_literal.parse(self, input, kind) } NonterminalKind::UnicodeStringLiterals => { - Self::unicode_string_literals.parse(self, input) + Self::unicode_string_literals.parse(self, input, kind) } NonterminalKind::UnnamedFunctionAttribute => { - Self::unnamed_function_attribute.parse(self, input) + Self::unnamed_function_attribute.parse(self, input, kind) } NonterminalKind::UnnamedFunctionAttributes => { - Self::unnamed_function_attributes.parse(self, input) + Self::unnamed_function_attributes.parse(self, input, kind) } NonterminalKind::UnnamedFunctionDefinition => { - Self::unnamed_function_definition.parse(self, input) + Self::unnamed_function_definition.parse(self, input, kind) + } + NonterminalKind::UntypedTupleMember => { + Self::untyped_tuple_member.parse(self, input, kind) } - NonterminalKind::UntypedTupleMember => Self::untyped_tuple_member.parse(self, input), NonterminalKind::UserDefinedValueTypeDefinition => { - Self::user_defined_value_type_definition.parse(self, input) + Self::user_defined_value_type_definition.parse(self, input, kind) + } + NonterminalKind::UsingAlias => Self::using_alias.parse(self, input, kind), + NonterminalKind::UsingClause => Self::using_clause.parse(self, input, kind), + NonterminalKind::UsingDeconstruction => { + Self::using_deconstruction.parse(self, input, kind) } - NonterminalKind::UsingAlias => Self::using_alias.parse(self, input), - NonterminalKind::UsingClause => Self::using_clause.parse(self, input), - NonterminalKind::UsingDeconstruction => Self::using_deconstruction.parse(self, input), NonterminalKind::UsingDeconstructionSymbol => { - Self::using_deconstruction_symbol.parse(self, input) + Self::using_deconstruction_symbol.parse(self, input, kind) } NonterminalKind::UsingDeconstructionSymbols => { - Self::using_deconstruction_symbols.parse(self, input) + Self::using_deconstruction_symbols.parse(self, input, kind) } - NonterminalKind::UsingDirective => Self::using_directive.parse(self, input), - NonterminalKind::UsingOperator => Self::using_operator.parse(self, input), - NonterminalKind::UsingTarget => Self::using_target.parse(self, input), + NonterminalKind::UsingDirective => Self::using_directive.parse(self, input, kind), + NonterminalKind::UsingOperator => Self::using_operator.parse(self, input, kind), + NonterminalKind::UsingTarget => Self::using_target.parse(self, input, kind), NonterminalKind::VariableDeclarationStatement => { - Self::variable_declaration_statement.parse(self, input) + Self::variable_declaration_statement.parse(self, input, kind) } NonterminalKind::VariableDeclarationType => { - Self::variable_declaration_type.parse(self, input) + Self::variable_declaration_type.parse(self, input, kind) } NonterminalKind::VariableDeclarationValue => { - Self::variable_declaration_value.parse(self, input) + Self::variable_declaration_value.parse(self, input, kind) } - NonterminalKind::VersionExpression => Self::version_expression.parse(self, input), + NonterminalKind::VersionExpression => Self::version_expression.parse(self, input, kind), NonterminalKind::VersionExpressionSet => { - Self::version_expression_set.parse(self, input) + Self::version_expression_set.parse(self, input, kind) } NonterminalKind::VersionExpressionSets => { - Self::version_expression_sets.parse(self, input) - } - NonterminalKind::VersionLiteral => Self::version_literal.parse(self, input), - NonterminalKind::VersionOperator => Self::version_operator.parse(self, input), - NonterminalKind::VersionPragma => Self::version_pragma.parse(self, input), - NonterminalKind::VersionRange => Self::version_range.parse(self, input), - NonterminalKind::VersionTerm => Self::version_term.parse(self, input), - NonterminalKind::WhileStatement => Self::while_statement.parse(self, input), - NonterminalKind::YulArguments => Self::yul_arguments.parse(self, input), + Self::version_expression_sets.parse(self, input, kind) + } + NonterminalKind::VersionLiteral => Self::version_literal.parse(self, input, kind), + NonterminalKind::VersionOperator => Self::version_operator.parse(self, input, kind), + NonterminalKind::VersionPragma => Self::version_pragma.parse(self, input, kind), + NonterminalKind::VersionRange => Self::version_range.parse(self, input, kind), + NonterminalKind::VersionTerm => Self::version_term.parse(self, input, kind), + NonterminalKind::WhileStatement => Self::while_statement.parse(self, input, kind), + NonterminalKind::YulArguments => Self::yul_arguments.parse(self, input, kind), NonterminalKind::YulAssignmentOperator => { - Self::yul_assignment_operator.parse(self, input) + Self::yul_assignment_operator.parse(self, input, kind) + } + NonterminalKind::YulBlock => Self::yul_block.parse(self, input, kind), + NonterminalKind::YulBreakStatement => { + Self::yul_break_statement.parse(self, input, kind) + } + NonterminalKind::YulBuiltInFunction => { + Self::yul_built_in_function.parse(self, input, kind) } - NonterminalKind::YulBlock => Self::yul_block.parse(self, input), - NonterminalKind::YulBreakStatement => Self::yul_break_statement.parse(self, input), - NonterminalKind::YulBuiltInFunction => Self::yul_built_in_function.parse(self, input), - NonterminalKind::YulColonAndEqual => Self::yul_colon_and_equal.parse(self, input), + NonterminalKind::YulColonAndEqual => Self::yul_colon_and_equal.parse(self, input, kind), NonterminalKind::YulContinueStatement => { - Self::yul_continue_statement.parse(self, input) + Self::yul_continue_statement.parse(self, input, kind) } - NonterminalKind::YulDefaultCase => Self::yul_default_case.parse(self, input), - NonterminalKind::YulEqualAndColon => Self::yul_equal_and_colon.parse(self, input), - NonterminalKind::YulExpression => Self::yul_expression.parse(self, input), - NonterminalKind::YulForStatement => Self::yul_for_statement.parse(self, input), + NonterminalKind::YulDefaultCase => Self::yul_default_case.parse(self, input, kind), + NonterminalKind::YulEqualAndColon => Self::yul_equal_and_colon.parse(self, input, kind), + NonterminalKind::YulExpression => Self::yul_expression.parse(self, input, kind), + NonterminalKind::YulForStatement => Self::yul_for_statement.parse(self, input, kind), NonterminalKind::YulFunctionCallExpression => { - Self::yul_function_call_expression.parse(self, input) + Self::yul_function_call_expression.parse(self, input, kind) } NonterminalKind::YulFunctionDefinition => { - Self::yul_function_definition.parse(self, input) + Self::yul_function_definition.parse(self, input, kind) } - NonterminalKind::YulIfStatement => Self::yul_if_statement.parse(self, input), - NonterminalKind::YulLabel => Self::yul_label.parse(self, input), - NonterminalKind::YulLeaveStatement => Self::yul_leave_statement.parse(self, input), - NonterminalKind::YulLiteral => Self::yul_literal.parse(self, input), - NonterminalKind::YulParameters => Self::yul_parameters.parse(self, input), + NonterminalKind::YulIfStatement => Self::yul_if_statement.parse(self, input, kind), + NonterminalKind::YulLabel => Self::yul_label.parse(self, input, kind), + NonterminalKind::YulLeaveStatement => { + Self::yul_leave_statement.parse(self, input, kind) + } + NonterminalKind::YulLiteral => Self::yul_literal.parse(self, input, kind), + NonterminalKind::YulParameters => Self::yul_parameters.parse(self, input, kind), NonterminalKind::YulParametersDeclaration => { - Self::yul_parameters_declaration.parse(self, input) + Self::yul_parameters_declaration.parse(self, input, kind) } - NonterminalKind::YulPath => Self::yul_path.parse(self, input), - NonterminalKind::YulPaths => Self::yul_paths.parse(self, input), + NonterminalKind::YulPath => Self::yul_path.parse(self, input, kind), + NonterminalKind::YulPaths => Self::yul_paths.parse(self, input, kind), NonterminalKind::YulReturnsDeclaration => { - Self::yul_returns_declaration.parse(self, input) + Self::yul_returns_declaration.parse(self, input, kind) } NonterminalKind::YulStackAssignmentOperator => { - Self::yul_stack_assignment_operator.parse(self, input) + Self::yul_stack_assignment_operator.parse(self, input, kind) } NonterminalKind::YulStackAssignmentStatement => { - Self::yul_stack_assignment_statement.parse(self, input) - } - NonterminalKind::YulStatement => Self::yul_statement.parse(self, input), - NonterminalKind::YulStatements => Self::yul_statements.parse(self, input), - NonterminalKind::YulSwitchCase => Self::yul_switch_case.parse(self, input), - NonterminalKind::YulSwitchCases => Self::yul_switch_cases.parse(self, input), - NonterminalKind::YulSwitchStatement => Self::yul_switch_statement.parse(self, input), - NonterminalKind::YulValueCase => Self::yul_value_case.parse(self, input), + Self::yul_stack_assignment_statement.parse(self, input, kind) + } + NonterminalKind::YulStatement => Self::yul_statement.parse(self, input, kind), + NonterminalKind::YulStatements => Self::yul_statements.parse(self, input, kind), + NonterminalKind::YulSwitchCase => Self::yul_switch_case.parse(self, input, kind), + NonterminalKind::YulSwitchCases => Self::yul_switch_cases.parse(self, input, kind), + NonterminalKind::YulSwitchStatement => { + Self::yul_switch_statement.parse(self, input, kind) + } + NonterminalKind::YulValueCase => Self::yul_value_case.parse(self, input, kind), NonterminalKind::YulVariableAssignmentStatement => { - Self::yul_variable_assignment_statement.parse(self, input) + Self::yul_variable_assignment_statement.parse(self, input, kind) } NonterminalKind::YulVariableDeclarationStatement => { - Self::yul_variable_declaration_statement.parse(self, input) + Self::yul_variable_declaration_statement.parse(self, input, kind) } NonterminalKind::YulVariableDeclarationValue => { - Self::yul_variable_declaration_value.parse(self, input) + Self::yul_variable_declaration_value.parse(self, input, kind) } - NonterminalKind::YulVariableNames => Self::yul_variable_names.parse(self, input), + NonterminalKind::YulVariableNames => Self::yul_variable_names.parse(self, input, kind), } } } diff --git a/crates/solidity/outputs/cargo/crate/src/generated/parser/lexer/mod.rs b/crates/solidity/outputs/cargo/crate/src/generated/parser/lexer/mod.rs index a9b896ddcd..d4888aa14a 100644 --- a/crates/solidity/outputs/cargo/crate/src/generated/parser/lexer/mod.rs +++ b/crates/solidity/outputs/cargo/crate/src/generated/parser/lexer/mod.rs @@ -96,7 +96,7 @@ pub(crate) trait Lexer { .is_some_and(|t| t.accepted_as(kind)) { input.set_position(start); - return ParserResult::no_match(None, vec![kind]); + return ParserResult::no_match(vec![kind]); } let end = input.position(); @@ -128,7 +128,7 @@ pub(crate) trait Lexer { .is_some_and(|t| t.accepted_as(kind)) { input.set_position(restore); - return ParserResult::no_match(None, vec![kind]); + return ParserResult::no_match(vec![kind]); } let end = input.position(); children.push(Edge::root(Node::terminal(kind, input.content(start..end)))); diff --git a/crates/solidity/outputs/cargo/crate/src/generated/parser/parse_output.rs b/crates/solidity/outputs/cargo/crate/src/generated/parser/parse_output.rs index 83a71d08f4..790329c22b 100644 --- a/crates/solidity/outputs/cargo/crate/src/generated/parser/parse_output.rs +++ b/crates/solidity/outputs/cargo/crate/src/generated/parser/parse_output.rs @@ -1,16 +1,18 @@ // This file is generated automatically by infrastructure scripts. Please don't edit by hand. -use crate::cst::{Cursor, Node, TextIndex}; +use std::rc::Rc; + +use crate::cst::{Cursor, NonterminalNode, TextIndex}; use crate::parser::ParseError; #[derive(Clone, Debug, PartialEq)] pub struct ParseOutput { - pub(crate) tree: Node, + pub(crate) tree: Rc, pub(crate) errors: Vec, } impl ParseOutput { - pub fn tree(&self) -> &Node { + pub fn tree(&self) -> &Rc { &self.tree } @@ -24,6 +26,6 @@ impl ParseOutput { /// Creates a cursor that starts at the root of the parse tree. pub fn create_tree_cursor(&self) -> Cursor { - self.tree.clone().cursor_with_offset(TextIndex::ZERO) + Rc::clone(&self.tree).cursor_with_offset(TextIndex::ZERO) } } diff --git a/crates/solidity/outputs/cargo/crate/src/generated/parser/parser_support/parser_function.rs b/crates/solidity/outputs/cargo/crate/src/generated/parser/parser_support/parser_function.rs index 0220f09062..223167dc28 100644 --- a/crates/solidity/outputs/cargo/crate/src/generated/parser/parser_support/parser_function.rs +++ b/crates/solidity/outputs/cargo/crate/src/generated/parser/parser_support/parser_function.rs @@ -2,7 +2,10 @@ use std::rc::Rc; -use crate::cst::{Edge, EdgeLabel, Node, TerminalKind, TerminalKindExtensions, TextIndex}; +use crate::cst::{ + Edge, EdgeLabel, Node, NonterminalKind, NonterminalNode, TerminalKind, TerminalKindExtensions, + TextIndex, +}; use crate::parser::lexer::Lexer; use crate::parser::parser_support::context::ParserContext; use crate::parser::parser_support::parser_result::{ @@ -14,7 +17,7 @@ pub trait ParserFunction

where Self: Fn(&P, &mut ParserContext<'_>) -> ParserResult, { - fn parse(&self, parser: &P, input: &str) -> ParseOutput; + fn parse(&self, parser: &P, input: &str, topmost_kind: NonterminalKind) -> ParseOutput; } impl ParserFunction

for F @@ -23,7 +26,7 @@ where F: Fn(&P, &mut ParserContext<'_>) -> ParserResult, { #[allow(clippy::too_many_lines)] - fn parse(&self, parser: &P, input: &str) -> ParseOutput { + fn parse(&self, parser: &P, input: &str, topmost_kind: NonterminalKind) -> ParseOutput { let mut stream = ParserContext::new(input); let mut result = self(parser, &mut stream); @@ -48,7 +51,7 @@ where let mut new_children = nonterminal.children.clone(); new_children.extend(eof_trivia); - topmost.node = Node::nonterminal(nonterminal.kind, new_children); + topmost.node = Node::nonterminal(topmost_kind, new_children); } } @@ -64,7 +67,7 @@ where // trivia is already parsed twice, one for each branch. And there's a good reason: each branch might // accept different trivia, so it's not clear what the combination of the two rules should return in a // NoMatch. Therefore, we just parse it again. Note that trivia is anyway cached by the parser (#1119). - let mut trivia_nodes = if let ParserResult::Match(matched) = + let mut children = if let ParserResult::Match(matched) = Lexer::leading_trivia(parser, &mut stream) { matched.nodes @@ -73,7 +76,7 @@ where }; let mut start = TextIndex::ZERO; - for edge in &trivia_nodes { + for edge in &children { if let Node::Terminal(terminal) = &edge.node { if terminal.kind.is_valid() { start.advance_str(terminal.text.as_str()); @@ -88,14 +91,11 @@ where }; let node = Node::terminal(kind, input.to_string()); - let tree = if no_match.kind.is_none() || start.utf8 == 0 { - node - } else { - trivia_nodes.push(Edge { label, node }); - Node::nonterminal(no_match.kind.unwrap(), trivia_nodes) - }; + + children.push(Edge { label, node }); + ParseOutput { - tree, + tree: Rc::new(NonterminalNode::new(topmost_kind, children)), errors: vec![ParseError::new( start..start + input.into(), no_match.expected_terminals, @@ -163,17 +163,17 @@ where )); ParseOutput { - tree: Node::nonterminal(topmost_node.kind, new_children), + tree: Rc::new(NonterminalNode::new(topmost_node.kind, new_children)), errors, } } else { - let tree = Node::Nonterminal(topmost_node); + let tree = topmost_node; let errors = stream.into_errors(); // Sanity check: Make sure that succesful parse is equivalent to not having any invalid nodes debug_assert_eq!( errors.is_empty(), - tree.clone() + Rc::clone(&tree) .cursor_with_offset(TextIndex::ZERO) .remaining_nodes() .all(|edge| edge diff --git a/crates/solidity/outputs/cargo/crate/src/generated/parser/parser_support/parser_result.rs b/crates/solidity/outputs/cargo/crate/src/generated/parser/parser_support/parser_result.rs index 14b9b15350..b22b45e74a 100644 --- a/crates/solidity/outputs/cargo/crate/src/generated/parser/parser_support/parser_result.rs +++ b/crates/solidity/outputs/cargo/crate/src/generated/parser/parser_support/parser_result.rs @@ -18,7 +18,6 @@ pub enum ParserResult { impl Default for ParserResult { fn default() -> Self { Self::NoMatch(NoMatch { - kind: None, expected_terminals: vec![], }) } @@ -37,13 +36,13 @@ impl ParserResult { ParserResult::IncompleteMatch(IncompleteMatch::new(nodes, expected_terminals)) } - /// Whenever a parser didn't run because it's disabled due to versioning. Shorthand for `no_match(None, vec![])`. + /// Whenever a parser didn't run because it's disabled due to versioning. Shorthand for `no_match(vec![])`. pub fn disabled() -> Self { - Self::no_match(None, vec![]) + Self::no_match(vec![]) } - pub fn no_match(kind: Option, expected_terminals: Vec) -> Self { - ParserResult::NoMatch(NoMatch::new(kind, expected_terminals)) + pub fn no_match(expected_terminals: Vec) -> Self { + ParserResult::NoMatch(NoMatch::new(expected_terminals)) } #[must_use] @@ -64,9 +63,7 @@ impl ParserResult { nodes: vec![Edge::root(Node::nonterminal(new_kind, skipped.nodes))], ..skipped }), - ParserResult::NoMatch(no_match) => { - ParserResult::no_match(Some(new_kind), no_match.expected_terminals) - } + ParserResult::NoMatch(no_match) => ParserResult::no_match(no_match.expected_terminals), ParserResult::PrattOperatorMatch(_) => { unreachable!("PrattOperatorMatch cannot be converted to a nonterminal") } @@ -245,18 +242,13 @@ impl IncompleteMatch { #[derive(PartialEq, Eq, Clone, Debug)] pub struct NoMatch { - /// The nonterminal kind this match is coming from - pub kind: Option, /// Terminals that would have allowed for more progress. Collected for the purposes of error reporting. pub expected_terminals: Vec, } impl NoMatch { - pub fn new(kind: Option, expected_terminals: Vec) -> Self { - Self { - kind, - expected_terminals, - } + pub fn new(expected_terminals: Vec) -> Self { + Self { expected_terminals } } } diff --git a/crates/solidity/outputs/cargo/crate/src/generated/parser/parser_support/recovery.rs b/crates/solidity/outputs/cargo/crate/src/generated/parser/parser_support/recovery.rs index c49819e30f..f54ae45934 100644 --- a/crates/solidity/outputs/cargo/crate/src/generated/parser/parser_support/recovery.rs +++ b/crates/solidity/outputs/cargo/crate/src/generated/parser/parser_support/recovery.rs @@ -107,7 +107,7 @@ impl ParserResult { ParseResultKind::Incomplete => { ParserResult::incomplete_match(nodes, expected_terminals) } - ParseResultKind::NoMatch => ParserResult::no_match(None, expected_terminals), + ParseResultKind::NoMatch => ParserResult::no_match(expected_terminals), } } } diff --git a/crates/solidity/outputs/cargo/crate/src/generated/parser/parser_support/repetition_helper.rs b/crates/solidity/outputs/cargo/crate/src/generated/parser/parser_support/repetition_helper.rs index a4fb3a2be5..a808e73796 100644 --- a/crates/solidity/outputs/cargo/crate/src/generated/parser/parser_support/repetition_helper.rs +++ b/crates/solidity/outputs/cargo/crate/src/generated/parser/parser_support/repetition_helper.rs @@ -28,10 +28,7 @@ impl RepetitionHelper { // Couldn't get a full match but we allow 0 items - return an empty match // so the parse is considered valid but note the expected terminals - ParserResult::NoMatch(NoMatch { - kind: _, - expected_terminals, - }) if MIN_COUNT == 0 => { + ParserResult::NoMatch(NoMatch { expected_terminals }) if MIN_COUNT == 0 => { return ParserResult::r#match(vec![], expected_terminals); } // Don't try repeating if we don't have a full match and we require at least one @@ -65,9 +62,7 @@ impl RepetitionHelper { ParserResult::IncompleteMatch(IncompleteMatch { expected_terminals, .. }) - | ParserResult::NoMatch(NoMatch { - expected_terminals, .. - }), + | ParserResult::NoMatch(NoMatch { expected_terminals }), ) => { input.rewind(save); running.expected_terminals = expected_terminals; diff --git a/crates/solidity/outputs/cargo/crate/src/generated/parser/parser_support/separated_helper.rs b/crates/solidity/outputs/cargo/crate/src/generated/parser/parser_support/separated_helper.rs index db1a0b64d1..bf8ef42f69 100644 --- a/crates/solidity/outputs/cargo/crate/src/generated/parser/parser_support/separated_helper.rs +++ b/crates/solidity/outputs/cargo/crate/src/generated/parser/parser_support/separated_helper.rs @@ -92,7 +92,7 @@ impl SeparatedHelper { } ParserResult::NoMatch(no_match) => { return if accum.is_empty() { - ParserResult::no_match(None, no_match.expected_terminals) + ParserResult::no_match(no_match.expected_terminals) } else { ParserResult::incomplete_match(accum, no_match.expected_terminals) }; diff --git a/crates/solidity/outputs/cargo/tests/src/doc_examples/using_the_cursor.rs b/crates/solidity/outputs/cargo/tests/src/doc_examples/using_the_cursor.rs index c4ee142477..39d79b8793 100644 --- a/crates/solidity/outputs/cargo/tests/src/doc_examples/using_the_cursor.rs +++ b/crates/solidity/outputs/cargo/tests/src/doc_examples/using_the_cursor.rs @@ -1,4 +1,5 @@ use std::path::Path; +use std::rc::Rc; use anyhow::Result; use infra_utils::paths::PathExtensions; @@ -89,9 +90,7 @@ fn using_the_cursor() -> Result<()> { { // --8<-- [start:using-iterator-api] - let identifiers: Vec<_> = parse_output - .tree() - .clone() + let identifiers: Vec<_> = Rc::clone(parse_output.tree()) .descendants() .filter(|edge| edge.is_terminal_with_kind(TerminalKind::Identifier)) .map(|identifier| identifier.unparse()) @@ -104,9 +103,7 @@ fn using_the_cursor() -> Result<()> { { // --8<-- [start:using-cursors-with-labels] - let identifiers: Vec<_> = parse_output - .tree() - .clone() + let identifiers: Vec<_> = Rc::clone(parse_output.tree()) .descendants() .filter(|edge| edge.is_terminal_with_kind(TerminalKind::Identifier)) .map(|identifier| identifier.unparse()) diff --git a/crates/solidity/outputs/cargo/tests/src/doc_examples/using_the_parser.rs b/crates/solidity/outputs/cargo/tests/src/doc_examples/using_the_parser.rs index db3ce9390b..f8ccc8d74a 100644 --- a/crates/solidity/outputs/cargo/tests/src/doc_examples/using_the_parser.rs +++ b/crates/solidity/outputs/cargo/tests/src/doc_examples/using_the_parser.rs @@ -38,9 +38,8 @@ fn using_the_parser() -> Result<()> { // --8<-- [end:assert-is-valid] // --8<-- [start:inspect-tree] - let tree = parse_output.tree(); + let contract = parse_output.tree(); - let contract = tree.as_nonterminal().unwrap(); assert_eq!(contract.kind, NonterminalKind::ContractDefinition); assert_eq!(contract.children.len(), 7); diff --git a/crates/solidity/outputs/cargo/tests/src/trivia.rs b/crates/solidity/outputs/cargo/tests/src/trivia.rs index 85885beac3..8eb2ebc6f7 100644 --- a/crates/solidity/outputs/cargo/tests/src/trivia.rs +++ b/crates/solidity/outputs/cargo/tests/src/trivia.rs @@ -1,3 +1,5 @@ +use std::rc::Rc; + use anyhow::Result; use semver::Version; use slang_solidity::cst::{NonterminalKind, TerminalKind}; @@ -27,9 +29,7 @@ fn compare_end_of_lines(input: &str, expected: &[&str]) -> Result<()> { let output = parser.parse(NonterminalKind::SourceUnit, input); assert!(output.is_valid()); - let actual = output - .tree() - .clone() + let actual = Rc::clone(output.tree()) .descendants() .filter(|edge| edge.is_terminal_with_kind(TerminalKind::EndOfLine)) .map(|eol| eol.unparse()) diff --git a/crates/solidity/outputs/cargo/wasm/src/generated/interface/generated/compilation.wit b/crates/solidity/outputs/cargo/wasm/src/generated/interface/generated/compilation.wit index 0e49e71703..ea64aab4ac 100644 --- a/crates/solidity/outputs/cargo/wasm/src/generated/interface/generated/compilation.wit +++ b/crates/solidity/outputs/cargo/wasm/src/generated/interface/generated/compilation.wit @@ -2,7 +2,7 @@ interface compilation { use bindings.{binding-graph}; - use cst.{node, cursor}; + use cst.{nonterminal-node, cursor}; /// A builder for creating compilation units. /// Allows incrementally building a transitive list of all files and their imports. @@ -62,7 +62,7 @@ interface compilation { id: func() -> string; /// Returns the syntax tree of this file. - tree: func() -> node; + tree: func() -> nonterminal-node; /// Creates a cursor for traversing the syntax tree of this file. create-tree-cursor: func() -> cursor; diff --git a/crates/solidity/outputs/cargo/wasm/src/generated/interface/generated/parser.wit b/crates/solidity/outputs/cargo/wasm/src/generated/interface/generated/parser.wit index df41c2e0fc..6eca8e01ae 100644 --- a/crates/solidity/outputs/cargo/wasm/src/generated/interface/generated/parser.wit +++ b/crates/solidity/outputs/cargo/wasm/src/generated/interface/generated/parser.wit @@ -1,7 +1,7 @@ // This file is generated automatically by infrastructure scripts. Please don't edit by hand. interface parser { - use cst.{cursor, node, nonterminal-kind, text-range}; + use cst.{cursor, nonterminal-node, nonterminal-kind, text-range}; /// A parser instance that can parse source code into syntax trees. /// Each parser is configured for a specific language version and grammar. @@ -34,7 +34,7 @@ interface parser { resource parse-output { /// Returns the root node of the parsed syntax tree. /// Even if there are parsing errors, a partial tree will still be available. - tree: func() -> node; + tree: func() -> nonterminal-node; /// Returns a list of all parsing errors encountered. /// An empty list indicates successful parsing with no errors. diff --git a/crates/solidity/outputs/cargo/wasm/src/generated/wrappers/compilation/mod.rs b/crates/solidity/outputs/cargo/wasm/src/generated/wrappers/compilation/mod.rs index d168910020..c1d50b6098 100644 --- a/crates/solidity/outputs/cargo/wasm/src/generated/wrappers/compilation/mod.rs +++ b/crates/solidity/outputs/cargo/wasm/src/generated/wrappers/compilation/mod.rs @@ -13,7 +13,9 @@ mod ffi { Guest, GuestCompilationUnit, GuestFile, GuestInternalCompilationBuilder, InternalCompilationBuilder, InternalCompilationBuilderBorrow, }; - pub use crate::wasm_crate::bindgen::exports::nomic_foundation::slang::cst::{Cursor, Node}; + pub use crate::wasm_crate::bindgen::exports::nomic_foundation::slang::cst::{ + Cursor, NonterminalNode, + }; } mod rust { @@ -112,7 +114,7 @@ define_rc_wrapper! { File { self._borrow_ffi().id().to_owned() } - fn tree(&self) -> ffi::Node { + fn tree(&self) -> ffi::NonterminalNode { self._borrow_ffi().tree().to_owned()._into_ffi() } diff --git a/crates/solidity/outputs/cargo/wasm/src/generated/wrappers/parser/mod.rs b/crates/solidity/outputs/cargo/wasm/src/generated/wrappers/parser/mod.rs index 7d000977d8..01e073bb8d 100644 --- a/crates/solidity/outputs/cargo/wasm/src/generated/wrappers/parser/mod.rs +++ b/crates/solidity/outputs/cargo/wasm/src/generated/wrappers/parser/mod.rs @@ -1,10 +1,12 @@ // This file is generated automatically by infrastructure scripts. Please don't edit by hand. +use std::rc::Rc; + use crate::wasm_crate::utils::{define_wrapper, FromFFI, IntoFFI}; mod ffi { pub use crate::wasm_crate::bindgen::exports::nomic_foundation::slang::cst::{ - Cursor, Node, TextRange, + Cursor, NonterminalNode, TextRange, }; pub use crate::wasm_crate::bindgen::exports::nomic_foundation::slang::parser::{ Guest, GuestParseError, GuestParseOutput, GuestParser, NonterminalKind, ParseError, @@ -72,8 +74,8 @@ define_wrapper! { ParseError { //================================================ define_wrapper! { ParseOutput { - fn tree(&self) -> ffi::Node { - self._borrow_ffi().tree().clone()._into_ffi() + fn tree(&self) -> ffi::NonterminalNode { + Rc::clone(self._borrow_ffi().tree())._into_ffi() } fn errors(&self) -> Vec { diff --git a/crates/solidity/outputs/npm/package/wasm/generated/interfaces/nomic-foundation-slang-compilation.d.ts b/crates/solidity/outputs/npm/package/wasm/generated/interfaces/nomic-foundation-slang-compilation.d.ts index 6a3a511d89..c08b1eed29 100644 --- a/crates/solidity/outputs/npm/package/wasm/generated/interfaces/nomic-foundation-slang-compilation.d.ts +++ b/crates/solidity/outputs/npm/package/wasm/generated/interfaces/nomic-foundation-slang-compilation.d.ts @@ -7,8 +7,8 @@ export namespace NomicFoundationSlangCompilation { } import type { BindingGraph } from "./nomic-foundation-slang-bindings.js"; export { BindingGraph }; -import type { Node } from "./nomic-foundation-slang-cst.js"; -export { Node }; +import type { NonterminalNode } from "./nomic-foundation-slang-cst.js"; +export { NonterminalNode }; import type { Cursor } from "./nomic-foundation-slang-cst.js"; export { Cursor }; /** @@ -64,7 +64,7 @@ export class File { /** * Returns the syntax tree of this file. */ - get tree(): Node; + get tree(): NonterminalNode; /** * Creates a cursor for traversing the syntax tree of this file. */ diff --git a/crates/solidity/outputs/npm/package/wasm/generated/interfaces/nomic-foundation-slang-parser.d.ts b/crates/solidity/outputs/npm/package/wasm/generated/interfaces/nomic-foundation-slang-parser.d.ts index 6ac5bb7305..07fe4156a6 100644 --- a/crates/solidity/outputs/npm/package/wasm/generated/interfaces/nomic-foundation-slang-parser.d.ts +++ b/crates/solidity/outputs/npm/package/wasm/generated/interfaces/nomic-foundation-slang-parser.d.ts @@ -7,8 +7,8 @@ export namespace NomicFoundationSlangParser { } import type { Cursor } from "./nomic-foundation-slang-cst.js"; export { Cursor }; -import type { Node } from "./nomic-foundation-slang-cst.js"; -export { Node }; +import type { NonterminalNode } from "./nomic-foundation-slang-cst.js"; +export { NonterminalNode }; import type { NonterminalKind } from "./nomic-foundation-slang-cst.js"; export { NonterminalKind }; import type { TextRange } from "./nomic-foundation-slang-cst.js"; @@ -37,7 +37,7 @@ export class ParseOutput { * Returns the root node of the parsed syntax tree. * Even if there are parsing errors, a partial tree will still be available. */ - get tree(): Node; + get tree(): NonterminalNode; /** * Returns a list of all parsing errors encountered. * An empty list indicates successful parsing with no errors. diff --git a/crates/solidity/testing/snapshots/cst_output/ConstantDefinition/int/generated/0.4.11-failure.yml b/crates/solidity/testing/snapshots/cst_output/ConstantDefinition/int/generated/0.4.11-failure.yml index d79dc201fa..50b668364d 100644 --- a/crates/solidity/testing/snapshots/cst_output/ConstantDefinition/int/generated/0.4.11-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/ConstantDefinition/int/generated/0.4.11-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "int constant foo = 0;" # (0..21) + - (root꞉ ConstantDefinition) ► (unrecognized꞉ UNRECOGNIZED): "int constant foo = 0;" # (0..21) diff --git a/crates/solidity/testing/snapshots/cst_output/ConstructorDefinition/override_attribute/generated/0.4.11-failure.yml b/crates/solidity/testing/snapshots/cst_output/ConstructorDefinition/override_attribute/generated/0.4.11-failure.yml index db406747b8..d26386a35d 100644 --- a/crates/solidity/testing/snapshots/cst_output/ConstructorDefinition/override_attribute/generated/0.4.11-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/ConstructorDefinition/override_attribute/generated/0.4.11-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "constructor () override {}\n" # (0..27) + - (root꞉ ConstructorDefinition) ► (unrecognized꞉ UNRECOGNIZED): "constructor () override {}\n" # (0..27) diff --git a/crates/solidity/testing/snapshots/cst_output/ConstructorDefinition/simple/generated/0.4.11-failure.yml b/crates/solidity/testing/snapshots/cst_output/ConstructorDefinition/simple/generated/0.4.11-failure.yml index e9e6fe11f5..70cd00b2b8 100644 --- a/crates/solidity/testing/snapshots/cst_output/ConstructorDefinition/simple/generated/0.4.11-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/ConstructorDefinition/simple/generated/0.4.11-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "constructor () {}" # (0..17) + - (root꞉ ConstructorDefinition) ► (unrecognized꞉ UNRECOGNIZED): "constructor () {}" # (0..17) diff --git a/crates/solidity/testing/snapshots/cst_output/ConstructorDefinition/virtual_attribute/generated/0.4.11-failure.yml b/crates/solidity/testing/snapshots/cst_output/ConstructorDefinition/virtual_attribute/generated/0.4.11-failure.yml index 4f22ea135a..8f76620dea 100644 --- a/crates/solidity/testing/snapshots/cst_output/ConstructorDefinition/virtual_attribute/generated/0.4.11-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/ConstructorDefinition/virtual_attribute/generated/0.4.11-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "constructor () virtual {}\n" # (0..26) + - (root꞉ ConstructorDefinition) ► (unrecognized꞉ UNRECOGNIZED): "constructor () virtual {}\n" # (0..26) diff --git a/crates/solidity/testing/snapshots/cst_output/ContractDefinition/abstract_contract/generated/0.4.11-failure.yml b/crates/solidity/testing/snapshots/cst_output/ContractDefinition/abstract_contract/generated/0.4.11-failure.yml index d1cd8cc75a..6d30ac23f4 100644 --- a/crates/solidity/testing/snapshots/cst_output/ContractDefinition/abstract_contract/generated/0.4.11-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/ContractDefinition/abstract_contract/generated/0.4.11-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "abstract contract Sample {}\n" # (0..28) + - (root꞉ ContractDefinition) ► (unrecognized꞉ UNRECOGNIZED): "abstract contract Sample {}\n" # (0..28) diff --git a/crates/solidity/testing/snapshots/cst_output/ContractDefinition/zero_length_input/generated/0.4.11-failure.yml b/crates/solidity/testing/snapshots/cst_output/ContractDefinition/zero_length_input/generated/0.4.11-failure.yml index 745fdfe5d2..9ba7bfcee4 100644 --- a/crates/solidity/testing/snapshots/cst_output/ContractDefinition/zero_length_input/generated/0.4.11-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/ContractDefinition/zero_length_input/generated/0.4.11-failure.yml @@ -8,4 +8,4 @@ Errors: # 1 total ─[crates/solidity/testing/snapshots/cst_output/ContractDefinition/zero_length_input/input.sol:0:0] Tree: - - (root꞉ MISSING): "" # (0..0) + - (root꞉ ContractDefinition) ► (missing꞉ MISSING): "" # (0..0) diff --git a/crates/solidity/testing/snapshots/cst_output/DecimalNumberExpression/decimal_trailing_ident_start/generated/0.4.11-failure.yml b/crates/solidity/testing/snapshots/cst_output/DecimalNumberExpression/decimal_trailing_ident_start/generated/0.4.11-failure.yml index 7698efc3bc..b238be3bfd 100644 --- a/crates/solidity/testing/snapshots/cst_output/DecimalNumberExpression/decimal_trailing_ident_start/generated/0.4.11-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/DecimalNumberExpression/decimal_trailing_ident_start/generated/0.4.11-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "1a\n" # (0..3) + - (root꞉ DecimalNumberExpression) ► (unrecognized꞉ UNRECOGNIZED): "1a\n" # (0..3) diff --git a/crates/solidity/testing/snapshots/cst_output/DecimalNumberExpression/integer_ident_after_period/generated/0.4.11-failure.yml b/crates/solidity/testing/snapshots/cst_output/DecimalNumberExpression/integer_ident_after_period/generated/0.4.11-failure.yml index 169976dd42..79c91adcab 100644 --- a/crates/solidity/testing/snapshots/cst_output/DecimalNumberExpression/integer_ident_after_period/generated/0.4.11-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/DecimalNumberExpression/integer_ident_after_period/generated/0.4.11-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "1.a\n" # (0..4) + - (root꞉ DecimalNumberExpression) ► (unrecognized꞉ UNRECOGNIZED): "1.a\n" # (0..4) diff --git a/crates/solidity/testing/snapshots/cst_output/DecimalNumberExpression/leading_period_ident_after_decimal/generated/0.4.11-failure.yml b/crates/solidity/testing/snapshots/cst_output/DecimalNumberExpression/leading_period_ident_after_decimal/generated/0.4.11-failure.yml index a903ed96a2..30ca2c9e26 100644 --- a/crates/solidity/testing/snapshots/cst_output/DecimalNumberExpression/leading_period_ident_after_decimal/generated/0.4.11-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/DecimalNumberExpression/leading_period_ident_after_decimal/generated/0.4.11-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): ".1a\n" # (0..4) + - (root꞉ DecimalNumberExpression) ► (unrecognized꞉ UNRECOGNIZED): ".1a\n" # (0..4) diff --git a/crates/solidity/testing/snapshots/cst_output/ErrorDefinition/top_level/generated/0.4.11-failure.yml b/crates/solidity/testing/snapshots/cst_output/ErrorDefinition/top_level/generated/0.4.11-failure.yml index 3113cba712..65260f892a 100644 --- a/crates/solidity/testing/snapshots/cst_output/ErrorDefinition/top_level/generated/0.4.11-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/ErrorDefinition/top_level/generated/0.4.11-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "error MyError();" # (0..16) + - (root꞉ ErrorDefinition) ► (unrecognized꞉ UNRECOGNIZED): "error MyError();" # (0..16) diff --git a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_alias/generated/0.5.0-failure.yml b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_alias/generated/0.5.0-failure.yml index 126da80c3c..f1431b2ce6 100644 --- a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_alias/generated/0.5.0-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_alias/generated/0.5.0-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "alias" # (0..5) + - (root꞉ Expression) ► (unrecognized꞉ UNRECOGNIZED): "alias" # (0..5) diff --git a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_alias/generated/0.5.3-failure.yml b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_alias/generated/0.5.3-failure.yml index c0ba7bc5c3..89ed9cc89a 100644 --- a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_alias/generated/0.5.3-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_alias/generated/0.5.3-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "alias" # (0..5) + - (root꞉ Expression) ► (unrecognized꞉ UNRECOGNIZED): "alias" # (0..5) diff --git a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_alias/generated/0.6.0-failure.yml b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_alias/generated/0.6.0-failure.yml index 480fd66edd..fb89b03294 100644 --- a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_alias/generated/0.6.0-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_alias/generated/0.6.0-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "alias" # (0..5) + - (root꞉ Expression) ► (unrecognized꞉ UNRECOGNIZED): "alias" # (0..5) diff --git a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_alias/generated/0.7.0-failure.yml b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_alias/generated/0.7.0-failure.yml index a6df44807d..6f5d4f803f 100644 --- a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_alias/generated/0.7.0-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_alias/generated/0.7.0-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "alias" # (0..5) + - (root꞉ Expression) ► (unrecognized꞉ UNRECOGNIZED): "alias" # (0..5) diff --git a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_alias/generated/0.8.0-failure.yml b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_alias/generated/0.8.0-failure.yml index e99428f4af..0ffc29c2eb 100644 --- a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_alias/generated/0.8.0-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_alias/generated/0.8.0-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "alias" # (0..5) + - (root꞉ Expression) ► (unrecognized꞉ UNRECOGNIZED): "alias" # (0..5) diff --git a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_apply/generated/0.5.0-failure.yml b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_apply/generated/0.5.0-failure.yml index a94ab6bb85..a65d4acee4 100644 --- a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_apply/generated/0.5.0-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_apply/generated/0.5.0-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "apply" # (0..5) + - (root꞉ Expression) ► (unrecognized꞉ UNRECOGNIZED): "apply" # (0..5) diff --git a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_apply/generated/0.5.3-failure.yml b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_apply/generated/0.5.3-failure.yml index f0464a88a2..2f4adb6221 100644 --- a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_apply/generated/0.5.3-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_apply/generated/0.5.3-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "apply" # (0..5) + - (root꞉ Expression) ► (unrecognized꞉ UNRECOGNIZED): "apply" # (0..5) diff --git a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_apply/generated/0.6.0-failure.yml b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_apply/generated/0.6.0-failure.yml index 9be81c0dfb..c3b407fb21 100644 --- a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_apply/generated/0.6.0-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_apply/generated/0.6.0-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "apply" # (0..5) + - (root꞉ Expression) ► (unrecognized꞉ UNRECOGNIZED): "apply" # (0..5) diff --git a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_apply/generated/0.7.0-failure.yml b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_apply/generated/0.7.0-failure.yml index 030add1a52..f1e6021177 100644 --- a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_apply/generated/0.7.0-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_apply/generated/0.7.0-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "apply" # (0..5) + - (root꞉ Expression) ► (unrecognized꞉ UNRECOGNIZED): "apply" # (0..5) diff --git a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_apply/generated/0.8.0-failure.yml b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_apply/generated/0.8.0-failure.yml index 661b79540b..e44148c6c7 100644 --- a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_apply/generated/0.8.0-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_apply/generated/0.8.0-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "apply" # (0..5) + - (root꞉ Expression) ► (unrecognized꞉ UNRECOGNIZED): "apply" # (0..5) diff --git a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_auto/generated/0.5.0-failure.yml b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_auto/generated/0.5.0-failure.yml index b887e7a290..52c54e755b 100644 --- a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_auto/generated/0.5.0-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_auto/generated/0.5.0-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "auto" # (0..4) + - (root꞉ Expression) ► (unrecognized꞉ UNRECOGNIZED): "auto" # (0..4) diff --git a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_auto/generated/0.5.3-failure.yml b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_auto/generated/0.5.3-failure.yml index 4d55201cd4..a5b718e3a5 100644 --- a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_auto/generated/0.5.3-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_auto/generated/0.5.3-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "auto" # (0..4) + - (root꞉ Expression) ► (unrecognized꞉ UNRECOGNIZED): "auto" # (0..4) diff --git a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_auto/generated/0.6.0-failure.yml b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_auto/generated/0.6.0-failure.yml index f725a1f05a..51e17c4500 100644 --- a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_auto/generated/0.6.0-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_auto/generated/0.6.0-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "auto" # (0..4) + - (root꞉ Expression) ► (unrecognized꞉ UNRECOGNIZED): "auto" # (0..4) diff --git a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_auto/generated/0.7.0-failure.yml b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_auto/generated/0.7.0-failure.yml index af7c686292..d36b9375d8 100644 --- a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_auto/generated/0.7.0-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_auto/generated/0.7.0-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "auto" # (0..4) + - (root꞉ Expression) ► (unrecognized꞉ UNRECOGNIZED): "auto" # (0..4) diff --git a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_auto/generated/0.8.0-failure.yml b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_auto/generated/0.8.0-failure.yml index 4497419095..e39c27436a 100644 --- a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_auto/generated/0.8.0-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_auto/generated/0.8.0-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "auto" # (0..4) + - (root꞉ Expression) ► (unrecognized꞉ UNRECOGNIZED): "auto" # (0..4) diff --git a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_calldata/generated/0.5.0-failure.yml b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_calldata/generated/0.5.0-failure.yml index cbe91273b2..430dbfe7ff 100644 --- a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_calldata/generated/0.5.0-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_calldata/generated/0.5.0-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "calldata" # (0..8) + - (root꞉ Expression) ► (unrecognized꞉ UNRECOGNIZED): "calldata" # (0..8) diff --git a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_calldata/generated/0.5.3-failure.yml b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_calldata/generated/0.5.3-failure.yml index 8ddabf45cb..99b3ab2b85 100644 --- a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_calldata/generated/0.5.3-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_calldata/generated/0.5.3-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "calldata" # (0..8) + - (root꞉ Expression) ► (unrecognized꞉ UNRECOGNIZED): "calldata" # (0..8) diff --git a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_calldata/generated/0.6.0-failure.yml b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_calldata/generated/0.6.0-failure.yml index 0ba9bef318..19af39498b 100644 --- a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_calldata/generated/0.6.0-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_calldata/generated/0.6.0-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "calldata" # (0..8) + - (root꞉ Expression) ► (unrecognized꞉ UNRECOGNIZED): "calldata" # (0..8) diff --git a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_calldata/generated/0.7.0-failure.yml b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_calldata/generated/0.7.0-failure.yml index af20da6e41..05f519918f 100644 --- a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_calldata/generated/0.7.0-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_calldata/generated/0.7.0-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "calldata" # (0..8) + - (root꞉ Expression) ► (unrecognized꞉ UNRECOGNIZED): "calldata" # (0..8) diff --git a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_calldata/generated/0.8.0-failure.yml b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_calldata/generated/0.8.0-failure.yml index 575efa5a30..0e8640349c 100644 --- a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_calldata/generated/0.8.0-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_calldata/generated/0.8.0-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "calldata" # (0..8) + - (root꞉ Expression) ► (unrecognized꞉ UNRECOGNIZED): "calldata" # (0..8) diff --git a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_constructor/generated/0.5.0-failure.yml b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_constructor/generated/0.5.0-failure.yml index 126f082e84..85e0ff16b2 100644 --- a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_constructor/generated/0.5.0-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_constructor/generated/0.5.0-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "constructor" # (0..11) + - (root꞉ Expression) ► (unrecognized꞉ UNRECOGNIZED): "constructor" # (0..11) diff --git a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_constructor/generated/0.5.3-failure.yml b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_constructor/generated/0.5.3-failure.yml index 5731809b49..9dcc360106 100644 --- a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_constructor/generated/0.5.3-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_constructor/generated/0.5.3-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "constructor" # (0..11) + - (root꞉ Expression) ► (unrecognized꞉ UNRECOGNIZED): "constructor" # (0..11) diff --git a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_constructor/generated/0.6.0-failure.yml b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_constructor/generated/0.6.0-failure.yml index 75adf0fe7a..9751587c6c 100644 --- a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_constructor/generated/0.6.0-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_constructor/generated/0.6.0-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "constructor" # (0..11) + - (root꞉ Expression) ► (unrecognized꞉ UNRECOGNIZED): "constructor" # (0..11) diff --git a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_constructor/generated/0.7.0-failure.yml b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_constructor/generated/0.7.0-failure.yml index 0265da9e1a..ce563e82b7 100644 --- a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_constructor/generated/0.7.0-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_constructor/generated/0.7.0-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "constructor" # (0..11) + - (root꞉ Expression) ► (unrecognized꞉ UNRECOGNIZED): "constructor" # (0..11) diff --git a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_constructor/generated/0.8.0-failure.yml b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_constructor/generated/0.8.0-failure.yml index 975c38c8b5..6c1da7e999 100644 --- a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_constructor/generated/0.8.0-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_constructor/generated/0.8.0-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "constructor" # (0..11) + - (root꞉ Expression) ► (unrecognized꞉ UNRECOGNIZED): "constructor" # (0..11) diff --git a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_copyof/generated/0.5.0-failure.yml b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_copyof/generated/0.5.0-failure.yml index b10aa88fe4..3da5825015 100644 --- a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_copyof/generated/0.5.0-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_copyof/generated/0.5.0-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "copyof" # (0..6) + - (root꞉ Expression) ► (unrecognized꞉ UNRECOGNIZED): "copyof" # (0..6) diff --git a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_copyof/generated/0.5.3-failure.yml b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_copyof/generated/0.5.3-failure.yml index c57a04a86e..5c43354e71 100644 --- a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_copyof/generated/0.5.3-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_copyof/generated/0.5.3-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "copyof" # (0..6) + - (root꞉ Expression) ► (unrecognized꞉ UNRECOGNIZED): "copyof" # (0..6) diff --git a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_copyof/generated/0.6.0-failure.yml b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_copyof/generated/0.6.0-failure.yml index 125bb1e0ab..f07942bf24 100644 --- a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_copyof/generated/0.6.0-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_copyof/generated/0.6.0-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "copyof" # (0..6) + - (root꞉ Expression) ► (unrecognized꞉ UNRECOGNIZED): "copyof" # (0..6) diff --git a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_copyof/generated/0.7.0-failure.yml b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_copyof/generated/0.7.0-failure.yml index 492dd9a7cf..936a789dfd 100644 --- a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_copyof/generated/0.7.0-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_copyof/generated/0.7.0-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "copyof" # (0..6) + - (root꞉ Expression) ► (unrecognized꞉ UNRECOGNIZED): "copyof" # (0..6) diff --git a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_copyof/generated/0.8.0-failure.yml b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_copyof/generated/0.8.0-failure.yml index 1052930763..4fbbd5cdc1 100644 --- a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_copyof/generated/0.8.0-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_copyof/generated/0.8.0-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "copyof" # (0..6) + - (root꞉ Expression) ► (unrecognized꞉ UNRECOGNIZED): "copyof" # (0..6) diff --git a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_define/generated/0.5.0-failure.yml b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_define/generated/0.5.0-failure.yml index 6dad48faaf..6fe346d555 100644 --- a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_define/generated/0.5.0-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_define/generated/0.5.0-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "define" # (0..6) + - (root꞉ Expression) ► (unrecognized꞉ UNRECOGNIZED): "define" # (0..6) diff --git a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_define/generated/0.5.3-failure.yml b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_define/generated/0.5.3-failure.yml index e039cc9f0e..46fa999635 100644 --- a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_define/generated/0.5.3-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_define/generated/0.5.3-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "define" # (0..6) + - (root꞉ Expression) ► (unrecognized꞉ UNRECOGNIZED): "define" # (0..6) diff --git a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_define/generated/0.6.0-failure.yml b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_define/generated/0.6.0-failure.yml index 48786d4219..a9a342c82b 100644 --- a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_define/generated/0.6.0-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_define/generated/0.6.0-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "define" # (0..6) + - (root꞉ Expression) ► (unrecognized꞉ UNRECOGNIZED): "define" # (0..6) diff --git a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_define/generated/0.7.0-failure.yml b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_define/generated/0.7.0-failure.yml index db68879fcf..8c5de79ca2 100644 --- a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_define/generated/0.7.0-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_define/generated/0.7.0-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "define" # (0..6) + - (root꞉ Expression) ► (unrecognized꞉ UNRECOGNIZED): "define" # (0..6) diff --git a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_define/generated/0.8.0-failure.yml b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_define/generated/0.8.0-failure.yml index e65509f5ec..127110590e 100644 --- a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_define/generated/0.8.0-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_define/generated/0.8.0-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "define" # (0..6) + - (root꞉ Expression) ► (unrecognized꞉ UNRECOGNIZED): "define" # (0..6) diff --git a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_emit/generated/0.5.0-failure.yml b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_emit/generated/0.5.0-failure.yml index accc297df2..153fe90493 100644 --- a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_emit/generated/0.5.0-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_emit/generated/0.5.0-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "emit" # (0..4) + - (root꞉ Expression) ► (unrecognized꞉ UNRECOGNIZED): "emit" # (0..4) diff --git a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_emit/generated/0.5.3-failure.yml b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_emit/generated/0.5.3-failure.yml index 304e45120f..c6b8e4bfb9 100644 --- a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_emit/generated/0.5.3-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_emit/generated/0.5.3-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "emit" # (0..4) + - (root꞉ Expression) ► (unrecognized꞉ UNRECOGNIZED): "emit" # (0..4) diff --git a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_emit/generated/0.6.0-failure.yml b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_emit/generated/0.6.0-failure.yml index c53c4ef8d7..5c5390d8a7 100644 --- a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_emit/generated/0.6.0-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_emit/generated/0.6.0-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "emit" # (0..4) + - (root꞉ Expression) ► (unrecognized꞉ UNRECOGNIZED): "emit" # (0..4) diff --git a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_emit/generated/0.7.0-failure.yml b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_emit/generated/0.7.0-failure.yml index e7748f01ce..02d6c5630a 100644 --- a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_emit/generated/0.7.0-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_emit/generated/0.7.0-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "emit" # (0..4) + - (root꞉ Expression) ► (unrecognized꞉ UNRECOGNIZED): "emit" # (0..4) diff --git a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_emit/generated/0.8.0-failure.yml b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_emit/generated/0.8.0-failure.yml index c5f3dcaaa4..792fc7b32b 100644 --- a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_emit/generated/0.8.0-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_emit/generated/0.8.0-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "emit" # (0..4) + - (root꞉ Expression) ► (unrecognized꞉ UNRECOGNIZED): "emit" # (0..4) diff --git a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_fallback/generated/0.6.0-failure.yml b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_fallback/generated/0.6.0-failure.yml index e2c1f6ed4f..c8b8a8d0ef 100644 --- a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_fallback/generated/0.6.0-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_fallback/generated/0.6.0-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "fallback" # (0..8) + - (root꞉ Expression) ► (unrecognized꞉ UNRECOGNIZED): "fallback" # (0..8) diff --git a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_fallback/generated/0.7.0-failure.yml b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_fallback/generated/0.7.0-failure.yml index 24f987e9d9..7d1e2dc3df 100644 --- a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_fallback/generated/0.7.0-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_fallback/generated/0.7.0-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "fallback" # (0..8) + - (root꞉ Expression) ► (unrecognized꞉ UNRECOGNIZED): "fallback" # (0..8) diff --git a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_fallback/generated/0.8.0-failure.yml b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_fallback/generated/0.8.0-failure.yml index 354aec925c..49f6ec6258 100644 --- a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_fallback/generated/0.8.0-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_fallback/generated/0.8.0-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "fallback" # (0..8) + - (root꞉ Expression) ► (unrecognized꞉ UNRECOGNIZED): "fallback" # (0..8) diff --git a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_finney/generated/0.4.11-failure.yml b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_finney/generated/0.4.11-failure.yml index cca333f2ce..a9b7506638 100644 --- a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_finney/generated/0.4.11-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_finney/generated/0.4.11-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "finney" # (0..6) + - (root꞉ Expression) ► (unrecognized꞉ UNRECOGNIZED): "finney" # (0..6) diff --git a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_finney/generated/0.5.3-failure.yml b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_finney/generated/0.5.3-failure.yml index d109def84e..3e35a445d6 100644 --- a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_finney/generated/0.5.3-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_finney/generated/0.5.3-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "finney" # (0..6) + - (root꞉ Expression) ► (unrecognized꞉ UNRECOGNIZED): "finney" # (0..6) diff --git a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_finney/generated/0.6.0-failure.yml b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_finney/generated/0.6.0-failure.yml index b567b33c48..5c4c7f3732 100644 --- a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_finney/generated/0.6.0-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_finney/generated/0.6.0-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "finney" # (0..6) + - (root꞉ Expression) ► (unrecognized꞉ UNRECOGNIZED): "finney" # (0..6) diff --git a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_immutable/generated/0.5.0-failure.yml b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_immutable/generated/0.5.0-failure.yml index fc91339df0..7fc4422468 100644 --- a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_immutable/generated/0.5.0-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_immutable/generated/0.5.0-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "immutable" # (0..9) + - (root꞉ Expression) ► (unrecognized꞉ UNRECOGNIZED): "immutable" # (0..9) diff --git a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_immutable/generated/0.5.3-failure.yml b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_immutable/generated/0.5.3-failure.yml index cd9b3a7c78..b1a8d1281b 100644 --- a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_immutable/generated/0.5.3-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_immutable/generated/0.5.3-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "immutable" # (0..9) + - (root꞉ Expression) ► (unrecognized꞉ UNRECOGNIZED): "immutable" # (0..9) diff --git a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_immutable/generated/0.6.0-failure.yml b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_immutable/generated/0.6.0-failure.yml index 533e895f2e..10cdc94d8e 100644 --- a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_immutable/generated/0.6.0-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_immutable/generated/0.6.0-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "immutable" # (0..9) + - (root꞉ Expression) ► (unrecognized꞉ UNRECOGNIZED): "immutable" # (0..9) diff --git a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_immutable/generated/0.7.0-failure.yml b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_immutable/generated/0.7.0-failure.yml index 860a395cf8..85d6902b6d 100644 --- a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_immutable/generated/0.7.0-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_immutable/generated/0.7.0-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "immutable" # (0..9) + - (root꞉ Expression) ► (unrecognized꞉ UNRECOGNIZED): "immutable" # (0..9) diff --git a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_immutable/generated/0.8.0-failure.yml b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_immutable/generated/0.8.0-failure.yml index ee20f24518..ff53a7c533 100644 --- a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_immutable/generated/0.8.0-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_immutable/generated/0.8.0-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "immutable" # (0..9) + - (root꞉ Expression) ► (unrecognized꞉ UNRECOGNIZED): "immutable" # (0..9) diff --git a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_implements/generated/0.5.0-failure.yml b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_implements/generated/0.5.0-failure.yml index 5a2b5397b3..c3fe23b876 100644 --- a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_implements/generated/0.5.0-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_implements/generated/0.5.0-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "implements" # (0..10) + - (root꞉ Expression) ► (unrecognized꞉ UNRECOGNIZED): "implements" # (0..10) diff --git a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_implements/generated/0.5.3-failure.yml b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_implements/generated/0.5.3-failure.yml index 26dfca404a..159776d8b1 100644 --- a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_implements/generated/0.5.3-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_implements/generated/0.5.3-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "implements" # (0..10) + - (root꞉ Expression) ► (unrecognized꞉ UNRECOGNIZED): "implements" # (0..10) diff --git a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_implements/generated/0.6.0-failure.yml b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_implements/generated/0.6.0-failure.yml index b8a18919f1..d7a7844525 100644 --- a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_implements/generated/0.6.0-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_implements/generated/0.6.0-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "implements" # (0..10) + - (root꞉ Expression) ► (unrecognized꞉ UNRECOGNIZED): "implements" # (0..10) diff --git a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_implements/generated/0.7.0-failure.yml b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_implements/generated/0.7.0-failure.yml index c404c97fed..b4a8e5c5e5 100644 --- a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_implements/generated/0.7.0-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_implements/generated/0.7.0-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "implements" # (0..10) + - (root꞉ Expression) ► (unrecognized꞉ UNRECOGNIZED): "implements" # (0..10) diff --git a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_implements/generated/0.8.0-failure.yml b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_implements/generated/0.8.0-failure.yml index d9082989b9..ad6b2cf19f 100644 --- a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_implements/generated/0.8.0-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_implements/generated/0.8.0-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "implements" # (0..10) + - (root꞉ Expression) ► (unrecognized꞉ UNRECOGNIZED): "implements" # (0..10) diff --git a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_macro/generated/0.5.0-failure.yml b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_macro/generated/0.5.0-failure.yml index 1d6c355f45..5f103c076f 100644 --- a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_macro/generated/0.5.0-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_macro/generated/0.5.0-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "macro" # (0..5) + - (root꞉ Expression) ► (unrecognized꞉ UNRECOGNIZED): "macro" # (0..5) diff --git a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_macro/generated/0.5.3-failure.yml b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_macro/generated/0.5.3-failure.yml index fcfdf681fb..7f7e81d9c7 100644 --- a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_macro/generated/0.5.3-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_macro/generated/0.5.3-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "macro" # (0..5) + - (root꞉ Expression) ► (unrecognized꞉ UNRECOGNIZED): "macro" # (0..5) diff --git a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_macro/generated/0.6.0-failure.yml b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_macro/generated/0.6.0-failure.yml index e7e9c69e18..437f9779cb 100644 --- a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_macro/generated/0.6.0-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_macro/generated/0.6.0-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "macro" # (0..5) + - (root꞉ Expression) ► (unrecognized꞉ UNRECOGNIZED): "macro" # (0..5) diff --git a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_macro/generated/0.7.0-failure.yml b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_macro/generated/0.7.0-failure.yml index b8ad00e857..671a8bfd65 100644 --- a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_macro/generated/0.7.0-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_macro/generated/0.7.0-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "macro" # (0..5) + - (root꞉ Expression) ► (unrecognized꞉ UNRECOGNIZED): "macro" # (0..5) diff --git a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_macro/generated/0.8.0-failure.yml b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_macro/generated/0.8.0-failure.yml index db2171ae24..7e46d3958c 100644 --- a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_macro/generated/0.8.0-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_macro/generated/0.8.0-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "macro" # (0..5) + - (root꞉ Expression) ► (unrecognized꞉ UNRECOGNIZED): "macro" # (0..5) diff --git a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_mutable/generated/0.5.0-failure.yml b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_mutable/generated/0.5.0-failure.yml index 4578f0b236..9addcaab3d 100644 --- a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_mutable/generated/0.5.0-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_mutable/generated/0.5.0-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "mutable" # (0..7) + - (root꞉ Expression) ► (unrecognized꞉ UNRECOGNIZED): "mutable" # (0..7) diff --git a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_mutable/generated/0.5.3-failure.yml b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_mutable/generated/0.5.3-failure.yml index 0b3151bdc9..433529a3e9 100644 --- a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_mutable/generated/0.5.3-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_mutable/generated/0.5.3-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "mutable" # (0..7) + - (root꞉ Expression) ► (unrecognized꞉ UNRECOGNIZED): "mutable" # (0..7) diff --git a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_mutable/generated/0.6.0-failure.yml b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_mutable/generated/0.6.0-failure.yml index 3b16bb5596..f9bec050dc 100644 --- a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_mutable/generated/0.6.0-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_mutable/generated/0.6.0-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "mutable" # (0..7) + - (root꞉ Expression) ► (unrecognized꞉ UNRECOGNIZED): "mutable" # (0..7) diff --git a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_mutable/generated/0.7.0-failure.yml b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_mutable/generated/0.7.0-failure.yml index 11f62a9a1c..a839f2f5aa 100644 --- a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_mutable/generated/0.7.0-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_mutable/generated/0.7.0-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "mutable" # (0..7) + - (root꞉ Expression) ► (unrecognized꞉ UNRECOGNIZED): "mutable" # (0..7) diff --git a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_mutable/generated/0.8.0-failure.yml b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_mutable/generated/0.8.0-failure.yml index a5ada8711c..37d98aadc1 100644 --- a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_mutable/generated/0.8.0-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_mutable/generated/0.8.0-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "mutable" # (0..7) + - (root꞉ Expression) ► (unrecognized꞉ UNRECOGNIZED): "mutable" # (0..7) diff --git a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_override/generated/0.5.0-failure.yml b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_override/generated/0.5.0-failure.yml index 85d1ef6d4c..4b5dc06c8a 100644 --- a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_override/generated/0.5.0-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_override/generated/0.5.0-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "override" # (0..8) + - (root꞉ Expression) ► (unrecognized꞉ UNRECOGNIZED): "override" # (0..8) diff --git a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_override/generated/0.5.3-failure.yml b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_override/generated/0.5.3-failure.yml index 05e46a9b32..2dfaaa3efe 100644 --- a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_override/generated/0.5.3-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_override/generated/0.5.3-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "override" # (0..8) + - (root꞉ Expression) ► (unrecognized꞉ UNRECOGNIZED): "override" # (0..8) diff --git a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_override/generated/0.6.0-failure.yml b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_override/generated/0.6.0-failure.yml index 23a65bf4e7..483772933d 100644 --- a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_override/generated/0.6.0-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_override/generated/0.6.0-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "override" # (0..8) + - (root꞉ Expression) ► (unrecognized꞉ UNRECOGNIZED): "override" # (0..8) diff --git a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_override/generated/0.7.0-failure.yml b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_override/generated/0.7.0-failure.yml index fcf7c761fc..b749630f40 100644 --- a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_override/generated/0.7.0-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_override/generated/0.7.0-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "override" # (0..8) + - (root꞉ Expression) ► (unrecognized꞉ UNRECOGNIZED): "override" # (0..8) diff --git a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_override/generated/0.8.0-failure.yml b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_override/generated/0.8.0-failure.yml index e5d367862c..7fc209659a 100644 --- a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_override/generated/0.8.0-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_override/generated/0.8.0-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "override" # (0..8) + - (root꞉ Expression) ► (unrecognized꞉ UNRECOGNIZED): "override" # (0..8) diff --git a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_partial/generated/0.5.0-failure.yml b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_partial/generated/0.5.0-failure.yml index 5b85c0c234..f50b2dee1b 100644 --- a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_partial/generated/0.5.0-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_partial/generated/0.5.0-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "partial" # (0..7) + - (root꞉ Expression) ► (unrecognized꞉ UNRECOGNIZED): "partial" # (0..7) diff --git a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_partial/generated/0.5.3-failure.yml b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_partial/generated/0.5.3-failure.yml index e5db9f9cfd..951f87d393 100644 --- a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_partial/generated/0.5.3-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_partial/generated/0.5.3-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "partial" # (0..7) + - (root꞉ Expression) ► (unrecognized꞉ UNRECOGNIZED): "partial" # (0..7) diff --git a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_partial/generated/0.6.0-failure.yml b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_partial/generated/0.6.0-failure.yml index cba1c299a1..35e04c88af 100644 --- a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_partial/generated/0.6.0-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_partial/generated/0.6.0-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "partial" # (0..7) + - (root꞉ Expression) ► (unrecognized꞉ UNRECOGNIZED): "partial" # (0..7) diff --git a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_partial/generated/0.7.0-failure.yml b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_partial/generated/0.7.0-failure.yml index 328941db68..662e8ce966 100644 --- a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_partial/generated/0.7.0-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_partial/generated/0.7.0-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "partial" # (0..7) + - (root꞉ Expression) ► (unrecognized꞉ UNRECOGNIZED): "partial" # (0..7) diff --git a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_partial/generated/0.8.0-failure.yml b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_partial/generated/0.8.0-failure.yml index 3c2468c357..b17275a358 100644 --- a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_partial/generated/0.8.0-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_partial/generated/0.8.0-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "partial" # (0..7) + - (root꞉ Expression) ► (unrecognized꞉ UNRECOGNIZED): "partial" # (0..7) diff --git a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_promise/generated/0.5.0-failure.yml b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_promise/generated/0.5.0-failure.yml index ef7b9b783f..6e7c650441 100644 --- a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_promise/generated/0.5.0-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_promise/generated/0.5.0-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "promise" # (0..7) + - (root꞉ Expression) ► (unrecognized꞉ UNRECOGNIZED): "promise" # (0..7) diff --git a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_promise/generated/0.5.3-failure.yml b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_promise/generated/0.5.3-failure.yml index 54892e24ca..071312424b 100644 --- a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_promise/generated/0.5.3-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_promise/generated/0.5.3-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "promise" # (0..7) + - (root꞉ Expression) ► (unrecognized꞉ UNRECOGNIZED): "promise" # (0..7) diff --git a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_promise/generated/0.6.0-failure.yml b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_promise/generated/0.6.0-failure.yml index ad6d0e5181..8d4414e01b 100644 --- a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_promise/generated/0.6.0-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_promise/generated/0.6.0-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "promise" # (0..7) + - (root꞉ Expression) ► (unrecognized꞉ UNRECOGNIZED): "promise" # (0..7) diff --git a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_promise/generated/0.7.0-failure.yml b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_promise/generated/0.7.0-failure.yml index e2fa87a49a..06004f23fc 100644 --- a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_promise/generated/0.7.0-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_promise/generated/0.7.0-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "promise" # (0..7) + - (root꞉ Expression) ► (unrecognized꞉ UNRECOGNIZED): "promise" # (0..7) diff --git a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_promise/generated/0.8.0-failure.yml b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_promise/generated/0.8.0-failure.yml index f1f477f3cc..006447e8ab 100644 --- a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_promise/generated/0.8.0-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_promise/generated/0.8.0-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "promise" # (0..7) + - (root꞉ Expression) ► (unrecognized꞉ UNRECOGNIZED): "promise" # (0..7) diff --git a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_receive/generated/0.6.0-failure.yml b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_receive/generated/0.6.0-failure.yml index 9cf94ddb68..241ca7ba49 100644 --- a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_receive/generated/0.6.0-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_receive/generated/0.6.0-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "receive" # (0..7) + - (root꞉ Expression) ► (unrecognized꞉ UNRECOGNIZED): "receive" # (0..7) diff --git a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_receive/generated/0.7.0-failure.yml b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_receive/generated/0.7.0-failure.yml index 5a044471cf..bc69ba8bc6 100644 --- a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_receive/generated/0.7.0-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_receive/generated/0.7.0-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "receive" # (0..7) + - (root꞉ Expression) ► (unrecognized꞉ UNRECOGNIZED): "receive" # (0..7) diff --git a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_receive/generated/0.8.0-failure.yml b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_receive/generated/0.8.0-failure.yml index 410dc1bd0b..1a24376113 100644 --- a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_receive/generated/0.8.0-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_receive/generated/0.8.0-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "receive" # (0..7) + - (root꞉ Expression) ► (unrecognized꞉ UNRECOGNIZED): "receive" # (0..7) diff --git a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_reference/generated/0.5.0-failure.yml b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_reference/generated/0.5.0-failure.yml index 8b44e3a9b5..2224f44e5a 100644 --- a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_reference/generated/0.5.0-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_reference/generated/0.5.0-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "reference" # (0..9) + - (root꞉ Expression) ► (unrecognized꞉ UNRECOGNIZED): "reference" # (0..9) diff --git a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_reference/generated/0.5.3-failure.yml b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_reference/generated/0.5.3-failure.yml index 954f865436..ffb5a4fc0e 100644 --- a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_reference/generated/0.5.3-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_reference/generated/0.5.3-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "reference" # (0..9) + - (root꞉ Expression) ► (unrecognized꞉ UNRECOGNIZED): "reference" # (0..9) diff --git a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_reference/generated/0.6.0-failure.yml b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_reference/generated/0.6.0-failure.yml index b27ba8ba32..e2e8111ff7 100644 --- a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_reference/generated/0.6.0-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_reference/generated/0.6.0-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "reference" # (0..9) + - (root꞉ Expression) ► (unrecognized꞉ UNRECOGNIZED): "reference" # (0..9) diff --git a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_reference/generated/0.7.0-failure.yml b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_reference/generated/0.7.0-failure.yml index 80b060d564..d95897cafc 100644 --- a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_reference/generated/0.7.0-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_reference/generated/0.7.0-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "reference" # (0..9) + - (root꞉ Expression) ► (unrecognized꞉ UNRECOGNIZED): "reference" # (0..9) diff --git a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_reference/generated/0.8.0-failure.yml b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_reference/generated/0.8.0-failure.yml index 35f68b3572..4c3c0976ca 100644 --- a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_reference/generated/0.8.0-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_reference/generated/0.8.0-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "reference" # (0..9) + - (root꞉ Expression) ► (unrecognized꞉ UNRECOGNIZED): "reference" # (0..9) diff --git a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_sealed/generated/0.5.0-failure.yml b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_sealed/generated/0.5.0-failure.yml index 7f62b9f9dd..40b3d64d12 100644 --- a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_sealed/generated/0.5.0-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_sealed/generated/0.5.0-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "sealed" # (0..6) + - (root꞉ Expression) ► (unrecognized꞉ UNRECOGNIZED): "sealed" # (0..6) diff --git a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_sealed/generated/0.5.3-failure.yml b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_sealed/generated/0.5.3-failure.yml index 026e7da13e..2c6d45d753 100644 --- a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_sealed/generated/0.5.3-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_sealed/generated/0.5.3-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "sealed" # (0..6) + - (root꞉ Expression) ► (unrecognized꞉ UNRECOGNIZED): "sealed" # (0..6) diff --git a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_sealed/generated/0.6.0-failure.yml b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_sealed/generated/0.6.0-failure.yml index aa2391a752..f438508428 100644 --- a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_sealed/generated/0.6.0-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_sealed/generated/0.6.0-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "sealed" # (0..6) + - (root꞉ Expression) ► (unrecognized꞉ UNRECOGNIZED): "sealed" # (0..6) diff --git a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_sealed/generated/0.7.0-failure.yml b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_sealed/generated/0.7.0-failure.yml index bd1fe32f84..6f04f81818 100644 --- a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_sealed/generated/0.7.0-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_sealed/generated/0.7.0-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "sealed" # (0..6) + - (root꞉ Expression) ► (unrecognized꞉ UNRECOGNIZED): "sealed" # (0..6) diff --git a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_sealed/generated/0.8.0-failure.yml b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_sealed/generated/0.8.0-failure.yml index 1e871f3cc0..773fbd2bc3 100644 --- a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_sealed/generated/0.8.0-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_sealed/generated/0.8.0-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "sealed" # (0..6) + - (root꞉ Expression) ► (unrecognized꞉ UNRECOGNIZED): "sealed" # (0..6) diff --git a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_sizeof/generated/0.5.0-failure.yml b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_sizeof/generated/0.5.0-failure.yml index bf107a1aed..b454f721a5 100644 --- a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_sizeof/generated/0.5.0-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_sizeof/generated/0.5.0-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "sizeof" # (0..6) + - (root꞉ Expression) ► (unrecognized꞉ UNRECOGNIZED): "sizeof" # (0..6) diff --git a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_sizeof/generated/0.5.3-failure.yml b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_sizeof/generated/0.5.3-failure.yml index f845a72303..4e55608da4 100644 --- a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_sizeof/generated/0.5.3-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_sizeof/generated/0.5.3-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "sizeof" # (0..6) + - (root꞉ Expression) ► (unrecognized꞉ UNRECOGNIZED): "sizeof" # (0..6) diff --git a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_sizeof/generated/0.6.0-failure.yml b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_sizeof/generated/0.6.0-failure.yml index 010fd8c41c..57b092d724 100644 --- a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_sizeof/generated/0.6.0-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_sizeof/generated/0.6.0-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "sizeof" # (0..6) + - (root꞉ Expression) ► (unrecognized꞉ UNRECOGNIZED): "sizeof" # (0..6) diff --git a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_sizeof/generated/0.7.0-failure.yml b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_sizeof/generated/0.7.0-failure.yml index 06b882c287..4db3e839c3 100644 --- a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_sizeof/generated/0.7.0-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_sizeof/generated/0.7.0-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "sizeof" # (0..6) + - (root꞉ Expression) ► (unrecognized꞉ UNRECOGNIZED): "sizeof" # (0..6) diff --git a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_sizeof/generated/0.8.0-failure.yml b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_sizeof/generated/0.8.0-failure.yml index 90a75a116a..0096bf1980 100644 --- a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_sizeof/generated/0.8.0-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_sizeof/generated/0.8.0-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "sizeof" # (0..6) + - (root꞉ Expression) ► (unrecognized꞉ UNRECOGNIZED): "sizeof" # (0..6) diff --git a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_supports/generated/0.5.0-failure.yml b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_supports/generated/0.5.0-failure.yml index a915283e8e..0ebf8b0a99 100644 --- a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_supports/generated/0.5.0-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_supports/generated/0.5.0-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "supports" # (0..8) + - (root꞉ Expression) ► (unrecognized꞉ UNRECOGNIZED): "supports" # (0..8) diff --git a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_supports/generated/0.5.3-failure.yml b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_supports/generated/0.5.3-failure.yml index 2c96db07bd..d6c527c644 100644 --- a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_supports/generated/0.5.3-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_supports/generated/0.5.3-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "supports" # (0..8) + - (root꞉ Expression) ► (unrecognized꞉ UNRECOGNIZED): "supports" # (0..8) diff --git a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_supports/generated/0.6.0-failure.yml b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_supports/generated/0.6.0-failure.yml index 9f03957334..6eeff981ea 100644 --- a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_supports/generated/0.6.0-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_supports/generated/0.6.0-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "supports" # (0..8) + - (root꞉ Expression) ► (unrecognized꞉ UNRECOGNIZED): "supports" # (0..8) diff --git a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_supports/generated/0.7.0-failure.yml b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_supports/generated/0.7.0-failure.yml index 22c22f8972..276c560eef 100644 --- a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_supports/generated/0.7.0-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_supports/generated/0.7.0-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "supports" # (0..8) + - (root꞉ Expression) ► (unrecognized꞉ UNRECOGNIZED): "supports" # (0..8) diff --git a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_supports/generated/0.8.0-failure.yml b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_supports/generated/0.8.0-failure.yml index 837f894041..6b71d1aa21 100644 --- a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_supports/generated/0.8.0-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_supports/generated/0.8.0-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "supports" # (0..8) + - (root꞉ Expression) ► (unrecognized꞉ UNRECOGNIZED): "supports" # (0..8) diff --git a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_szabo/generated/0.4.11-failure.yml b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_szabo/generated/0.4.11-failure.yml index 8c3037393a..fbe2d96902 100644 --- a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_szabo/generated/0.4.11-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_szabo/generated/0.4.11-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "szabo" # (0..5) + - (root꞉ Expression) ► (unrecognized꞉ UNRECOGNIZED): "szabo" # (0..5) diff --git a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_szabo/generated/0.5.3-failure.yml b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_szabo/generated/0.5.3-failure.yml index c6bdc102f9..8b3bdaffc5 100644 --- a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_szabo/generated/0.5.3-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_szabo/generated/0.5.3-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "szabo" # (0..5) + - (root꞉ Expression) ► (unrecognized꞉ UNRECOGNIZED): "szabo" # (0..5) diff --git a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_szabo/generated/0.6.0-failure.yml b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_szabo/generated/0.6.0-failure.yml index 59d4223537..6edb932ebd 100644 --- a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_szabo/generated/0.6.0-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_szabo/generated/0.6.0-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "szabo" # (0..5) + - (root꞉ Expression) ► (unrecognized꞉ UNRECOGNIZED): "szabo" # (0..5) diff --git a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_typedef/generated/0.5.0-failure.yml b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_typedef/generated/0.5.0-failure.yml index ebcafc317f..727b79675d 100644 --- a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_typedef/generated/0.5.0-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_typedef/generated/0.5.0-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "typedef" # (0..7) + - (root꞉ Expression) ► (unrecognized꞉ UNRECOGNIZED): "typedef" # (0..7) diff --git a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_typedef/generated/0.5.3-failure.yml b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_typedef/generated/0.5.3-failure.yml index b77445aaae..9408e5fb39 100644 --- a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_typedef/generated/0.5.3-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_typedef/generated/0.5.3-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "typedef" # (0..7) + - (root꞉ Expression) ► (unrecognized꞉ UNRECOGNIZED): "typedef" # (0..7) diff --git a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_typedef/generated/0.6.0-failure.yml b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_typedef/generated/0.6.0-failure.yml index 62372f6468..d92a7f45d7 100644 --- a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_typedef/generated/0.6.0-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_typedef/generated/0.6.0-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "typedef" # (0..7) + - (root꞉ Expression) ► (unrecognized꞉ UNRECOGNIZED): "typedef" # (0..7) diff --git a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_typedef/generated/0.7.0-failure.yml b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_typedef/generated/0.7.0-failure.yml index 01055f17bd..35051acff0 100644 --- a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_typedef/generated/0.7.0-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_typedef/generated/0.7.0-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "typedef" # (0..7) + - (root꞉ Expression) ► (unrecognized꞉ UNRECOGNIZED): "typedef" # (0..7) diff --git a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_typedef/generated/0.8.0-failure.yml b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_typedef/generated/0.8.0-failure.yml index 5f40b0d5f6..fe11e7c4dd 100644 --- a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_typedef/generated/0.8.0-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_typedef/generated/0.8.0-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "typedef" # (0..7) + - (root꞉ Expression) ► (unrecognized꞉ UNRECOGNIZED): "typedef" # (0..7) diff --git a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_unchecked/generated/0.5.0-failure.yml b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_unchecked/generated/0.5.0-failure.yml index 261e97bf1e..18d51e5703 100644 --- a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_unchecked/generated/0.5.0-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_unchecked/generated/0.5.0-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "unchecked" # (0..9) + - (root꞉ Expression) ► (unrecognized꞉ UNRECOGNIZED): "unchecked" # (0..9) diff --git a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_unchecked/generated/0.5.3-failure.yml b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_unchecked/generated/0.5.3-failure.yml index 13b22d760f..fd897ede35 100644 --- a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_unchecked/generated/0.5.3-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_unchecked/generated/0.5.3-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "unchecked" # (0..9) + - (root꞉ Expression) ► (unrecognized꞉ UNRECOGNIZED): "unchecked" # (0..9) diff --git a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_unchecked/generated/0.6.0-failure.yml b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_unchecked/generated/0.6.0-failure.yml index a6e5b0b4a1..5df736aacf 100644 --- a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_unchecked/generated/0.6.0-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_unchecked/generated/0.6.0-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "unchecked" # (0..9) + - (root꞉ Expression) ► (unrecognized꞉ UNRECOGNIZED): "unchecked" # (0..9) diff --git a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_unchecked/generated/0.7.0-failure.yml b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_unchecked/generated/0.7.0-failure.yml index bd336f490d..c279cd3559 100644 --- a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_unchecked/generated/0.7.0-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_unchecked/generated/0.7.0-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "unchecked" # (0..9) + - (root꞉ Expression) ► (unrecognized꞉ UNRECOGNIZED): "unchecked" # (0..9) diff --git a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_unchecked/generated/0.8.0-failure.yml b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_unchecked/generated/0.8.0-failure.yml index 3d72c45d77..b108c0589d 100644 --- a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_unchecked/generated/0.8.0-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_unchecked/generated/0.8.0-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "unchecked" # (0..9) + - (root꞉ Expression) ► (unrecognized꞉ UNRECOGNIZED): "unchecked" # (0..9) diff --git a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_virtual/generated/0.6.0-failure.yml b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_virtual/generated/0.6.0-failure.yml index 95cdc87218..bc490f32cb 100644 --- a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_virtual/generated/0.6.0-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_virtual/generated/0.6.0-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "virtual" # (0..7) + - (root꞉ Expression) ► (unrecognized꞉ UNRECOGNIZED): "virtual" # (0..7) diff --git a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_virtual/generated/0.7.0-failure.yml b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_virtual/generated/0.7.0-failure.yml index 19ef23c92e..2efd7d7c77 100644 --- a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_virtual/generated/0.7.0-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_virtual/generated/0.7.0-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "virtual" # (0..7) + - (root꞉ Expression) ► (unrecognized꞉ UNRECOGNIZED): "virtual" # (0..7) diff --git a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_virtual/generated/0.8.0-failure.yml b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_virtual/generated/0.8.0-failure.yml index 71222905a0..ad50a43cc7 100644 --- a/crates/solidity/testing/snapshots/cst_output/Expression/keyword_virtual/generated/0.8.0-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/Expression/keyword_virtual/generated/0.8.0-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "virtual" # (0..7) + - (root꞉ Expression) ► (unrecognized꞉ UNRECOGNIZED): "virtual" # (0..7) diff --git a/crates/solidity/testing/snapshots/cst_output/Expression/member_access_integer/generated/0.4.11-failure.yml b/crates/solidity/testing/snapshots/cst_output/Expression/member_access_integer/generated/0.4.11-failure.yml index 194bbccb46..1a48144df3 100644 --- a/crates/solidity/testing/snapshots/cst_output/Expression/member_access_integer/generated/0.4.11-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/Expression/member_access_integer/generated/0.4.11-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "5.fromUint()\n" # (0..13) + - (root꞉ Expression) ► (unrecognized꞉ UNRECOGNIZED): "5.fromUint()\n" # (0..13) diff --git a/crates/solidity/testing/snapshots/cst_output/Expression/prefix_plus/generated/0.5.0-failure.yml b/crates/solidity/testing/snapshots/cst_output/Expression/prefix_plus/generated/0.5.0-failure.yml index af887c99bc..3d11dc5d2c 100644 --- a/crates/solidity/testing/snapshots/cst_output/Expression/prefix_plus/generated/0.5.0-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/Expression/prefix_plus/generated/0.5.0-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "+foo" # (0..4) + - (root꞉ Expression) ► (unrecognized꞉ UNRECOGNIZED): "+foo" # (0..4) diff --git a/crates/solidity/testing/snapshots/cst_output/Expression/prefix_plus/generated/0.5.3-failure.yml b/crates/solidity/testing/snapshots/cst_output/Expression/prefix_plus/generated/0.5.3-failure.yml index 47e5bf88d4..df9df3f088 100644 --- a/crates/solidity/testing/snapshots/cst_output/Expression/prefix_plus/generated/0.5.3-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/Expression/prefix_plus/generated/0.5.3-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "+foo" # (0..4) + - (root꞉ Expression) ► (unrecognized꞉ UNRECOGNIZED): "+foo" # (0..4) diff --git a/crates/solidity/testing/snapshots/cst_output/Expression/prefix_plus/generated/0.6.0-failure.yml b/crates/solidity/testing/snapshots/cst_output/Expression/prefix_plus/generated/0.6.0-failure.yml index d4441de514..20b36a6bf9 100644 --- a/crates/solidity/testing/snapshots/cst_output/Expression/prefix_plus/generated/0.6.0-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/Expression/prefix_plus/generated/0.6.0-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "+foo" # (0..4) + - (root꞉ Expression) ► (unrecognized꞉ UNRECOGNIZED): "+foo" # (0..4) diff --git a/crates/solidity/testing/snapshots/cst_output/Expression/prefix_plus/generated/0.7.0-failure.yml b/crates/solidity/testing/snapshots/cst_output/Expression/prefix_plus/generated/0.7.0-failure.yml index bf52ade09a..da5f504c14 100644 --- a/crates/solidity/testing/snapshots/cst_output/Expression/prefix_plus/generated/0.7.0-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/Expression/prefix_plus/generated/0.7.0-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "+foo" # (0..4) + - (root꞉ Expression) ► (unrecognized꞉ UNRECOGNIZED): "+foo" # (0..4) diff --git a/crates/solidity/testing/snapshots/cst_output/Expression/prefix_plus/generated/0.8.0-failure.yml b/crates/solidity/testing/snapshots/cst_output/Expression/prefix_plus/generated/0.8.0-failure.yml index efa4472487..007b1b2af1 100644 --- a/crates/solidity/testing/snapshots/cst_output/Expression/prefix_plus/generated/0.8.0-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/Expression/prefix_plus/generated/0.8.0-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "+foo" # (0..4) + - (root꞉ Expression) ► (unrecognized꞉ UNRECOGNIZED): "+foo" # (0..4) diff --git a/crates/solidity/testing/snapshots/cst_output/Expression/returns/generated/0.4.11-failure.yml b/crates/solidity/testing/snapshots/cst_output/Expression/returns/generated/0.4.11-failure.yml index 48fd384af2..8859e05b84 100644 --- a/crates/solidity/testing/snapshots/cst_output/Expression/returns/generated/0.4.11-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/Expression/returns/generated/0.4.11-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "returns" # (0..7) + - (root꞉ Expression) ► (unrecognized꞉ UNRECOGNIZED): "returns" # (0..7) diff --git a/crates/solidity/testing/snapshots/cst_output/Expression/returns/generated/0.5.3-failure.yml b/crates/solidity/testing/snapshots/cst_output/Expression/returns/generated/0.5.3-failure.yml index 913b45d72f..716d21da0e 100644 --- a/crates/solidity/testing/snapshots/cst_output/Expression/returns/generated/0.5.3-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/Expression/returns/generated/0.5.3-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "returns" # (0..7) + - (root꞉ Expression) ► (unrecognized꞉ UNRECOGNIZED): "returns" # (0..7) diff --git a/crates/solidity/testing/snapshots/cst_output/Expression/returns/generated/0.6.0-failure.yml b/crates/solidity/testing/snapshots/cst_output/Expression/returns/generated/0.6.0-failure.yml index 36610540dd..6459ddb4d6 100644 --- a/crates/solidity/testing/snapshots/cst_output/Expression/returns/generated/0.6.0-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/Expression/returns/generated/0.6.0-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "returns" # (0..7) + - (root꞉ Expression) ► (unrecognized꞉ UNRECOGNIZED): "returns" # (0..7) diff --git a/crates/solidity/testing/snapshots/cst_output/Expression/returns/generated/0.7.0-failure.yml b/crates/solidity/testing/snapshots/cst_output/Expression/returns/generated/0.7.0-failure.yml index 113a6a05e5..7f11d9f191 100644 --- a/crates/solidity/testing/snapshots/cst_output/Expression/returns/generated/0.7.0-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/Expression/returns/generated/0.7.0-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "returns" # (0..7) + - (root꞉ Expression) ► (unrecognized꞉ UNRECOGNIZED): "returns" # (0..7) diff --git a/crates/solidity/testing/snapshots/cst_output/Expression/returns/generated/0.8.0-failure.yml b/crates/solidity/testing/snapshots/cst_output/Expression/returns/generated/0.8.0-failure.yml index cb550a21f8..2af2639045 100644 --- a/crates/solidity/testing/snapshots/cst_output/Expression/returns/generated/0.8.0-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/Expression/returns/generated/0.8.0-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "returns" # (0..7) + - (root꞉ Expression) ► (unrecognized꞉ UNRECOGNIZED): "returns" # (0..7) diff --git a/crates/solidity/testing/snapshots/cst_output/FallbackFunctionDefinition/simple/generated/0.4.11-failure.yml b/crates/solidity/testing/snapshots/cst_output/FallbackFunctionDefinition/simple/generated/0.4.11-failure.yml index ec278e2cef..70d0da09c9 100644 --- a/crates/solidity/testing/snapshots/cst_output/FallbackFunctionDefinition/simple/generated/0.4.11-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/FallbackFunctionDefinition/simple/generated/0.4.11-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "fallback () {}" # (0..14) + - (root꞉ FallbackFunctionDefinition) ► (unrecognized꞉ UNRECOGNIZED): "fallback () {}" # (0..14) diff --git a/crates/solidity/testing/snapshots/cst_output/FunctionCallExpression/payable_conversion/generated/0.4.11-failure.yml b/crates/solidity/testing/snapshots/cst_output/FunctionCallExpression/payable_conversion/generated/0.4.11-failure.yml index 781d92d8b1..f7abc0b60a 100644 --- a/crates/solidity/testing/snapshots/cst_output/FunctionCallExpression/payable_conversion/generated/0.4.11-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/FunctionCallExpression/payable_conversion/generated/0.4.11-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "payable(msg.sender)\n" # (0..20) + - (root꞉ FunctionCallExpression) ► (unrecognized꞉ UNRECOGNIZED): "payable(msg.sender)\n" # (0..20) diff --git a/crates/solidity/testing/snapshots/cst_output/FunctionCallExpression/payable_conversion/generated/0.5.3-failure.yml b/crates/solidity/testing/snapshots/cst_output/FunctionCallExpression/payable_conversion/generated/0.5.3-failure.yml index cff5d5a048..bfeaf28e8d 100644 --- a/crates/solidity/testing/snapshots/cst_output/FunctionCallExpression/payable_conversion/generated/0.5.3-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/FunctionCallExpression/payable_conversion/generated/0.5.3-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "payable(msg.sender)\n" # (0..20) + - (root꞉ FunctionCallExpression) ► (unrecognized꞉ UNRECOGNIZED): "payable(msg.sender)\n" # (0..20) diff --git a/crates/solidity/testing/snapshots/cst_output/HexNumberExpression/hex_consecutive_underscores/generated/0.4.11-failure.yml b/crates/solidity/testing/snapshots/cst_output/HexNumberExpression/hex_consecutive_underscores/generated/0.4.11-failure.yml index b0c8645e7d..eca7cac228 100644 --- a/crates/solidity/testing/snapshots/cst_output/HexNumberExpression/hex_consecutive_underscores/generated/0.4.11-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/HexNumberExpression/hex_consecutive_underscores/generated/0.4.11-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "0x1__2" # (0..6) + - (root꞉ HexNumberExpression) ► (unrecognized꞉ UNRECOGNIZED): "0x1__2" # (0..6) diff --git a/crates/solidity/testing/snapshots/cst_output/HexNumberExpression/hex_invalid_alpha_digit/generated/0.4.11-failure.yml b/crates/solidity/testing/snapshots/cst_output/HexNumberExpression/hex_invalid_alpha_digit/generated/0.4.11-failure.yml index 5fd5feaaca..98e66eafed 100644 --- a/crates/solidity/testing/snapshots/cst_output/HexNumberExpression/hex_invalid_alpha_digit/generated/0.4.11-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/HexNumberExpression/hex_invalid_alpha_digit/generated/0.4.11-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "0xabzz\n" # (0..7) + - (root꞉ HexNumberExpression) ► (unrecognized꞉ UNRECOGNIZED): "0xabzz\n" # (0..7) diff --git a/crates/solidity/testing/snapshots/cst_output/HexNumberExpression/hex_leading_underscore/generated/0.4.11-failure.yml b/crates/solidity/testing/snapshots/cst_output/HexNumberExpression/hex_leading_underscore/generated/0.4.11-failure.yml index 778d88aed2..40bdcb9dd4 100644 --- a/crates/solidity/testing/snapshots/cst_output/HexNumberExpression/hex_leading_underscore/generated/0.4.11-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/HexNumberExpression/hex_leading_underscore/generated/0.4.11-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "0x_1" # (0..4) + - (root꞉ HexNumberExpression) ► (unrecognized꞉ UNRECOGNIZED): "0x_1" # (0..4) diff --git a/crates/solidity/testing/snapshots/cst_output/HexNumberExpression/hex_no_digits/generated/0.4.11-failure.yml b/crates/solidity/testing/snapshots/cst_output/HexNumberExpression/hex_no_digits/generated/0.4.11-failure.yml index 845edf038c..c4d3772d0e 100644 --- a/crates/solidity/testing/snapshots/cst_output/HexNumberExpression/hex_no_digits/generated/0.4.11-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/HexNumberExpression/hex_no_digits/generated/0.4.11-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "0x" # (0..2) + - (root꞉ HexNumberExpression) ► (unrecognized꞉ UNRECOGNIZED): "0x" # (0..2) diff --git a/crates/solidity/testing/snapshots/cst_output/HexNumberExpression/hex_trailing_ident_start/generated/0.4.11-failure.yml b/crates/solidity/testing/snapshots/cst_output/HexNumberExpression/hex_trailing_ident_start/generated/0.4.11-failure.yml index 0ba8b29e8b..eaf5902fd3 100644 --- a/crates/solidity/testing/snapshots/cst_output/HexNumberExpression/hex_trailing_ident_start/generated/0.4.11-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/HexNumberExpression/hex_trailing_ident_start/generated/0.4.11-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "0x1$\n" # (0..5) + - (root꞉ HexNumberExpression) ► (unrecognized꞉ UNRECOGNIZED): "0x1$\n" # (0..5) diff --git a/crates/solidity/testing/snapshots/cst_output/HexNumberExpression/hex_trailing_underscore/generated/0.4.11-failure.yml b/crates/solidity/testing/snapshots/cst_output/HexNumberExpression/hex_trailing_underscore/generated/0.4.11-failure.yml index 8072d3ab5b..2843ef1991 100644 --- a/crates/solidity/testing/snapshots/cst_output/HexNumberExpression/hex_trailing_underscore/generated/0.4.11-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/HexNumberExpression/hex_trailing_underscore/generated/0.4.11-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "0x1_" # (0..4) + - (root꞉ HexNumberExpression) ► (unrecognized꞉ UNRECOGNIZED): "0x1_" # (0..4) diff --git a/crates/solidity/testing/snapshots/cst_output/HexNumberExpression/hex_uppercase_prefix/generated/0.5.0-failure.yml b/crates/solidity/testing/snapshots/cst_output/HexNumberExpression/hex_uppercase_prefix/generated/0.5.0-failure.yml index ea23653536..37ae75bca1 100644 --- a/crates/solidity/testing/snapshots/cst_output/HexNumberExpression/hex_uppercase_prefix/generated/0.5.0-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/HexNumberExpression/hex_uppercase_prefix/generated/0.5.0-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "0X123456789" # (0..11) + - (root꞉ HexNumberExpression) ► (unrecognized꞉ UNRECOGNIZED): "0X123456789" # (0..11) diff --git a/crates/solidity/testing/snapshots/cst_output/HexStringLiterals/all_separated_pairs/generated/0.4.11-failure.yml b/crates/solidity/testing/snapshots/cst_output/HexStringLiterals/all_separated_pairs/generated/0.4.11-failure.yml index 4021582b63..64ce9e16a7 100644 --- a/crates/solidity/testing/snapshots/cst_output/HexStringLiterals/all_separated_pairs/generated/0.4.11-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/HexStringLiterals/all_separated_pairs/generated/0.4.11-failure.yml @@ -14,4 +14,5 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): 'hex"12_34_56_78_90_ab_cd_ef"' # (0..28) + - (root꞉ HexStringLiterals): # 'hex"12_34_56_78_90_ab_cd_ef"' (0..28) + - (unrecognized꞉ UNRECOGNIZED): 'hex"12_34_56_78_90_ab_cd_ef"' # (0..28) diff --git a/crates/solidity/testing/snapshots/cst_output/HexStringLiterals/invalid_consecutive_separators/generated/0.4.11-failure.yml b/crates/solidity/testing/snapshots/cst_output/HexStringLiterals/invalid_consecutive_separators/generated/0.4.11-failure.yml index 1a7b41ca45..a9a19e5e2b 100644 --- a/crates/solidity/testing/snapshots/cst_output/HexStringLiterals/invalid_consecutive_separators/generated/0.4.11-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/HexStringLiterals/invalid_consecutive_separators/generated/0.4.11-failure.yml @@ -14,4 +14,5 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): 'hex"12__34"' # (0..11) + - (root꞉ HexStringLiterals): # 'hex"12__34"' (0..11) + - (unrecognized꞉ UNRECOGNIZED): 'hex"12__34"' # (0..11) diff --git a/crates/solidity/testing/snapshots/cst_output/HexStringLiterals/invalid_consecutive_separators/generated/0.5.14-failure.yml b/crates/solidity/testing/snapshots/cst_output/HexStringLiterals/invalid_consecutive_separators/generated/0.5.14-failure.yml index 12cbd3f91c..ae2df1070e 100644 --- a/crates/solidity/testing/snapshots/cst_output/HexStringLiterals/invalid_consecutive_separators/generated/0.5.14-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/HexStringLiterals/invalid_consecutive_separators/generated/0.5.14-failure.yml @@ -14,4 +14,5 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): 'hex"12__34"' # (0..11) + - (root꞉ HexStringLiterals): # 'hex"12__34"' (0..11) + - (unrecognized꞉ UNRECOGNIZED): 'hex"12__34"' # (0..11) diff --git a/crates/solidity/testing/snapshots/cst_output/HexStringLiterals/invalid_leading_separator/generated/0.4.11-failure.yml b/crates/solidity/testing/snapshots/cst_output/HexStringLiterals/invalid_leading_separator/generated/0.4.11-failure.yml index 9c65cb7c1f..1e1a9d1c06 100644 --- a/crates/solidity/testing/snapshots/cst_output/HexStringLiterals/invalid_leading_separator/generated/0.4.11-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/HexStringLiterals/invalid_leading_separator/generated/0.4.11-failure.yml @@ -14,4 +14,5 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): 'hex"_1234"' # (0..10) + - (root꞉ HexStringLiterals): # 'hex"_1234"' (0..10) + - (unrecognized꞉ UNRECOGNIZED): 'hex"_1234"' # (0..10) diff --git a/crates/solidity/testing/snapshots/cst_output/HexStringLiterals/invalid_leading_separator/generated/0.5.14-failure.yml b/crates/solidity/testing/snapshots/cst_output/HexStringLiterals/invalid_leading_separator/generated/0.5.14-failure.yml index 572748f701..142c33ad5f 100644 --- a/crates/solidity/testing/snapshots/cst_output/HexStringLiterals/invalid_leading_separator/generated/0.5.14-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/HexStringLiterals/invalid_leading_separator/generated/0.5.14-failure.yml @@ -14,4 +14,5 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): 'hex"_1234"' # (0..10) + - (root꞉ HexStringLiterals): # 'hex"_1234"' (0..10) + - (unrecognized꞉ UNRECOGNIZED): 'hex"_1234"' # (0..10) diff --git a/crates/solidity/testing/snapshots/cst_output/HexStringLiterals/invalid_separator_after_single_char/generated/0.4.11-failure.yml b/crates/solidity/testing/snapshots/cst_output/HexStringLiterals/invalid_separator_after_single_char/generated/0.4.11-failure.yml index db89a1bbb0..0b506aba71 100644 --- a/crates/solidity/testing/snapshots/cst_output/HexStringLiterals/invalid_separator_after_single_char/generated/0.4.11-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/HexStringLiterals/invalid_separator_after_single_char/generated/0.4.11-failure.yml @@ -14,4 +14,5 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): 'hex"1_2"' # (0..8) + - (root꞉ HexStringLiterals): # 'hex"1_2"' (0..8) + - (unrecognized꞉ UNRECOGNIZED): 'hex"1_2"' # (0..8) diff --git a/crates/solidity/testing/snapshots/cst_output/HexStringLiterals/invalid_separator_after_single_char/generated/0.5.14-failure.yml b/crates/solidity/testing/snapshots/cst_output/HexStringLiterals/invalid_separator_after_single_char/generated/0.5.14-failure.yml index d35d54779a..b875b87c4d 100644 --- a/crates/solidity/testing/snapshots/cst_output/HexStringLiterals/invalid_separator_after_single_char/generated/0.5.14-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/HexStringLiterals/invalid_separator_after_single_char/generated/0.5.14-failure.yml @@ -14,4 +14,5 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): 'hex"1_2"' # (0..8) + - (root꞉ HexStringLiterals): # 'hex"1_2"' (0..8) + - (unrecognized꞉ UNRECOGNIZED): 'hex"1_2"' # (0..8) diff --git a/crates/solidity/testing/snapshots/cst_output/HexStringLiterals/invalid_trailing_separator/generated/0.4.11-failure.yml b/crates/solidity/testing/snapshots/cst_output/HexStringLiterals/invalid_trailing_separator/generated/0.4.11-failure.yml index 91c5706eef..1b00566ffa 100644 --- a/crates/solidity/testing/snapshots/cst_output/HexStringLiterals/invalid_trailing_separator/generated/0.4.11-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/HexStringLiterals/invalid_trailing_separator/generated/0.4.11-failure.yml @@ -14,4 +14,5 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): 'hex"1234_"' # (0..10) + - (root꞉ HexStringLiterals): # 'hex"1234_"' (0..10) + - (unrecognized꞉ UNRECOGNIZED): 'hex"1234_"' # (0..10) diff --git a/crates/solidity/testing/snapshots/cst_output/HexStringLiterals/invalid_trailing_separator/generated/0.5.14-failure.yml b/crates/solidity/testing/snapshots/cst_output/HexStringLiterals/invalid_trailing_separator/generated/0.5.14-failure.yml index 6a0ee9f2bb..d7baf76dee 100644 --- a/crates/solidity/testing/snapshots/cst_output/HexStringLiterals/invalid_trailing_separator/generated/0.5.14-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/HexStringLiterals/invalid_trailing_separator/generated/0.5.14-failure.yml @@ -14,4 +14,5 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): 'hex"1234_"' # (0..10) + - (root꞉ HexStringLiterals): # 'hex"1234_"' (0..10) + - (unrecognized꞉ UNRECOGNIZED): 'hex"1234_"' # (0..10) diff --git a/crates/solidity/testing/snapshots/cst_output/HexStringLiterals/multiple/generated/0.4.11-failure.yml b/crates/solidity/testing/snapshots/cst_output/HexStringLiterals/multiple/generated/0.4.11-failure.yml index 03bb3931c7..15f4c82132 100644 --- a/crates/solidity/testing/snapshots/cst_output/HexStringLiterals/multiple/generated/0.4.11-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/HexStringLiterals/multiple/generated/0.4.11-failure.yml @@ -14,4 +14,5 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): 'hex"ab" hex''cd''' # (0..15) + - (root꞉ HexStringLiterals): # 'hex"ab" hex''cd''' (0..15) + - (unrecognized꞉ UNRECOGNIZED): 'hex"ab" hex''cd''' # (0..15) diff --git a/crates/solidity/testing/snapshots/cst_output/HexStringLiterals/no_separators/generated/0.4.11-failure.yml b/crates/solidity/testing/snapshots/cst_output/HexStringLiterals/no_separators/generated/0.4.11-failure.yml index 05fa9b7ae8..72f9896398 100644 --- a/crates/solidity/testing/snapshots/cst_output/HexStringLiterals/no_separators/generated/0.4.11-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/HexStringLiterals/no_separators/generated/0.4.11-failure.yml @@ -14,4 +14,5 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): 'hex"1234567890abcdef"' # (0..21) + - (root꞉ HexStringLiterals): # 'hex"1234567890abcdef"' (0..21) + - (unrecognized꞉ UNRECOGNIZED): 'hex"1234567890abcdef"' # (0..21) diff --git a/crates/solidity/testing/snapshots/cst_output/HexStringLiterals/single/generated/0.4.11-failure.yml b/crates/solidity/testing/snapshots/cst_output/HexStringLiterals/single/generated/0.4.11-failure.yml index 9d17068859..56f85c70cc 100644 --- a/crates/solidity/testing/snapshots/cst_output/HexStringLiterals/single/generated/0.4.11-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/HexStringLiterals/single/generated/0.4.11-failure.yml @@ -14,4 +14,5 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): 'hex"abcdef"' # (0..11) + - (root꞉ HexStringLiterals): # 'hex"abcdef"' (0..11) + - (unrecognized꞉ UNRECOGNIZED): 'hex"abcdef"' # (0..11) diff --git a/crates/solidity/testing/snapshots/cst_output/HexStringLiterals/single_trailing_ident/generated/0.4.11-failure.yml b/crates/solidity/testing/snapshots/cst_output/HexStringLiterals/single_trailing_ident/generated/0.4.11-failure.yml index d505d6caee..30cf534013 100644 --- a/crates/solidity/testing/snapshots/cst_output/HexStringLiterals/single_trailing_ident/generated/0.4.11-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/HexStringLiterals/single_trailing_ident/generated/0.4.11-failure.yml @@ -14,4 +14,5 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): 'hex"12"b\n' # (0..9) + - (root꞉ HexStringLiterals): # 'hex"12"b\n' (0..9) + - (unrecognized꞉ UNRECOGNIZED): 'hex"12"b\n' # (0..9) diff --git a/crates/solidity/testing/snapshots/cst_output/HexStringLiterals/some_separated_pairs/generated/0.4.11-failure.yml b/crates/solidity/testing/snapshots/cst_output/HexStringLiterals/some_separated_pairs/generated/0.4.11-failure.yml index 8de79962ac..275440dc57 100644 --- a/crates/solidity/testing/snapshots/cst_output/HexStringLiterals/some_separated_pairs/generated/0.4.11-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/HexStringLiterals/some_separated_pairs/generated/0.4.11-failure.yml @@ -14,4 +14,5 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): 'hex"1234_5678_90ab_cdef"' # (0..24) + - (root꞉ HexStringLiterals): # 'hex"1234_5678_90ab_cdef"' (0..24) + - (unrecognized꞉ UNRECOGNIZED): 'hex"1234_5678_90ab_cdef"' # (0..24) diff --git a/crates/solidity/testing/snapshots/cst_output/ReceiveFunctionDefinition/simple/generated/0.4.11-failure.yml b/crates/solidity/testing/snapshots/cst_output/ReceiveFunctionDefinition/simple/generated/0.4.11-failure.yml index c8a8a72317..52023f078e 100644 --- a/crates/solidity/testing/snapshots/cst_output/ReceiveFunctionDefinition/simple/generated/0.4.11-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/ReceiveFunctionDefinition/simple/generated/0.4.11-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "receive () {}" # (0..13) + - (root꞉ ReceiveFunctionDefinition) ► (unrecognized꞉ UNRECOGNIZED): "receive () {}" # (0..13) diff --git a/crates/solidity/testing/snapshots/cst_output/StringLiteral/double_quote_unicode/generated/0.7.0-failure.yml b/crates/solidity/testing/snapshots/cst_output/StringLiteral/double_quote_unicode/generated/0.7.0-failure.yml index 200498c010..15ad27d422 100644 --- a/crates/solidity/testing/snapshots/cst_output/StringLiteral/double_quote_unicode/generated/0.7.0-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/StringLiteral/double_quote_unicode/generated/0.7.0-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): '"दिल"\n' # (0..12) + - (root꞉ StringLiteral) ► (unrecognized꞉ UNRECOGNIZED): '"दिल"\n' # (0..12) diff --git a/crates/solidity/testing/snapshots/cst_output/StringLiteral/escape_hex_invalid/generated/0.4.11-failure.yml b/crates/solidity/testing/snapshots/cst_output/StringLiteral/escape_hex_invalid/generated/0.4.11-failure.yml index b7b88ec0b5..58ca2ca9e4 100644 --- a/crates/solidity/testing/snapshots/cst_output/StringLiteral/escape_hex_invalid/generated/0.4.11-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/StringLiteral/escape_hex_invalid/generated/0.4.11-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): '"\x1"\n' # (0..6) + - (root꞉ StringLiteral) ► (unrecognized꞉ UNRECOGNIZED): '"\x1"\n' # (0..6) diff --git a/crates/solidity/testing/snapshots/cst_output/StringLiteral/escape_unicode_invalid/generated/0.4.11-failure.yml b/crates/solidity/testing/snapshots/cst_output/StringLiteral/escape_unicode_invalid/generated/0.4.11-failure.yml index 5f3933674f..8c149938db 100644 --- a/crates/solidity/testing/snapshots/cst_output/StringLiteral/escape_unicode_invalid/generated/0.4.11-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/StringLiteral/escape_unicode_invalid/generated/0.4.11-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): '"\u123"\n' # (0..8) + - (root꞉ StringLiteral) ► (unrecognized꞉ UNRECOGNIZED): '"\u123"\n' # (0..8) diff --git a/crates/solidity/testing/snapshots/cst_output/StringLiteral/single_quote_unicode/generated/0.7.0-failure.yml b/crates/solidity/testing/snapshots/cst_output/StringLiteral/single_quote_unicode/generated/0.7.0-failure.yml index 56b17a75fa..0021393ece 100644 --- a/crates/solidity/testing/snapshots/cst_output/StringLiteral/single_quote_unicode/generated/0.7.0-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/StringLiteral/single_quote_unicode/generated/0.7.0-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "'दिल'\n" # (0..12) + - (root꞉ StringLiteral) ► (unrecognized꞉ UNRECOGNIZED): "'दिल'\n" # (0..12) diff --git a/crates/solidity/testing/snapshots/cst_output/StringLiteral/tabs_double_quote/generated/0.7.0-failure.yml b/crates/solidity/testing/snapshots/cst_output/StringLiteral/tabs_double_quote/generated/0.7.0-failure.yml index 72e464427a..6b6c53c7c6 100644 --- a/crates/solidity/testing/snapshots/cst_output/StringLiteral/tabs_double_quote/generated/0.7.0-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/StringLiteral/tabs_double_quote/generated/0.7.0-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): '"tab:\t"\n' # (0..8) + - (root꞉ StringLiteral) ► (unrecognized꞉ UNRECOGNIZED): '"tab:\t"\n' # (0..8) diff --git a/crates/solidity/testing/snapshots/cst_output/StringLiteral/tabs_single_quote/generated/0.7.0-failure.yml b/crates/solidity/testing/snapshots/cst_output/StringLiteral/tabs_single_quote/generated/0.7.0-failure.yml index e2d7b8737c..01a2e7bf70 100644 --- a/crates/solidity/testing/snapshots/cst_output/StringLiteral/tabs_single_quote/generated/0.7.0-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/StringLiteral/tabs_single_quote/generated/0.7.0-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "'tab:\t'\n" # (0..8) + - (root꞉ StringLiteral) ► (unrecognized꞉ UNRECOGNIZED): "'tab:\t'\n" # (0..8) diff --git a/crates/solidity/testing/snapshots/cst_output/StringLiterals/both_quotes/generated/0.4.11-failure.yml b/crates/solidity/testing/snapshots/cst_output/StringLiterals/both_quotes/generated/0.4.11-failure.yml index 5c2d4b5588..0f3741af00 100644 --- a/crates/solidity/testing/snapshots/cst_output/StringLiterals/both_quotes/generated/0.4.11-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/StringLiterals/both_quotes/generated/0.4.11-failure.yml @@ -14,4 +14,5 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): '"foo" ''bar''' # (0..11) + - (root꞉ StringLiterals): # '"foo" ''bar''' (0..11) + - (unrecognized꞉ UNRECOGNIZED): '"foo" ''bar''' # (0..11) diff --git a/crates/solidity/testing/snapshots/cst_output/StringLiterals/double_quote/generated/0.4.11-failure.yml b/crates/solidity/testing/snapshots/cst_output/StringLiterals/double_quote/generated/0.4.11-failure.yml index eb855c8fe5..469b567678 100644 --- a/crates/solidity/testing/snapshots/cst_output/StringLiterals/double_quote/generated/0.4.11-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/StringLiterals/double_quote/generated/0.4.11-failure.yml @@ -14,4 +14,5 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): '"foo"' # (0..5) + - (root꞉ StringLiterals): # '"foo"' (0..5) + - (unrecognized꞉ UNRECOGNIZED): '"foo"' # (0..5) diff --git a/crates/solidity/testing/snapshots/cst_output/StringLiterals/double_quote_unicode/generated/0.4.11-failure.yml b/crates/solidity/testing/snapshots/cst_output/StringLiterals/double_quote_unicode/generated/0.4.11-failure.yml index 178c8ac6de..363ad3b8dd 100644 --- a/crates/solidity/testing/snapshots/cst_output/StringLiterals/double_quote_unicode/generated/0.4.11-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/StringLiterals/double_quote_unicode/generated/0.4.11-failure.yml @@ -14,4 +14,5 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): '"Fireworks 🎆"\n' # (0..17) + - (root꞉ StringLiterals): # '"Fireworks 🎆"\n' (0..17) + - (unrecognized꞉ UNRECOGNIZED): '"Fireworks 🎆"\n' # (0..17) diff --git a/crates/solidity/testing/snapshots/cst_output/StringLiterals/double_quote_unicode/generated/0.7.0-failure.yml b/crates/solidity/testing/snapshots/cst_output/StringLiterals/double_quote_unicode/generated/0.7.0-failure.yml index faaa48ca95..eba840066c 100644 --- a/crates/solidity/testing/snapshots/cst_output/StringLiterals/double_quote_unicode/generated/0.7.0-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/StringLiterals/double_quote_unicode/generated/0.7.0-failure.yml @@ -14,4 +14,5 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): '"Fireworks 🎆"\n' # (0..17) + - (root꞉ StringLiterals): # '"Fireworks 🎆"\n' (0..17) + - (unrecognized꞉ UNRECOGNIZED): '"Fireworks 🎆"\n' # (0..17) diff --git a/crates/solidity/testing/snapshots/cst_output/StringLiterals/single_quote/generated/0.4.11-failure.yml b/crates/solidity/testing/snapshots/cst_output/StringLiterals/single_quote/generated/0.4.11-failure.yml index 712f1b21f8..1db9ce7715 100644 --- a/crates/solidity/testing/snapshots/cst_output/StringLiterals/single_quote/generated/0.4.11-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/StringLiterals/single_quote/generated/0.4.11-failure.yml @@ -14,4 +14,5 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "'foo'\n" # (0..6) + - (root꞉ StringLiterals): # "'foo'\n" (0..6) + - (unrecognized꞉ UNRECOGNIZED): "'foo'\n" # (0..6) diff --git a/crates/solidity/testing/snapshots/cst_output/StringLiterals/single_quote_unicode/generated/0.4.11-failure.yml b/crates/solidity/testing/snapshots/cst_output/StringLiterals/single_quote_unicode/generated/0.4.11-failure.yml index b25fa9e3a9..e842f63efa 100644 --- a/crates/solidity/testing/snapshots/cst_output/StringLiterals/single_quote_unicode/generated/0.4.11-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/StringLiterals/single_quote_unicode/generated/0.4.11-failure.yml @@ -14,4 +14,5 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "'Fireworks 🎆'\n" # (0..17) + - (root꞉ StringLiterals): # "'Fireworks 🎆'\n" (0..17) + - (unrecognized꞉ UNRECOGNIZED): "'Fireworks 🎆'\n" # (0..17) diff --git a/crates/solidity/testing/snapshots/cst_output/StringLiterals/single_quote_unicode/generated/0.7.0-failure.yml b/crates/solidity/testing/snapshots/cst_output/StringLiterals/single_quote_unicode/generated/0.7.0-failure.yml index b111337227..bdef5a74cd 100644 --- a/crates/solidity/testing/snapshots/cst_output/StringLiterals/single_quote_unicode/generated/0.7.0-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/StringLiterals/single_quote_unicode/generated/0.7.0-failure.yml @@ -14,4 +14,5 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "'Fireworks 🎆'\n" # (0..17) + - (root꞉ StringLiterals): # "'Fireworks 🎆'\n" (0..17) + - (unrecognized꞉ UNRECOGNIZED): "'Fireworks 🎆'\n" # (0..17) diff --git a/crates/solidity/testing/snapshots/cst_output/StringLiterals/single_trailing_ident/generated/0.4.11-failure.yml b/crates/solidity/testing/snapshots/cst_output/StringLiterals/single_trailing_ident/generated/0.4.11-failure.yml index 4c4782ad16..09cf8242af 100644 --- a/crates/solidity/testing/snapshots/cst_output/StringLiterals/single_trailing_ident/generated/0.4.11-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/StringLiterals/single_trailing_ident/generated/0.4.11-failure.yml @@ -14,4 +14,5 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): '"foo"bar\n' # (0..9) + - (root꞉ StringLiterals): # '"foo"bar\n' (0..9) + - (unrecognized꞉ UNRECOGNIZED): '"foo"bar\n' # (0..9) diff --git a/crates/solidity/testing/snapshots/cst_output/ThrowStatement/throw/generated/0.5.0-failure.yml b/crates/solidity/testing/snapshots/cst_output/ThrowStatement/throw/generated/0.5.0-failure.yml index 44ce6745b0..9075895a55 100644 --- a/crates/solidity/testing/snapshots/cst_output/ThrowStatement/throw/generated/0.5.0-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/ThrowStatement/throw/generated/0.5.0-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "throw;" # (0..6) + - (root꞉ ThrowStatement) ► (unrecognized꞉ UNRECOGNIZED): "throw;" # (0..6) diff --git a/crates/solidity/testing/snapshots/cst_output/TryStatement/try_catch_empty_body/generated/0.4.11-failure.yml b/crates/solidity/testing/snapshots/cst_output/TryStatement/try_catch_empty_body/generated/0.4.11-failure.yml index 9cc3511783..e04af77c1d 100644 --- a/crates/solidity/testing/snapshots/cst_output/TryStatement/try_catch_empty_body/generated/0.4.11-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/TryStatement/try_catch_empty_body/generated/0.4.11-failure.yml @@ -18,4 +18,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "try foo() {\n} catch {\n}\n" # (0..24) + - (root꞉ TryStatement) ► (unrecognized꞉ UNRECOGNIZED): "try foo() {\n} catch {\n}\n" # (0..24) diff --git a/crates/solidity/testing/snapshots/cst_output/TryStatement/try_expr_call_options/generated/0.4.11-failure.yml b/crates/solidity/testing/snapshots/cst_output/TryStatement/try_expr_call_options/generated/0.4.11-failure.yml index 1d960cb06e..67ebc5a6f3 100644 --- a/crates/solidity/testing/snapshots/cst_output/TryStatement/try_expr_call_options/generated/0.4.11-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/TryStatement/try_expr_call_options/generated/0.4.11-failure.yml @@ -19,4 +19,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "try foo() { x: 1 } {\n bar();\n} catch {\n}\n" # (0..42) + - (root꞉ TryStatement) ► (unrecognized꞉ UNRECOGNIZED): "try foo() { x: 1 } {\n bar();\n} catch {\n}\n" # (0..42) diff --git a/crates/solidity/testing/snapshots/cst_output/TypeName/byte/generated/0.8.0-failure.yml b/crates/solidity/testing/snapshots/cst_output/TypeName/byte/generated/0.8.0-failure.yml index 5d532effea..bf663da8dd 100644 --- a/crates/solidity/testing/snapshots/cst_output/TypeName/byte/generated/0.8.0-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/TypeName/byte/generated/0.8.0-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "byte" # (0..4) + - (root꞉ TypeName) ► (unrecognized꞉ UNRECOGNIZED): "byte" # (0..4) diff --git a/crates/solidity/testing/snapshots/cst_output/UnicodeStringLiterals/multiple/generated/0.4.11-failure.yml b/crates/solidity/testing/snapshots/cst_output/UnicodeStringLiterals/multiple/generated/0.4.11-failure.yml index 13415ace5b..72e90edb71 100644 --- a/crates/solidity/testing/snapshots/cst_output/UnicodeStringLiterals/multiple/generated/0.4.11-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/UnicodeStringLiterals/multiple/generated/0.4.11-failure.yml @@ -14,4 +14,5 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): 'unicode"happy 😃" unicode''sad 😔''' # (0..37) + - (root꞉ UnicodeStringLiterals): # 'unicode"happy 😃" unicode''sad 😔''' (0..37) + - (unrecognized꞉ UNRECOGNIZED): 'unicode"happy 😃" unicode''sad 😔''' # (0..37) diff --git a/crates/solidity/testing/snapshots/cst_output/UnicodeStringLiterals/single/generated/0.4.11-failure.yml b/crates/solidity/testing/snapshots/cst_output/UnicodeStringLiterals/single/generated/0.4.11-failure.yml index 9dd361a996..ec29aba7a6 100644 --- a/crates/solidity/testing/snapshots/cst_output/UnicodeStringLiterals/single/generated/0.4.11-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/UnicodeStringLiterals/single/generated/0.4.11-failure.yml @@ -14,4 +14,5 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): 'unicode"emoji 😃"' # (0..19) + - (root꞉ UnicodeStringLiterals): # 'unicode"emoji 😃"' (0..19) + - (unrecognized꞉ UNRECOGNIZED): 'unicode"emoji 😃"' # (0..19) diff --git a/crates/solidity/testing/snapshots/cst_output/UnicodeStringLiterals/single_trailing_ident/generated/0.4.11-failure.yml b/crates/solidity/testing/snapshots/cst_output/UnicodeStringLiterals/single_trailing_ident/generated/0.4.11-failure.yml index 1320c49409..3a86f83393 100644 --- a/crates/solidity/testing/snapshots/cst_output/UnicodeStringLiterals/single_trailing_ident/generated/0.4.11-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/UnicodeStringLiterals/single_trailing_ident/generated/0.4.11-failure.yml @@ -14,4 +14,5 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): 'unicode"emoji 😃"happy\n' # (0..25) + - (root꞉ UnicodeStringLiterals): # 'unicode"emoji 😃"happy\n' (0..25) + - (unrecognized꞉ UNRECOGNIZED): 'unicode"emoji 😃"happy\n' # (0..25) diff --git a/crates/solidity/testing/snapshots/cst_output/UnnamedFunctionDefinition/internal_attribute/generated/0.6.0-failure.yml b/crates/solidity/testing/snapshots/cst_output/UnnamedFunctionDefinition/internal_attribute/generated/0.6.0-failure.yml index 25c3060e0b..ae52816682 100644 --- a/crates/solidity/testing/snapshots/cst_output/UnnamedFunctionDefinition/internal_attribute/generated/0.6.0-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/UnnamedFunctionDefinition/internal_attribute/generated/0.6.0-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "function () internal {}\n" # (0..24) + - (root꞉ UnnamedFunctionDefinition) ► (unrecognized꞉ UNRECOGNIZED): "function () internal {}\n" # (0..24) diff --git a/crates/solidity/testing/snapshots/cst_output/UnnamedFunctionDefinition/private_attribute/generated/0.6.0-failure.yml b/crates/solidity/testing/snapshots/cst_output/UnnamedFunctionDefinition/private_attribute/generated/0.6.0-failure.yml index c50114d365..8829047c3b 100644 --- a/crates/solidity/testing/snapshots/cst_output/UnnamedFunctionDefinition/private_attribute/generated/0.6.0-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/UnnamedFunctionDefinition/private_attribute/generated/0.6.0-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "function () private {}\n" # (0..23) + - (root꞉ UnnamedFunctionDefinition) ► (unrecognized꞉ UNRECOGNIZED): "function () private {}\n" # (0..23) diff --git a/crates/solidity/testing/snapshots/cst_output/UnnamedFunctionDefinition/public_attribute/generated/0.6.0-failure.yml b/crates/solidity/testing/snapshots/cst_output/UnnamedFunctionDefinition/public_attribute/generated/0.6.0-failure.yml index d586d97a15..78b1074992 100644 --- a/crates/solidity/testing/snapshots/cst_output/UnnamedFunctionDefinition/public_attribute/generated/0.6.0-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/UnnamedFunctionDefinition/public_attribute/generated/0.6.0-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "function () public {}\n" # (0..22) + - (root꞉ UnnamedFunctionDefinition) ► (unrecognized꞉ UNRECOGNIZED): "function () public {}\n" # (0..22) diff --git a/crates/solidity/testing/snapshots/cst_output/UserDefinedValueTypeDefinition/bool/generated/0.4.11-failure.yml b/crates/solidity/testing/snapshots/cst_output/UserDefinedValueTypeDefinition/bool/generated/0.4.11-failure.yml index 9525ef8580..4fe0f644e8 100644 --- a/crates/solidity/testing/snapshots/cst_output/UserDefinedValueTypeDefinition/bool/generated/0.4.11-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/UserDefinedValueTypeDefinition/bool/generated/0.4.11-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "type Foo is bool;" # (0..17) + - (root꞉ UserDefinedValueTypeDefinition) ► (unrecognized꞉ UNRECOGNIZED): "type Foo is bool;" # (0..17) diff --git a/crates/solidity/testing/snapshots/cst_output/UsingDeconstructionSymbol/identifier_path/generated/0.4.11-failure.yml b/crates/solidity/testing/snapshots/cst_output/UsingDeconstructionSymbol/identifier_path/generated/0.4.11-failure.yml index 5549965936..33a4df7f2e 100644 --- a/crates/solidity/testing/snapshots/cst_output/UsingDeconstructionSymbol/identifier_path/generated/0.4.11-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/UsingDeconstructionSymbol/identifier_path/generated/0.4.11-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "foo.bar" # (0..7) + - (root꞉ UsingDeconstructionSymbol) ► (unrecognized꞉ UNRECOGNIZED): "foo.bar" # (0..7) diff --git a/crates/solidity/testing/snapshots/cst_output/UsingDeconstructionSymbol/identifier_path_as_operator/generated/0.4.11-failure.yml b/crates/solidity/testing/snapshots/cst_output/UsingDeconstructionSymbol/identifier_path_as_operator/generated/0.4.11-failure.yml index 63475244ae..23d84371a7 100644 --- a/crates/solidity/testing/snapshots/cst_output/UsingDeconstructionSymbol/identifier_path_as_operator/generated/0.4.11-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/UsingDeconstructionSymbol/identifier_path_as_operator/generated/0.4.11-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "foo.bar as /" # (0..12) + - (root꞉ UsingDeconstructionSymbol) ► (unrecognized꞉ UNRECOGNIZED): "foo.bar as /" # (0..12) diff --git a/crates/solidity/testing/snapshots/cst_output/UsingDeconstructionSymbol/single_id/generated/0.4.11-failure.yml b/crates/solidity/testing/snapshots/cst_output/UsingDeconstructionSymbol/single_id/generated/0.4.11-failure.yml index 0f9849cc91..3577a7551b 100644 --- a/crates/solidity/testing/snapshots/cst_output/UsingDeconstructionSymbol/single_id/generated/0.4.11-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/UsingDeconstructionSymbol/single_id/generated/0.4.11-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "foo" # (0..3) + - (root꞉ UsingDeconstructionSymbol) ► (unrecognized꞉ UNRECOGNIZED): "foo" # (0..3) diff --git a/crates/solidity/testing/snapshots/cst_output/UsingDeconstructionSymbol/single_id_as_operator/generated/0.4.11-failure.yml b/crates/solidity/testing/snapshots/cst_output/UsingDeconstructionSymbol/single_id_as_operator/generated/0.4.11-failure.yml index 0198ae34f3..a83335fc96 100644 --- a/crates/solidity/testing/snapshots/cst_output/UsingDeconstructionSymbol/single_id_as_operator/generated/0.4.11-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/UsingDeconstructionSymbol/single_id_as_operator/generated/0.4.11-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "foo as /" # (0..8) + - (root꞉ UsingDeconstructionSymbol) ► (unrecognized꞉ UNRECOGNIZED): "foo as /" # (0..8) diff --git a/crates/solidity/testing/snapshots/cst_output/VariableDeclarationStatement/var/generated/0.5.0-failure.yml b/crates/solidity/testing/snapshots/cst_output/VariableDeclarationStatement/var/generated/0.5.0-failure.yml index 7fcac02b22..a3ce8bbbfa 100644 --- a/crates/solidity/testing/snapshots/cst_output/VariableDeclarationStatement/var/generated/0.5.0-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/VariableDeclarationStatement/var/generated/0.5.0-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "var z = 0;" # (0..10) + - (root꞉ VariableDeclarationStatement) ► (unrecognized꞉ UNRECOGNIZED): "var z = 0;" # (0..10) diff --git a/crates/solidity/testing/snapshots/cst_output/VariableDeclarationStatement/var/generated/0.8.0-failure.yml b/crates/solidity/testing/snapshots/cst_output/VariableDeclarationStatement/var/generated/0.8.0-failure.yml index 3f6daf4989..7337b29cc5 100644 --- a/crates/solidity/testing/snapshots/cst_output/VariableDeclarationStatement/var/generated/0.8.0-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/VariableDeclarationStatement/var/generated/0.8.0-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "var z = 0;" # (0..10) + - (root꞉ VariableDeclarationStatement) ► (unrecognized꞉ UNRECOGNIZED): "var z = 0;" # (0..10) diff --git a/crates/solidity/testing/snapshots/cst_output/YulExpression/decimal_trailing_ident_start/generated/0.4.11-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulExpression/decimal_trailing_ident_start/generated/0.4.11-failure.yml index d7564fd301..2b2b7d006b 100644 --- a/crates/solidity/testing/snapshots/cst_output/YulExpression/decimal_trailing_ident_start/generated/0.4.11-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/YulExpression/decimal_trailing_ident_start/generated/0.4.11-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "1a\n" # (0..3) + - (root꞉ YulExpression) ► (unrecognized꞉ UNRECOGNIZED): "1a\n" # (0..3) diff --git a/crates/solidity/testing/snapshots/cst_output/YulExpression/decimal_trailing_ident_start/generated/0.4.12-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulExpression/decimal_trailing_ident_start/generated/0.4.12-failure.yml index 70498a09a7..a0e37bc554 100644 --- a/crates/solidity/testing/snapshots/cst_output/YulExpression/decimal_trailing_ident_start/generated/0.4.12-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/YulExpression/decimal_trailing_ident_start/generated/0.4.12-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "1a\n" # (0..3) + - (root꞉ YulExpression) ► (unrecognized꞉ UNRECOGNIZED): "1a\n" # (0..3) diff --git a/crates/solidity/testing/snapshots/cst_output/YulExpression/decimal_trailing_ident_start/generated/0.5.0-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulExpression/decimal_trailing_ident_start/generated/0.5.0-failure.yml index f25668054f..266bac941a 100644 --- a/crates/solidity/testing/snapshots/cst_output/YulExpression/decimal_trailing_ident_start/generated/0.5.0-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/YulExpression/decimal_trailing_ident_start/generated/0.5.0-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "1a\n" # (0..3) + - (root꞉ YulExpression) ► (unrecognized꞉ UNRECOGNIZED): "1a\n" # (0..3) diff --git a/crates/solidity/testing/snapshots/cst_output/YulExpression/decimal_trailing_ident_start/generated/0.8.18-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulExpression/decimal_trailing_ident_start/generated/0.8.18-failure.yml index 02ed3e60f0..ed37a1cc2e 100644 --- a/crates/solidity/testing/snapshots/cst_output/YulExpression/decimal_trailing_ident_start/generated/0.8.18-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/YulExpression/decimal_trailing_ident_start/generated/0.8.18-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "1a\n" # (0..3) + - (root꞉ YulExpression) ► (unrecognized꞉ UNRECOGNIZED): "1a\n" # (0..3) diff --git a/crates/solidity/testing/snapshots/cst_output/YulExpression/decimal_trailing_ident_start/generated/0.8.24-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulExpression/decimal_trailing_ident_start/generated/0.8.24-failure.yml index 407493d9e6..f61304f9cf 100644 --- a/crates/solidity/testing/snapshots/cst_output/YulExpression/decimal_trailing_ident_start/generated/0.8.24-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/YulExpression/decimal_trailing_ident_start/generated/0.8.24-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "1a\n" # (0..3) + - (root꞉ YulExpression) ► (unrecognized꞉ UNRECOGNIZED): "1a\n" # (0..3) diff --git a/crates/solidity/testing/snapshots/cst_output/YulExpression/decimal_trailing_ident_start/generated/0.8.7-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulExpression/decimal_trailing_ident_start/generated/0.8.7-failure.yml index 262865614d..e201cc4375 100644 --- a/crates/solidity/testing/snapshots/cst_output/YulExpression/decimal_trailing_ident_start/generated/0.8.7-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/YulExpression/decimal_trailing_ident_start/generated/0.8.7-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "1a\n" # (0..3) + - (root꞉ YulExpression) ► (unrecognized꞉ UNRECOGNIZED): "1a\n" # (0..3) diff --git a/crates/solidity/testing/snapshots/cst_output/YulExpression/hex_trailing_ident_start/generated/0.4.11-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulExpression/hex_trailing_ident_start/generated/0.4.11-failure.yml index 1d99b07000..689edc413a 100644 --- a/crates/solidity/testing/snapshots/cst_output/YulExpression/hex_trailing_ident_start/generated/0.4.11-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/YulExpression/hex_trailing_ident_start/generated/0.4.11-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "0x1$\n" # (0..5) + - (root꞉ YulExpression) ► (unrecognized꞉ UNRECOGNIZED): "0x1$\n" # (0..5) diff --git a/crates/solidity/testing/snapshots/cst_output/YulExpression/hex_trailing_ident_start/generated/0.4.12-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulExpression/hex_trailing_ident_start/generated/0.4.12-failure.yml index c1c2d2f5b0..b6d96af89c 100644 --- a/crates/solidity/testing/snapshots/cst_output/YulExpression/hex_trailing_ident_start/generated/0.4.12-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/YulExpression/hex_trailing_ident_start/generated/0.4.12-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "0x1$\n" # (0..5) + - (root꞉ YulExpression) ► (unrecognized꞉ UNRECOGNIZED): "0x1$\n" # (0..5) diff --git a/crates/solidity/testing/snapshots/cst_output/YulExpression/hex_trailing_ident_start/generated/0.5.0-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulExpression/hex_trailing_ident_start/generated/0.5.0-failure.yml index a2c68cbd47..7d4e1488e3 100644 --- a/crates/solidity/testing/snapshots/cst_output/YulExpression/hex_trailing_ident_start/generated/0.5.0-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/YulExpression/hex_trailing_ident_start/generated/0.5.0-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "0x1$\n" # (0..5) + - (root꞉ YulExpression) ► (unrecognized꞉ UNRECOGNIZED): "0x1$\n" # (0..5) diff --git a/crates/solidity/testing/snapshots/cst_output/YulExpression/hex_trailing_ident_start/generated/0.8.18-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulExpression/hex_trailing_ident_start/generated/0.8.18-failure.yml index 6bdbf94ae0..3541147c45 100644 --- a/crates/solidity/testing/snapshots/cst_output/YulExpression/hex_trailing_ident_start/generated/0.8.18-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/YulExpression/hex_trailing_ident_start/generated/0.8.18-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "0x1$\n" # (0..5) + - (root꞉ YulExpression) ► (unrecognized꞉ UNRECOGNIZED): "0x1$\n" # (0..5) diff --git a/crates/solidity/testing/snapshots/cst_output/YulExpression/hex_trailing_ident_start/generated/0.8.24-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulExpression/hex_trailing_ident_start/generated/0.8.24-failure.yml index f92fafe283..1b7fd9d073 100644 --- a/crates/solidity/testing/snapshots/cst_output/YulExpression/hex_trailing_ident_start/generated/0.8.24-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/YulExpression/hex_trailing_ident_start/generated/0.8.24-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "0x1$\n" # (0..5) + - (root꞉ YulExpression) ► (unrecognized꞉ UNRECOGNIZED): "0x1$\n" # (0..5) diff --git a/crates/solidity/testing/snapshots/cst_output/YulExpression/hex_trailing_ident_start/generated/0.8.7-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulExpression/hex_trailing_ident_start/generated/0.8.7-failure.yml index 4b83739edc..eadda7684b 100644 --- a/crates/solidity/testing/snapshots/cst_output/YulExpression/hex_trailing_ident_start/generated/0.8.7-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/YulExpression/hex_trailing_ident_start/generated/0.8.7-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "0x1$\n" # (0..5) + - (root꞉ YulExpression) ► (unrecognized꞉ UNRECOGNIZED): "0x1$\n" # (0..5) diff --git a/crates/solidity/testing/snapshots/cst_output/YulFunctionCallExpression/built_in_difficulty/generated/0.8.18-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulFunctionCallExpression/built_in_difficulty/generated/0.8.18-failure.yml index 3182ee159c..231fe60a94 100644 --- a/crates/solidity/testing/snapshots/cst_output/YulFunctionCallExpression/built_in_difficulty/generated/0.8.18-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/YulFunctionCallExpression/built_in_difficulty/generated/0.8.18-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "difficulty()\n" # (0..13) + - (root꞉ YulFunctionCallExpression) ► (unrecognized꞉ UNRECOGNIZED): "difficulty()\n" # (0..13) diff --git a/crates/solidity/testing/snapshots/cst_output/YulFunctionCallExpression/built_in_difficulty/generated/0.8.24-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulFunctionCallExpression/built_in_difficulty/generated/0.8.24-failure.yml index ae9a9f2218..89aa2e2379 100644 --- a/crates/solidity/testing/snapshots/cst_output/YulFunctionCallExpression/built_in_difficulty/generated/0.8.24-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/YulFunctionCallExpression/built_in_difficulty/generated/0.8.24-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "difficulty()\n" # (0..13) + - (root꞉ YulFunctionCallExpression) ► (unrecognized꞉ UNRECOGNIZED): "difficulty()\n" # (0..13) diff --git a/crates/solidity/testing/snapshots/cst_output/YulFunctionCallExpression/built_in_jump/generated/0.5.0-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulFunctionCallExpression/built_in_jump/generated/0.5.0-failure.yml index 893869dae4..982c807186 100644 --- a/crates/solidity/testing/snapshots/cst_output/YulFunctionCallExpression/built_in_jump/generated/0.5.0-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/YulFunctionCallExpression/built_in_jump/generated/0.5.0-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "jump()\n" # (0..7) + - (root꞉ YulFunctionCallExpression) ► (unrecognized꞉ UNRECOGNIZED): "jump()\n" # (0..7) diff --git a/crates/solidity/testing/snapshots/cst_output/YulFunctionCallExpression/built_in_jump/generated/0.8.18-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulFunctionCallExpression/built_in_jump/generated/0.8.18-failure.yml index abd46dca07..f5e6c4c1bf 100644 --- a/crates/solidity/testing/snapshots/cst_output/YulFunctionCallExpression/built_in_jump/generated/0.8.18-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/YulFunctionCallExpression/built_in_jump/generated/0.8.18-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "jump()\n" # (0..7) + - (root꞉ YulFunctionCallExpression) ► (unrecognized꞉ UNRECOGNIZED): "jump()\n" # (0..7) diff --git a/crates/solidity/testing/snapshots/cst_output/YulFunctionCallExpression/built_in_jump/generated/0.8.24-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulFunctionCallExpression/built_in_jump/generated/0.8.24-failure.yml index 6c8d6115bc..5a56bc9f50 100644 --- a/crates/solidity/testing/snapshots/cst_output/YulFunctionCallExpression/built_in_jump/generated/0.8.24-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/YulFunctionCallExpression/built_in_jump/generated/0.8.24-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "jump()\n" # (0..7) + - (root꞉ YulFunctionCallExpression) ► (unrecognized꞉ UNRECOGNIZED): "jump()\n" # (0..7) diff --git a/crates/solidity/testing/snapshots/cst_output/YulFunctionCallExpression/built_in_jump/generated/0.8.7-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulFunctionCallExpression/built_in_jump/generated/0.8.7-failure.yml index 15d122f94a..3b31a37617 100644 --- a/crates/solidity/testing/snapshots/cst_output/YulFunctionCallExpression/built_in_jump/generated/0.8.7-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/YulFunctionCallExpression/built_in_jump/generated/0.8.7-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "jump()\n" # (0..7) + - (root꞉ YulFunctionCallExpression) ► (unrecognized꞉ UNRECOGNIZED): "jump()\n" # (0..7) diff --git a/crates/solidity/testing/snapshots/cst_output/YulFunctionCallExpression/built_in_jumpi/generated/0.5.0-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulFunctionCallExpression/built_in_jumpi/generated/0.5.0-failure.yml index bba8514ee8..5bf41c36ad 100644 --- a/crates/solidity/testing/snapshots/cst_output/YulFunctionCallExpression/built_in_jumpi/generated/0.5.0-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/YulFunctionCallExpression/built_in_jumpi/generated/0.5.0-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "jumpi()\n" # (0..8) + - (root꞉ YulFunctionCallExpression) ► (unrecognized꞉ UNRECOGNIZED): "jumpi()\n" # (0..8) diff --git a/crates/solidity/testing/snapshots/cst_output/YulFunctionCallExpression/built_in_jumpi/generated/0.8.18-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulFunctionCallExpression/built_in_jumpi/generated/0.8.18-failure.yml index 82e864bf3e..e626a95bc8 100644 --- a/crates/solidity/testing/snapshots/cst_output/YulFunctionCallExpression/built_in_jumpi/generated/0.8.18-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/YulFunctionCallExpression/built_in_jumpi/generated/0.8.18-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "jumpi()\n" # (0..8) + - (root꞉ YulFunctionCallExpression) ► (unrecognized꞉ UNRECOGNIZED): "jumpi()\n" # (0..8) diff --git a/crates/solidity/testing/snapshots/cst_output/YulFunctionCallExpression/built_in_jumpi/generated/0.8.24-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulFunctionCallExpression/built_in_jumpi/generated/0.8.24-failure.yml index edaf1d7313..7e23892346 100644 --- a/crates/solidity/testing/snapshots/cst_output/YulFunctionCallExpression/built_in_jumpi/generated/0.8.24-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/YulFunctionCallExpression/built_in_jumpi/generated/0.8.24-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "jumpi()\n" # (0..8) + - (root꞉ YulFunctionCallExpression) ► (unrecognized꞉ UNRECOGNIZED): "jumpi()\n" # (0..8) diff --git a/crates/solidity/testing/snapshots/cst_output/YulFunctionCallExpression/built_in_jumpi/generated/0.8.7-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulFunctionCallExpression/built_in_jumpi/generated/0.8.7-failure.yml index 1922ab2c9b..b177402de1 100644 --- a/crates/solidity/testing/snapshots/cst_output/YulFunctionCallExpression/built_in_jumpi/generated/0.8.7-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/YulFunctionCallExpression/built_in_jumpi/generated/0.8.7-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "jumpi()\n" # (0..8) + - (root꞉ YulFunctionCallExpression) ► (unrecognized꞉ UNRECOGNIZED): "jumpi()\n" # (0..8) diff --git a/crates/solidity/testing/snapshots/cst_output/YulLabel/single_label/generated/0.5.0-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulLabel/single_label/generated/0.5.0-failure.yml index 6528a04245..96aad2033d 100644 --- a/crates/solidity/testing/snapshots/cst_output/YulLabel/single_label/generated/0.5.0-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/YulLabel/single_label/generated/0.5.0-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "foo:\n" # (0..5) + - (root꞉ YulLabel) ► (unrecognized꞉ UNRECOGNIZED): "foo:\n" # (0..5) diff --git a/crates/solidity/testing/snapshots/cst_output/YulLeaveStatement/leave/generated/0.4.11-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulLeaveStatement/leave/generated/0.4.11-failure.yml index 91eb6d89c8..9d3070006b 100644 --- a/crates/solidity/testing/snapshots/cst_output/YulLeaveStatement/leave/generated/0.4.11-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/YulLeaveStatement/leave/generated/0.4.11-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "leave" # (0..5) + - (root꞉ YulLeaveStatement) ► (unrecognized꞉ UNRECOGNIZED): "leave" # (0..5) diff --git a/crates/solidity/testing/snapshots/cst_output/YulStackAssignmentStatement/equal_colon_separated/generated/0.5.0-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulStackAssignmentStatement/equal_colon_separated/generated/0.5.0-failure.yml index 1bdb71dd4d..14e6c74e13 100644 --- a/crates/solidity/testing/snapshots/cst_output/YulStackAssignmentStatement/equal_colon_separated/generated/0.5.0-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/YulStackAssignmentStatement/equal_colon_separated/generated/0.5.0-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "= : success\n" # (0..12) + - (root꞉ YulStackAssignmentStatement) ► (unrecognized꞉ UNRECOGNIZED): "= : success\n" # (0..12) diff --git a/crates/solidity/testing/snapshots/cst_output/YulStackAssignmentStatement/single_variable/generated/0.5.0-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulStackAssignmentStatement/single_variable/generated/0.5.0-failure.yml index 4446f122de..44885db1cb 100644 --- a/crates/solidity/testing/snapshots/cst_output/YulStackAssignmentStatement/single_variable/generated/0.5.0-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/YulStackAssignmentStatement/single_variable/generated/0.5.0-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "=: success\n" # (0..11) + - (root꞉ YulStackAssignmentStatement) ► (unrecognized꞉ UNRECOGNIZED): "=: success\n" # (0..11) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_add/generated/0.4.11-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_add/generated/0.4.11-failure.yml index 64b6fc1c40..63a0fa6d30 100644 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_add/generated/0.4.11-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_add/generated/0.4.11-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "add := 0\n" # (0..9) + - (root꞉ YulVariableAssignmentStatement) ► (unrecognized꞉ UNRECOGNIZED): "add := 0\n" # (0..9) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_addmod/generated/0.4.11-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_addmod/generated/0.4.11-failure.yml index 415296dbc8..b0e6509c14 100644 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_addmod/generated/0.4.11-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_addmod/generated/0.4.11-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "addmod := 0\n" # (0..12) + - (root꞉ YulVariableAssignmentStatement) ► (unrecognized꞉ UNRECOGNIZED): "addmod := 0\n" # (0..12) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_and/generated/0.4.11-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_and/generated/0.4.11-failure.yml index a1be897f2b..b12f119e64 100644 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_and/generated/0.4.11-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_and/generated/0.4.11-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "and := 0\n" # (0..9) + - (root꞉ YulVariableAssignmentStatement) ► (unrecognized꞉ UNRECOGNIZED): "and := 0\n" # (0..9) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_balance/generated/0.4.11-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_balance/generated/0.4.11-failure.yml index bc72b42ad0..939325da8e 100644 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_balance/generated/0.4.11-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_balance/generated/0.4.11-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "balance := 0\n" # (0..13) + - (root꞉ YulVariableAssignmentStatement) ► (unrecognized꞉ UNRECOGNIZED): "balance := 0\n" # (0..13) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_basefee/generated/0.8.7-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_basefee/generated/0.8.7-failure.yml index 8619f8eff5..37cf0ca5d3 100644 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_basefee/generated/0.8.7-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_basefee/generated/0.8.7-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "basefee := 0\n" # (0..13) + - (root꞉ YulVariableAssignmentStatement) ► (unrecognized꞉ UNRECOGNIZED): "basefee := 0\n" # (0..13) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_blockhash/generated/0.4.11-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_blockhash/generated/0.4.11-failure.yml index 21d43e359e..9af594a535 100644 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_blockhash/generated/0.4.11-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_blockhash/generated/0.4.11-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "blockhash := 0\n" # (0..15) + - (root꞉ YulVariableAssignmentStatement) ► (unrecognized꞉ UNRECOGNIZED): "blockhash := 0\n" # (0..15) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_byte/generated/0.4.11-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_byte/generated/0.4.11-failure.yml index c070a36ea8..1819ac60a7 100644 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_byte/generated/0.4.11-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_byte/generated/0.4.11-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "byte := 0\n" # (0..10) + - (root꞉ YulVariableAssignmentStatement) ► (unrecognized꞉ UNRECOGNIZED): "byte := 0\n" # (0..10) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_call/generated/0.4.11-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_call/generated/0.4.11-failure.yml index 989f1aa08f..3dcb083f16 100644 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_call/generated/0.4.11-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_call/generated/0.4.11-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "call := 0\n" # (0..10) + - (root꞉ YulVariableAssignmentStatement) ► (unrecognized꞉ UNRECOGNIZED): "call := 0\n" # (0..10) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_callcode/generated/0.4.11-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_callcode/generated/0.4.11-failure.yml index 1c2a0abe2d..f83881a98c 100644 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_callcode/generated/0.4.11-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_callcode/generated/0.4.11-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "callcode := 0\n" # (0..14) + - (root꞉ YulVariableAssignmentStatement) ► (unrecognized꞉ UNRECOGNIZED): "callcode := 0\n" # (0..14) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_calldatacopy/generated/0.4.11-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_calldatacopy/generated/0.4.11-failure.yml index 47409c32df..6ce25900f2 100644 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_calldatacopy/generated/0.4.11-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_calldatacopy/generated/0.4.11-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "calldatacopy := 0\n" # (0..18) + - (root꞉ YulVariableAssignmentStatement) ► (unrecognized꞉ UNRECOGNIZED): "calldatacopy := 0\n" # (0..18) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_calldataload/generated/0.4.11-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_calldataload/generated/0.4.11-failure.yml index 02012b759f..9c6ea2a461 100644 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_calldataload/generated/0.4.11-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_calldataload/generated/0.4.11-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "calldataload := 0\n" # (0..18) + - (root꞉ YulVariableAssignmentStatement) ► (unrecognized꞉ UNRECOGNIZED): "calldataload := 0\n" # (0..18) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_calldatasize/generated/0.4.11-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_calldatasize/generated/0.4.11-failure.yml index ea29ec6a9a..87f037cc79 100644 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_calldatasize/generated/0.4.11-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_calldatasize/generated/0.4.11-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "calldatasize := 0\n" # (0..18) + - (root꞉ YulVariableAssignmentStatement) ► (unrecognized꞉ UNRECOGNIZED): "calldatasize := 0\n" # (0..18) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_caller/generated/0.4.11-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_caller/generated/0.4.11-failure.yml index fbd5248a9c..649446d996 100644 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_caller/generated/0.4.11-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_caller/generated/0.4.11-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "caller := 0\n" # (0..12) + - (root꞉ YulVariableAssignmentStatement) ► (unrecognized꞉ UNRECOGNIZED): "caller := 0\n" # (0..12) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_callvalue/generated/0.4.11-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_callvalue/generated/0.4.11-failure.yml index 4478b0a945..c52d0c9b84 100644 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_callvalue/generated/0.4.11-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_callvalue/generated/0.4.11-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "callvalue := 0\n" # (0..15) + - (root꞉ YulVariableAssignmentStatement) ► (unrecognized꞉ UNRECOGNIZED): "callvalue := 0\n" # (0..15) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_chainid/generated/0.5.12-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_chainid/generated/0.5.12-failure.yml index 23903a0b85..ffd1cb4b43 100644 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_chainid/generated/0.5.12-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_chainid/generated/0.5.12-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "chainid := 0\n" # (0..13) + - (root꞉ YulVariableAssignmentStatement) ► (unrecognized꞉ UNRECOGNIZED): "chainid := 0\n" # (0..13) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_coinbase/generated/0.4.11-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_coinbase/generated/0.4.11-failure.yml index 39aaf00255..075aba9132 100644 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_coinbase/generated/0.4.11-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_coinbase/generated/0.4.11-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "coinbase := 0\n" # (0..14) + - (root꞉ YulVariableAssignmentStatement) ► (unrecognized꞉ UNRECOGNIZED): "coinbase := 0\n" # (0..14) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_create/generated/0.4.11-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_create/generated/0.4.11-failure.yml index 2843f9bdc5..e053f7a3ce 100644 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_create/generated/0.4.11-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_create/generated/0.4.11-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "create := 0\n" # (0..12) + - (root꞉ YulVariableAssignmentStatement) ► (unrecognized꞉ UNRECOGNIZED): "create := 0\n" # (0..12) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_create2/generated/0.4.12-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_create2/generated/0.4.12-failure.yml index 4575d1140d..70cf8f519b 100644 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_create2/generated/0.4.12-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_create2/generated/0.4.12-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "create2 := 0\n" # (0..13) + - (root꞉ YulVariableAssignmentStatement) ► (unrecognized꞉ UNRECOGNIZED): "create2 := 0\n" # (0..13) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_delegatecall/generated/0.4.11-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_delegatecall/generated/0.4.11-failure.yml index 2013895bd0..6425f49f47 100644 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_delegatecall/generated/0.4.11-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_delegatecall/generated/0.4.11-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "delegatecall := 0\n" # (0..18) + - (root꞉ YulVariableAssignmentStatement) ► (unrecognized꞉ UNRECOGNIZED): "delegatecall := 0\n" # (0..18) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_difficulty/generated/0.4.11-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_difficulty/generated/0.4.11-failure.yml index 480fd69250..ace9b6047c 100644 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_difficulty/generated/0.4.11-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_difficulty/generated/0.4.11-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "difficulty := 0\n" # (0..16) + - (root꞉ YulVariableAssignmentStatement) ► (unrecognized꞉ UNRECOGNIZED): "difficulty := 0\n" # (0..16) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_div/generated/0.4.11-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_div/generated/0.4.11-failure.yml index 7bfeb9a4e9..d5b4d74fb3 100644 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_div/generated/0.4.11-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_div/generated/0.4.11-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "div := 0\n" # (0..9) + - (root꞉ YulVariableAssignmentStatement) ► (unrecognized꞉ UNRECOGNIZED): "div := 0\n" # (0..9) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_eq/generated/0.4.11-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_eq/generated/0.4.11-failure.yml index 02deefbabe..96f8098a58 100644 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_eq/generated/0.4.11-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_eq/generated/0.4.11-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "eq := 0\n" # (0..8) + - (root꞉ YulVariableAssignmentStatement) ► (unrecognized꞉ UNRECOGNIZED): "eq := 0\n" # (0..8) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_exp/generated/0.4.11-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_exp/generated/0.4.11-failure.yml index a8d200bb0e..f1faefa7fc 100644 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_exp/generated/0.4.11-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_exp/generated/0.4.11-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "exp := 0\n" # (0..9) + - (root꞉ YulVariableAssignmentStatement) ► (unrecognized꞉ UNRECOGNIZED): "exp := 0\n" # (0..9) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_extcodecopy/generated/0.4.11-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_extcodecopy/generated/0.4.11-failure.yml index 504fd2942c..fbf02f2321 100644 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_extcodecopy/generated/0.4.11-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_extcodecopy/generated/0.4.11-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "extcodecopy := 0\n" # (0..17) + - (root꞉ YulVariableAssignmentStatement) ► (unrecognized꞉ UNRECOGNIZED): "extcodecopy := 0\n" # (0..17) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_extcodehash/generated/0.5.0-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_extcodehash/generated/0.5.0-failure.yml index 893e1ba252..05f28c7837 100644 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_extcodehash/generated/0.5.0-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_extcodehash/generated/0.5.0-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "extcodehash := 0\n" # (0..17) + - (root꞉ YulVariableAssignmentStatement) ► (unrecognized꞉ UNRECOGNIZED): "extcodehash := 0\n" # (0..17) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_extcodesize/generated/0.4.11-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_extcodesize/generated/0.4.11-failure.yml index aeb9ff4b16..5cba9350ee 100644 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_extcodesize/generated/0.4.11-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_extcodesize/generated/0.4.11-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "extcodesize := 0\n" # (0..17) + - (root꞉ YulVariableAssignmentStatement) ► (unrecognized꞉ UNRECOGNIZED): "extcodesize := 0\n" # (0..17) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_gas/generated/0.4.11-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_gas/generated/0.4.11-failure.yml index 7e29435750..0e8f873619 100644 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_gas/generated/0.4.11-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_gas/generated/0.4.11-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "gas := 0\n" # (0..9) + - (root꞉ YulVariableAssignmentStatement) ► (unrecognized꞉ UNRECOGNIZED): "gas := 0\n" # (0..9) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_gaslimit/generated/0.4.11-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_gaslimit/generated/0.4.11-failure.yml index 534aa603c9..2bae1d8c4e 100644 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_gaslimit/generated/0.4.11-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_gaslimit/generated/0.4.11-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "gaslimit := 0\n" # (0..14) + - (root꞉ YulVariableAssignmentStatement) ► (unrecognized꞉ UNRECOGNIZED): "gaslimit := 0\n" # (0..14) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_gasprice/generated/0.4.11-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_gasprice/generated/0.4.11-failure.yml index 1287bb966a..cc2bcdaf0e 100644 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_gasprice/generated/0.4.11-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_gasprice/generated/0.4.11-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "gasprice := 0\n" # (0..14) + - (root꞉ YulVariableAssignmentStatement) ► (unrecognized꞉ UNRECOGNIZED): "gasprice := 0\n" # (0..14) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_gt/generated/0.4.11-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_gt/generated/0.4.11-failure.yml index 7766ef98d7..251a87f3b8 100644 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_gt/generated/0.4.11-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_gt/generated/0.4.11-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "gt := 0\n" # (0..8) + - (root꞉ YulVariableAssignmentStatement) ► (unrecognized꞉ UNRECOGNIZED): "gt := 0\n" # (0..8) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_invalid/generated/0.4.11-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_invalid/generated/0.4.11-failure.yml index 972078ece2..e83017c260 100644 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_invalid/generated/0.4.11-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_invalid/generated/0.4.11-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "invalid := 0\n" # (0..13) + - (root꞉ YulVariableAssignmentStatement) ► (unrecognized꞉ UNRECOGNIZED): "invalid := 0\n" # (0..13) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_iszero/generated/0.4.11-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_iszero/generated/0.4.11-failure.yml index 7bf96969bc..16b2c77d89 100644 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_iszero/generated/0.4.11-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_iszero/generated/0.4.11-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "iszero := 0\n" # (0..12) + - (root꞉ YulVariableAssignmentStatement) ► (unrecognized꞉ UNRECOGNIZED): "iszero := 0\n" # (0..12) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_jump/generated/0.4.11-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_jump/generated/0.4.11-failure.yml index 40cd3c9753..e03f899964 100644 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_jump/generated/0.4.11-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_jump/generated/0.4.11-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "jump := 0\n" # (0..10) + - (root꞉ YulVariableAssignmentStatement) ► (unrecognized꞉ UNRECOGNIZED): "jump := 0\n" # (0..10) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_jumpi/generated/0.4.11-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_jumpi/generated/0.4.11-failure.yml index 4f792610e5..4a32f2af0f 100644 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_jumpi/generated/0.4.11-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_jumpi/generated/0.4.11-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "jumpi := 0\n" # (0..11) + - (root꞉ YulVariableAssignmentStatement) ► (unrecognized꞉ UNRECOGNIZED): "jumpi := 0\n" # (0..11) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_keccak256/generated/0.4.12-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_keccak256/generated/0.4.12-failure.yml index ce2ff71fb0..6fc5f94412 100644 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_keccak256/generated/0.4.12-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_keccak256/generated/0.4.12-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "keccak256 := 0\n" # (0..15) + - (root꞉ YulVariableAssignmentStatement) ► (unrecognized꞉ UNRECOGNIZED): "keccak256 := 0\n" # (0..15) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_log0/generated/0.4.11-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_log0/generated/0.4.11-failure.yml index a5e17ca386..662226c271 100644 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_log0/generated/0.4.11-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_log0/generated/0.4.11-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "log0 := 0\n" # (0..10) + - (root꞉ YulVariableAssignmentStatement) ► (unrecognized꞉ UNRECOGNIZED): "log0 := 0\n" # (0..10) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_log1/generated/0.4.11-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_log1/generated/0.4.11-failure.yml index d6a2feb7c2..1792a1215f 100644 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_log1/generated/0.4.11-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_log1/generated/0.4.11-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "log1 := 0\n" # (0..10) + - (root꞉ YulVariableAssignmentStatement) ► (unrecognized꞉ UNRECOGNIZED): "log1 := 0\n" # (0..10) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_log2/generated/0.4.11-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_log2/generated/0.4.11-failure.yml index 73bf579258..dd2beed663 100644 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_log2/generated/0.4.11-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_log2/generated/0.4.11-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "log2 := 0\n" # (0..10) + - (root꞉ YulVariableAssignmentStatement) ► (unrecognized꞉ UNRECOGNIZED): "log2 := 0\n" # (0..10) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_log3/generated/0.4.11-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_log3/generated/0.4.11-failure.yml index ad9b20afd9..0dfb8eb7d2 100644 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_log3/generated/0.4.11-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_log3/generated/0.4.11-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "log3 := 0\n" # (0..10) + - (root꞉ YulVariableAssignmentStatement) ► (unrecognized꞉ UNRECOGNIZED): "log3 := 0\n" # (0..10) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_log4/generated/0.4.11-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_log4/generated/0.4.11-failure.yml index 7186226f76..908aa2a56c 100644 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_log4/generated/0.4.11-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_log4/generated/0.4.11-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "log4 := 0\n" # (0..10) + - (root꞉ YulVariableAssignmentStatement) ► (unrecognized꞉ UNRECOGNIZED): "log4 := 0\n" # (0..10) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_lt/generated/0.4.11-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_lt/generated/0.4.11-failure.yml index a2bac92008..4c15278000 100644 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_lt/generated/0.4.11-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_lt/generated/0.4.11-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "lt := 0\n" # (0..8) + - (root꞉ YulVariableAssignmentStatement) ► (unrecognized꞉ UNRECOGNIZED): "lt := 0\n" # (0..8) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_mload/generated/0.4.11-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_mload/generated/0.4.11-failure.yml index 56601c43f6..95c5de1979 100644 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_mload/generated/0.4.11-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_mload/generated/0.4.11-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "mload := 0\n" # (0..11) + - (root꞉ YulVariableAssignmentStatement) ► (unrecognized꞉ UNRECOGNIZED): "mload := 0\n" # (0..11) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_mod/generated/0.4.11-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_mod/generated/0.4.11-failure.yml index 2d1bc30ead..71258a9a8f 100644 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_mod/generated/0.4.11-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_mod/generated/0.4.11-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "mod := 0\n" # (0..9) + - (root꞉ YulVariableAssignmentStatement) ► (unrecognized꞉ UNRECOGNIZED): "mod := 0\n" # (0..9) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_msize/generated/0.4.11-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_msize/generated/0.4.11-failure.yml index 233fcc3b64..9e9dad7012 100644 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_msize/generated/0.4.11-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_msize/generated/0.4.11-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "msize := 0\n" # (0..11) + - (root꞉ YulVariableAssignmentStatement) ► (unrecognized꞉ UNRECOGNIZED): "msize := 0\n" # (0..11) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_mstore/generated/0.4.11-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_mstore/generated/0.4.11-failure.yml index 4335172cb2..0103e100cc 100644 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_mstore/generated/0.4.11-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_mstore/generated/0.4.11-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "mstore := 0\n" # (0..12) + - (root꞉ YulVariableAssignmentStatement) ► (unrecognized꞉ UNRECOGNIZED): "mstore := 0\n" # (0..12) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_mstore8/generated/0.4.11-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_mstore8/generated/0.4.11-failure.yml index fede4c82ee..315d1a2b2b 100644 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_mstore8/generated/0.4.11-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_mstore8/generated/0.4.11-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "mstore8 := 0\n" # (0..13) + - (root꞉ YulVariableAssignmentStatement) ► (unrecognized꞉ UNRECOGNIZED): "mstore8 := 0\n" # (0..13) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_mul/generated/0.4.11-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_mul/generated/0.4.11-failure.yml index 4715564045..397bc39291 100644 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_mul/generated/0.4.11-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_mul/generated/0.4.11-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "mul := 0\n" # (0..9) + - (root꞉ YulVariableAssignmentStatement) ► (unrecognized꞉ UNRECOGNIZED): "mul := 0\n" # (0..9) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_mulmod/generated/0.4.11-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_mulmod/generated/0.4.11-failure.yml index 539cff69b3..a424999d96 100644 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_mulmod/generated/0.4.11-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_mulmod/generated/0.4.11-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "mulmod := 0\n" # (0..12) + - (root꞉ YulVariableAssignmentStatement) ► (unrecognized꞉ UNRECOGNIZED): "mulmod := 0\n" # (0..12) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_not/generated/0.4.11-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_not/generated/0.4.11-failure.yml index b3b6d8ecb7..4615ccef39 100644 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_not/generated/0.4.11-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_not/generated/0.4.11-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "not := 0\n" # (0..9) + - (root꞉ YulVariableAssignmentStatement) ► (unrecognized꞉ UNRECOGNIZED): "not := 0\n" # (0..9) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_number/generated/0.4.11-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_number/generated/0.4.11-failure.yml index 4a88bfef70..c3b020da84 100644 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_number/generated/0.4.11-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_number/generated/0.4.11-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "number := 0\n" # (0..12) + - (root꞉ YulVariableAssignmentStatement) ► (unrecognized꞉ UNRECOGNIZED): "number := 0\n" # (0..12) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_or/generated/0.4.11-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_or/generated/0.4.11-failure.yml index 4a0ed29ce5..964552fa64 100644 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_or/generated/0.4.11-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_or/generated/0.4.11-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "or := 0\n" # (0..8) + - (root꞉ YulVariableAssignmentStatement) ► (unrecognized꞉ UNRECOGNIZED): "or := 0\n" # (0..8) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_origin/generated/0.4.11-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_origin/generated/0.4.11-failure.yml index 712eb59a96..055c40831d 100644 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_origin/generated/0.4.11-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_origin/generated/0.4.11-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "origin := 0\n" # (0..12) + - (root꞉ YulVariableAssignmentStatement) ► (unrecognized꞉ UNRECOGNIZED): "origin := 0\n" # (0..12) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_pop/generated/0.4.11-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_pop/generated/0.4.11-failure.yml index 749eb2eb84..dd8660c387 100644 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_pop/generated/0.4.11-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_pop/generated/0.4.11-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "pop := 0\n" # (0..9) + - (root꞉ YulVariableAssignmentStatement) ► (unrecognized꞉ UNRECOGNIZED): "pop := 0\n" # (0..9) 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 ad4bf281a3..51edbe5f7b 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 @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "prevrandao := 0\n" # (0..16) + - (root꞉ YulVariableAssignmentStatement) ► (unrecognized꞉ UNRECOGNIZED): "prevrandao := 0\n" # (0..16) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_return/generated/0.4.11-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_return/generated/0.4.11-failure.yml index 64003dea69..a960222099 100644 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_return/generated/0.4.11-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_return/generated/0.4.11-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "return := 0\n" # (0..12) + - (root꞉ YulVariableAssignmentStatement) ► (unrecognized꞉ UNRECOGNIZED): "return := 0\n" # (0..12) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_returndatacopy/generated/0.4.12-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_returndatacopy/generated/0.4.12-failure.yml index 80daefe993..410f1b158b 100644 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_returndatacopy/generated/0.4.12-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_returndatacopy/generated/0.4.12-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "returndatacopy := 0\n" # (0..20) + - (root꞉ YulVariableAssignmentStatement) ► (unrecognized꞉ UNRECOGNIZED): "returndatacopy := 0\n" # (0..20) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_returndatasize/generated/0.4.12-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_returndatasize/generated/0.4.12-failure.yml index 5594b4870e..3aa39fb885 100644 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_returndatasize/generated/0.4.12-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_returndatasize/generated/0.4.12-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "returndatasize := 0\n" # (0..20) + - (root꞉ YulVariableAssignmentStatement) ► (unrecognized꞉ UNRECOGNIZED): "returndatasize := 0\n" # (0..20) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_revert/generated/0.4.11-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_revert/generated/0.4.11-failure.yml index 2972e7566d..1bfdf9e23d 100644 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_revert/generated/0.4.11-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_revert/generated/0.4.11-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "revert := 0\n" # (0..12) + - (root꞉ YulVariableAssignmentStatement) ► (unrecognized꞉ UNRECOGNIZED): "revert := 0\n" # (0..12) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_sar/generated/0.4.21-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_sar/generated/0.4.21-failure.yml index a4d563555b..fa10536038 100644 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_sar/generated/0.4.21-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_sar/generated/0.4.21-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "sar := 0\n" # (0..9) + - (root꞉ YulVariableAssignmentStatement) ► (unrecognized꞉ UNRECOGNIZED): "sar := 0\n" # (0..9) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_sdiv/generated/0.4.11-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_sdiv/generated/0.4.11-failure.yml index 8e6c2cc76b..6b2b3dcc1c 100644 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_sdiv/generated/0.4.11-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_sdiv/generated/0.4.11-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "sdiv := 0\n" # (0..10) + - (root꞉ YulVariableAssignmentStatement) ► (unrecognized꞉ UNRECOGNIZED): "sdiv := 0\n" # (0..10) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_selfbalance/generated/0.5.12-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_selfbalance/generated/0.5.12-failure.yml index bf3676ac46..83a65417a2 100644 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_selfbalance/generated/0.5.12-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_selfbalance/generated/0.5.12-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "selfbalance := 0\n" # (0..17) + - (root꞉ YulVariableAssignmentStatement) ► (unrecognized꞉ UNRECOGNIZED): "selfbalance := 0\n" # (0..17) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_selfdestruct/generated/0.4.11-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_selfdestruct/generated/0.4.11-failure.yml index 1af7b19ab8..2198fa124d 100644 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_selfdestruct/generated/0.4.11-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_selfdestruct/generated/0.4.11-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "selfdestruct := 0\n" # (0..18) + - (root꞉ YulVariableAssignmentStatement) ► (unrecognized꞉ UNRECOGNIZED): "selfdestruct := 0\n" # (0..18) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_sgt/generated/0.4.11-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_sgt/generated/0.4.11-failure.yml index a240f017d8..d0994f6a2f 100644 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_sgt/generated/0.4.11-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_sgt/generated/0.4.11-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "sgt := 0\n" # (0..9) + - (root꞉ YulVariableAssignmentStatement) ► (unrecognized꞉ UNRECOGNIZED): "sgt := 0\n" # (0..9) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_sha3/generated/0.4.11-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_sha3/generated/0.4.11-failure.yml index 17136a7143..f76916f550 100644 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_sha3/generated/0.4.11-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_sha3/generated/0.4.11-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "sha3 := 0\n" # (0..10) + - (root꞉ YulVariableAssignmentStatement) ► (unrecognized꞉ UNRECOGNIZED): "sha3 := 0\n" # (0..10) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_shl/generated/0.4.21-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_shl/generated/0.4.21-failure.yml index 8df40932cf..527aa424e7 100644 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_shl/generated/0.4.21-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_shl/generated/0.4.21-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "shl := 0\n" # (0..9) + - (root꞉ YulVariableAssignmentStatement) ► (unrecognized꞉ UNRECOGNIZED): "shl := 0\n" # (0..9) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_shr/generated/0.4.21-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_shr/generated/0.4.21-failure.yml index 60e8040d96..4ed27a20fb 100644 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_shr/generated/0.4.21-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_shr/generated/0.4.21-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "shr := 0\n" # (0..9) + - (root꞉ YulVariableAssignmentStatement) ► (unrecognized꞉ UNRECOGNIZED): "shr := 0\n" # (0..9) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_signextend/generated/0.4.11-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_signextend/generated/0.4.11-failure.yml index b075c03818..05a136b930 100644 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_signextend/generated/0.4.11-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_signextend/generated/0.4.11-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "signextend := 0\n" # (0..16) + - (root꞉ YulVariableAssignmentStatement) ► (unrecognized꞉ UNRECOGNIZED): "signextend := 0\n" # (0..16) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_sload/generated/0.4.11-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_sload/generated/0.4.11-failure.yml index 7c2783b9d3..705354273d 100644 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_sload/generated/0.4.11-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_sload/generated/0.4.11-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "sload := 0\n" # (0..11) + - (root꞉ YulVariableAssignmentStatement) ► (unrecognized꞉ UNRECOGNIZED): "sload := 0\n" # (0..11) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_slt/generated/0.4.11-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_slt/generated/0.4.11-failure.yml index b8298403b7..7e0c08af89 100644 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_slt/generated/0.4.11-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_slt/generated/0.4.11-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "slt := 0\n" # (0..9) + - (root꞉ YulVariableAssignmentStatement) ► (unrecognized꞉ UNRECOGNIZED): "slt := 0\n" # (0..9) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_smod/generated/0.4.11-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_smod/generated/0.4.11-failure.yml index 159ee343b8..ecd4f1aaff 100644 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_smod/generated/0.4.11-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_smod/generated/0.4.11-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "smod := 0\n" # (0..10) + - (root꞉ YulVariableAssignmentStatement) ► (unrecognized꞉ UNRECOGNIZED): "smod := 0\n" # (0..10) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_sstore/generated/0.4.11-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_sstore/generated/0.4.11-failure.yml index 56db26c280..63c36541a3 100644 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_sstore/generated/0.4.11-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_sstore/generated/0.4.11-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "sstore := 0\n" # (0..12) + - (root꞉ YulVariableAssignmentStatement) ► (unrecognized꞉ UNRECOGNIZED): "sstore := 0\n" # (0..12) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_staticcall/generated/0.4.12-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_staticcall/generated/0.4.12-failure.yml index 43582eaa86..99b4f58319 100644 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_staticcall/generated/0.4.12-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_staticcall/generated/0.4.12-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "staticcall := 0\n" # (0..16) + - (root꞉ YulVariableAssignmentStatement) ► (unrecognized꞉ UNRECOGNIZED): "staticcall := 0\n" # (0..16) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_stop/generated/0.4.11-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_stop/generated/0.4.11-failure.yml index 7e637968fe..ee8b75d24f 100644 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_stop/generated/0.4.11-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_stop/generated/0.4.11-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "stop := 0\n" # (0..10) + - (root꞉ YulVariableAssignmentStatement) ► (unrecognized꞉ UNRECOGNIZED): "stop := 0\n" # (0..10) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_sub/generated/0.4.11-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_sub/generated/0.4.11-failure.yml index e6f41ee9f9..26428199ec 100644 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_sub/generated/0.4.11-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_sub/generated/0.4.11-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "sub := 0\n" # (0..9) + - (root꞉ YulVariableAssignmentStatement) ► (unrecognized꞉ UNRECOGNIZED): "sub := 0\n" # (0..9) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_suicide/generated/0.4.11-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_suicide/generated/0.4.11-failure.yml index 7cd41541b0..83a6d59ded 100644 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_suicide/generated/0.4.11-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_suicide/generated/0.4.11-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "suicide := 0\n" # (0..13) + - (root꞉ YulVariableAssignmentStatement) ► (unrecognized꞉ UNRECOGNIZED): "suicide := 0\n" # (0..13) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_timestamp/generated/0.4.11-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_timestamp/generated/0.4.11-failure.yml index 8e2344ac9a..99572241db 100644 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_timestamp/generated/0.4.11-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_timestamp/generated/0.4.11-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "timestamp := 0\n" # (0..15) + - (root꞉ YulVariableAssignmentStatement) ► (unrecognized꞉ UNRECOGNIZED): "timestamp := 0\n" # (0..15) diff --git a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_xor/generated/0.4.11-failure.yml b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_xor/generated/0.4.11-failure.yml index 31ac77489a..e3c88cdc22 100644 --- a/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_xor/generated/0.4.11-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/YulVariableAssignmentStatement/identifier_xor/generated/0.4.11-failure.yml @@ -14,4 +14,4 @@ Errors: # 1 total ───╯ Tree: - - (root꞉ UNRECOGNIZED): "xor := 0\n" # (0..9) + - (root꞉ YulVariableAssignmentStatement) ► (unrecognized꞉ UNRECOGNIZED): "xor := 0\n" # (0..9) diff --git a/crates/testlang/outputs/cargo/crate/src/generated/compilation/file.rs b/crates/testlang/outputs/cargo/crate/src/generated/compilation/file.rs index 94eee8ad56..2f5fd5bcc3 100644 --- a/crates/testlang/outputs/cargo/crate/src/generated/compilation/file.rs +++ b/crates/testlang/outputs/cargo/crate/src/generated/compilation/file.rs @@ -1,21 +1,22 @@ // This file is generated automatically by infrastructure scripts. Please don't edit by hand. use std::collections::BTreeMap; +use std::rc::Rc; use metaslang_cst::text_index::TextIndex; -use crate::cst::{Cursor, Node}; +use crate::cst::{Cursor, NonterminalNode}; #[derive(Clone)] pub struct File { id: String, - tree: Node, + tree: Rc, resolved_imports: BTreeMap, } impl File { - pub(super) fn new(id: String, tree: Node) -> Self { + pub(super) fn new(id: String, tree: Rc) -> Self { Self { id, tree, @@ -28,12 +29,12 @@ impl File { &self.id } - pub fn tree(&self) -> &Node { + pub fn tree(&self) -> &Rc { &self.tree } pub fn create_tree_cursor(&self) -> Cursor { - self.tree.clone().cursor_with_offset(TextIndex::ZERO) + Rc::clone(&self.tree).cursor_with_offset(TextIndex::ZERO) } pub(super) fn resolve_import(&mut self, import_path: &Cursor, destination_file_id: String) { diff --git a/crates/testlang/outputs/cargo/crate/src/generated/compilation/internal_builder.rs b/crates/testlang/outputs/cargo/crate/src/generated/compilation/internal_builder.rs index a0a79d7944..a0c2ec5e73 100644 --- a/crates/testlang/outputs/cargo/crate/src/generated/compilation/internal_builder.rs +++ b/crates/testlang/outputs/cargo/crate/src/generated/compilation/internal_builder.rs @@ -45,7 +45,7 @@ impl InternalCompilationBuilder { let import_paths = self.imports.extract(parse_output.create_tree_cursor()); - let file = File::new(id.clone(), parse_output.tree().clone()); + let file = File::new(id.clone(), Rc::clone(parse_output.tree())); self.files.insert(id, file); AddFileResponse { import_paths } diff --git a/crates/testlang/outputs/cargo/crate/src/generated/parser/generated/parser.rs b/crates/testlang/outputs/cargo/crate/src/generated/parser/generated/parser.rs index 588993e736..a7fcd186f0 100644 --- a/crates/testlang/outputs/cargo/crate/src/generated/parser/generated/parser.rs +++ b/crates/testlang/outputs/cargo/crate/src/generated/parser/generated/parser.rs @@ -649,21 +649,29 @@ impl Parser { pub fn parse(&self, kind: NonterminalKind, input: &str) -> ParseOutput { match kind { - NonterminalKind::AdditionExpression => Self::addition_expression.parse(self, input), - NonterminalKind::Expression => Self::expression.parse(self, input), - NonterminalKind::Literal => Self::literal.parse(self, input), + NonterminalKind::AdditionExpression => { + Self::addition_expression.parse(self, input, kind) + } + NonterminalKind::Expression => Self::expression.parse(self, input, kind), + NonterminalKind::Literal => Self::literal.parse(self, input, kind), NonterminalKind::MemberAccessExpression => { - Self::member_access_expression.parse(self, input) + Self::member_access_expression.parse(self, input, kind) + } + NonterminalKind::NegationExpression => { + Self::negation_expression.parse(self, input, kind) + } + NonterminalKind::SeparatedIdentifiers => { + Self::separated_identifiers.parse(self, input, kind) + } + NonterminalKind::SourceUnit => Self::source_unit.parse(self, input, kind), + NonterminalKind::SourceUnitMember => Self::source_unit_member.parse(self, input, kind), + NonterminalKind::SourceUnitMembers => { + Self::source_unit_members.parse(self, input, kind) } - NonterminalKind::NegationExpression => Self::negation_expression.parse(self, input), - NonterminalKind::SeparatedIdentifiers => Self::separated_identifiers.parse(self, input), - NonterminalKind::SourceUnit => Self::source_unit.parse(self, input), - NonterminalKind::SourceUnitMember => Self::source_unit_member.parse(self, input), - NonterminalKind::SourceUnitMembers => Self::source_unit_members.parse(self, input), - NonterminalKind::Tree => Self::tree.parse(self, input), - NonterminalKind::TreeNode => Self::tree_node.parse(self, input), - NonterminalKind::TreeNodeChild => Self::tree_node_child.parse(self, input), - NonterminalKind::TreeNodeChildren => Self::tree_node_children.parse(self, input), + NonterminalKind::Tree => Self::tree.parse(self, input, kind), + NonterminalKind::TreeNode => Self::tree_node.parse(self, input, kind), + NonterminalKind::TreeNodeChild => Self::tree_node_child.parse(self, input, kind), + NonterminalKind::TreeNodeChildren => Self::tree_node_children.parse(self, input, kind), } } } diff --git a/crates/testlang/outputs/cargo/crate/src/generated/parser/lexer/mod.rs b/crates/testlang/outputs/cargo/crate/src/generated/parser/lexer/mod.rs index a9b896ddcd..d4888aa14a 100644 --- a/crates/testlang/outputs/cargo/crate/src/generated/parser/lexer/mod.rs +++ b/crates/testlang/outputs/cargo/crate/src/generated/parser/lexer/mod.rs @@ -96,7 +96,7 @@ pub(crate) trait Lexer { .is_some_and(|t| t.accepted_as(kind)) { input.set_position(start); - return ParserResult::no_match(None, vec![kind]); + return ParserResult::no_match(vec![kind]); } let end = input.position(); @@ -128,7 +128,7 @@ pub(crate) trait Lexer { .is_some_and(|t| t.accepted_as(kind)) { input.set_position(restore); - return ParserResult::no_match(None, vec![kind]); + return ParserResult::no_match(vec![kind]); } let end = input.position(); children.push(Edge::root(Node::terminal(kind, input.content(start..end)))); diff --git a/crates/testlang/outputs/cargo/crate/src/generated/parser/parse_output.rs b/crates/testlang/outputs/cargo/crate/src/generated/parser/parse_output.rs index 83a71d08f4..790329c22b 100644 --- a/crates/testlang/outputs/cargo/crate/src/generated/parser/parse_output.rs +++ b/crates/testlang/outputs/cargo/crate/src/generated/parser/parse_output.rs @@ -1,16 +1,18 @@ // This file is generated automatically by infrastructure scripts. Please don't edit by hand. -use crate::cst::{Cursor, Node, TextIndex}; +use std::rc::Rc; + +use crate::cst::{Cursor, NonterminalNode, TextIndex}; use crate::parser::ParseError; #[derive(Clone, Debug, PartialEq)] pub struct ParseOutput { - pub(crate) tree: Node, + pub(crate) tree: Rc, pub(crate) errors: Vec, } impl ParseOutput { - pub fn tree(&self) -> &Node { + pub fn tree(&self) -> &Rc { &self.tree } @@ -24,6 +26,6 @@ impl ParseOutput { /// Creates a cursor that starts at the root of the parse tree. pub fn create_tree_cursor(&self) -> Cursor { - self.tree.clone().cursor_with_offset(TextIndex::ZERO) + Rc::clone(&self.tree).cursor_with_offset(TextIndex::ZERO) } } diff --git a/crates/testlang/outputs/cargo/crate/src/generated/parser/parser_support/parser_function.rs b/crates/testlang/outputs/cargo/crate/src/generated/parser/parser_support/parser_function.rs index 0220f09062..223167dc28 100644 --- a/crates/testlang/outputs/cargo/crate/src/generated/parser/parser_support/parser_function.rs +++ b/crates/testlang/outputs/cargo/crate/src/generated/parser/parser_support/parser_function.rs @@ -2,7 +2,10 @@ use std::rc::Rc; -use crate::cst::{Edge, EdgeLabel, Node, TerminalKind, TerminalKindExtensions, TextIndex}; +use crate::cst::{ + Edge, EdgeLabel, Node, NonterminalKind, NonterminalNode, TerminalKind, TerminalKindExtensions, + TextIndex, +}; use crate::parser::lexer::Lexer; use crate::parser::parser_support::context::ParserContext; use crate::parser::parser_support::parser_result::{ @@ -14,7 +17,7 @@ pub trait ParserFunction

where Self: Fn(&P, &mut ParserContext<'_>) -> ParserResult, { - fn parse(&self, parser: &P, input: &str) -> ParseOutput; + fn parse(&self, parser: &P, input: &str, topmost_kind: NonterminalKind) -> ParseOutput; } impl ParserFunction

for F @@ -23,7 +26,7 @@ where F: Fn(&P, &mut ParserContext<'_>) -> ParserResult, { #[allow(clippy::too_many_lines)] - fn parse(&self, parser: &P, input: &str) -> ParseOutput { + fn parse(&self, parser: &P, input: &str, topmost_kind: NonterminalKind) -> ParseOutput { let mut stream = ParserContext::new(input); let mut result = self(parser, &mut stream); @@ -48,7 +51,7 @@ where let mut new_children = nonterminal.children.clone(); new_children.extend(eof_trivia); - topmost.node = Node::nonterminal(nonterminal.kind, new_children); + topmost.node = Node::nonterminal(topmost_kind, new_children); } } @@ -64,7 +67,7 @@ where // trivia is already parsed twice, one for each branch. And there's a good reason: each branch might // accept different trivia, so it's not clear what the combination of the two rules should return in a // NoMatch. Therefore, we just parse it again. Note that trivia is anyway cached by the parser (#1119). - let mut trivia_nodes = if let ParserResult::Match(matched) = + let mut children = if let ParserResult::Match(matched) = Lexer::leading_trivia(parser, &mut stream) { matched.nodes @@ -73,7 +76,7 @@ where }; let mut start = TextIndex::ZERO; - for edge in &trivia_nodes { + for edge in &children { if let Node::Terminal(terminal) = &edge.node { if terminal.kind.is_valid() { start.advance_str(terminal.text.as_str()); @@ -88,14 +91,11 @@ where }; let node = Node::terminal(kind, input.to_string()); - let tree = if no_match.kind.is_none() || start.utf8 == 0 { - node - } else { - trivia_nodes.push(Edge { label, node }); - Node::nonterminal(no_match.kind.unwrap(), trivia_nodes) - }; + + children.push(Edge { label, node }); + ParseOutput { - tree, + tree: Rc::new(NonterminalNode::new(topmost_kind, children)), errors: vec![ParseError::new( start..start + input.into(), no_match.expected_terminals, @@ -163,17 +163,17 @@ where )); ParseOutput { - tree: Node::nonterminal(topmost_node.kind, new_children), + tree: Rc::new(NonterminalNode::new(topmost_node.kind, new_children)), errors, } } else { - let tree = Node::Nonterminal(topmost_node); + let tree = topmost_node; let errors = stream.into_errors(); // Sanity check: Make sure that succesful parse is equivalent to not having any invalid nodes debug_assert_eq!( errors.is_empty(), - tree.clone() + Rc::clone(&tree) .cursor_with_offset(TextIndex::ZERO) .remaining_nodes() .all(|edge| edge diff --git a/crates/testlang/outputs/cargo/crate/src/generated/parser/parser_support/parser_result.rs b/crates/testlang/outputs/cargo/crate/src/generated/parser/parser_support/parser_result.rs index 14b9b15350..b22b45e74a 100644 --- a/crates/testlang/outputs/cargo/crate/src/generated/parser/parser_support/parser_result.rs +++ b/crates/testlang/outputs/cargo/crate/src/generated/parser/parser_support/parser_result.rs @@ -18,7 +18,6 @@ pub enum ParserResult { impl Default for ParserResult { fn default() -> Self { Self::NoMatch(NoMatch { - kind: None, expected_terminals: vec![], }) } @@ -37,13 +36,13 @@ impl ParserResult { ParserResult::IncompleteMatch(IncompleteMatch::new(nodes, expected_terminals)) } - /// Whenever a parser didn't run because it's disabled due to versioning. Shorthand for `no_match(None, vec![])`. + /// Whenever a parser didn't run because it's disabled due to versioning. Shorthand for `no_match(vec![])`. pub fn disabled() -> Self { - Self::no_match(None, vec![]) + Self::no_match(vec![]) } - pub fn no_match(kind: Option, expected_terminals: Vec) -> Self { - ParserResult::NoMatch(NoMatch::new(kind, expected_terminals)) + pub fn no_match(expected_terminals: Vec) -> Self { + ParserResult::NoMatch(NoMatch::new(expected_terminals)) } #[must_use] @@ -64,9 +63,7 @@ impl ParserResult { nodes: vec![Edge::root(Node::nonterminal(new_kind, skipped.nodes))], ..skipped }), - ParserResult::NoMatch(no_match) => { - ParserResult::no_match(Some(new_kind), no_match.expected_terminals) - } + ParserResult::NoMatch(no_match) => ParserResult::no_match(no_match.expected_terminals), ParserResult::PrattOperatorMatch(_) => { unreachable!("PrattOperatorMatch cannot be converted to a nonterminal") } @@ -245,18 +242,13 @@ impl IncompleteMatch { #[derive(PartialEq, Eq, Clone, Debug)] pub struct NoMatch { - /// The nonterminal kind this match is coming from - pub kind: Option, /// Terminals that would have allowed for more progress. Collected for the purposes of error reporting. pub expected_terminals: Vec, } impl NoMatch { - pub fn new(kind: Option, expected_terminals: Vec) -> Self { - Self { - kind, - expected_terminals, - } + pub fn new(expected_terminals: Vec) -> Self { + Self { expected_terminals } } } diff --git a/crates/testlang/outputs/cargo/crate/src/generated/parser/parser_support/recovery.rs b/crates/testlang/outputs/cargo/crate/src/generated/parser/parser_support/recovery.rs index c49819e30f..f54ae45934 100644 --- a/crates/testlang/outputs/cargo/crate/src/generated/parser/parser_support/recovery.rs +++ b/crates/testlang/outputs/cargo/crate/src/generated/parser/parser_support/recovery.rs @@ -107,7 +107,7 @@ impl ParserResult { ParseResultKind::Incomplete => { ParserResult::incomplete_match(nodes, expected_terminals) } - ParseResultKind::NoMatch => ParserResult::no_match(None, expected_terminals), + ParseResultKind::NoMatch => ParserResult::no_match(expected_terminals), } } } diff --git a/crates/testlang/outputs/cargo/crate/src/generated/parser/parser_support/repetition_helper.rs b/crates/testlang/outputs/cargo/crate/src/generated/parser/parser_support/repetition_helper.rs index a4fb3a2be5..a808e73796 100644 --- a/crates/testlang/outputs/cargo/crate/src/generated/parser/parser_support/repetition_helper.rs +++ b/crates/testlang/outputs/cargo/crate/src/generated/parser/parser_support/repetition_helper.rs @@ -28,10 +28,7 @@ impl RepetitionHelper { // Couldn't get a full match but we allow 0 items - return an empty match // so the parse is considered valid but note the expected terminals - ParserResult::NoMatch(NoMatch { - kind: _, - expected_terminals, - }) if MIN_COUNT == 0 => { + ParserResult::NoMatch(NoMatch { expected_terminals }) if MIN_COUNT == 0 => { return ParserResult::r#match(vec![], expected_terminals); } // Don't try repeating if we don't have a full match and we require at least one @@ -65,9 +62,7 @@ impl RepetitionHelper { ParserResult::IncompleteMatch(IncompleteMatch { expected_terminals, .. }) - | ParserResult::NoMatch(NoMatch { - expected_terminals, .. - }), + | ParserResult::NoMatch(NoMatch { expected_terminals }), ) => { input.rewind(save); running.expected_terminals = expected_terminals; diff --git a/crates/testlang/outputs/cargo/crate/src/generated/parser/parser_support/separated_helper.rs b/crates/testlang/outputs/cargo/crate/src/generated/parser/parser_support/separated_helper.rs index db1a0b64d1..bf8ef42f69 100644 --- a/crates/testlang/outputs/cargo/crate/src/generated/parser/parser_support/separated_helper.rs +++ b/crates/testlang/outputs/cargo/crate/src/generated/parser/parser_support/separated_helper.rs @@ -92,7 +92,7 @@ impl SeparatedHelper { } ParserResult::NoMatch(no_match) => { return if accum.is_empty() { - ParserResult::no_match(None, no_match.expected_terminals) + ParserResult::no_match(no_match.expected_terminals) } else { ParserResult::incomplete_match(accum, no_match.expected_terminals) }; diff --git a/crates/testlang/outputs/cargo/wasm/src/generated/interface/generated/compilation.wit b/crates/testlang/outputs/cargo/wasm/src/generated/interface/generated/compilation.wit index 0e49e71703..ea64aab4ac 100644 --- a/crates/testlang/outputs/cargo/wasm/src/generated/interface/generated/compilation.wit +++ b/crates/testlang/outputs/cargo/wasm/src/generated/interface/generated/compilation.wit @@ -2,7 +2,7 @@ interface compilation { use bindings.{binding-graph}; - use cst.{node, cursor}; + use cst.{nonterminal-node, cursor}; /// A builder for creating compilation units. /// Allows incrementally building a transitive list of all files and their imports. @@ -62,7 +62,7 @@ interface compilation { id: func() -> string; /// Returns the syntax tree of this file. - tree: func() -> node; + tree: func() -> nonterminal-node; /// Creates a cursor for traversing the syntax tree of this file. create-tree-cursor: func() -> cursor; diff --git a/crates/testlang/outputs/cargo/wasm/src/generated/interface/generated/parser.wit b/crates/testlang/outputs/cargo/wasm/src/generated/interface/generated/parser.wit index df41c2e0fc..6eca8e01ae 100644 --- a/crates/testlang/outputs/cargo/wasm/src/generated/interface/generated/parser.wit +++ b/crates/testlang/outputs/cargo/wasm/src/generated/interface/generated/parser.wit @@ -1,7 +1,7 @@ // This file is generated automatically by infrastructure scripts. Please don't edit by hand. interface parser { - use cst.{cursor, node, nonterminal-kind, text-range}; + use cst.{cursor, nonterminal-node, nonterminal-kind, text-range}; /// A parser instance that can parse source code into syntax trees. /// Each parser is configured for a specific language version and grammar. @@ -34,7 +34,7 @@ interface parser { resource parse-output { /// Returns the root node of the parsed syntax tree. /// Even if there are parsing errors, a partial tree will still be available. - tree: func() -> node; + tree: func() -> nonterminal-node; /// Returns a list of all parsing errors encountered. /// An empty list indicates successful parsing with no errors. diff --git a/crates/testlang/outputs/cargo/wasm/src/generated/wrappers/compilation/mod.rs b/crates/testlang/outputs/cargo/wasm/src/generated/wrappers/compilation/mod.rs index d168910020..c1d50b6098 100644 --- a/crates/testlang/outputs/cargo/wasm/src/generated/wrappers/compilation/mod.rs +++ b/crates/testlang/outputs/cargo/wasm/src/generated/wrappers/compilation/mod.rs @@ -13,7 +13,9 @@ mod ffi { Guest, GuestCompilationUnit, GuestFile, GuestInternalCompilationBuilder, InternalCompilationBuilder, InternalCompilationBuilderBorrow, }; - pub use crate::wasm_crate::bindgen::exports::nomic_foundation::slang::cst::{Cursor, Node}; + pub use crate::wasm_crate::bindgen::exports::nomic_foundation::slang::cst::{ + Cursor, NonterminalNode, + }; } mod rust { @@ -112,7 +114,7 @@ define_rc_wrapper! { File { self._borrow_ffi().id().to_owned() } - fn tree(&self) -> ffi::Node { + fn tree(&self) -> ffi::NonterminalNode { self._borrow_ffi().tree().to_owned()._into_ffi() } diff --git a/crates/testlang/outputs/cargo/wasm/src/generated/wrappers/parser/mod.rs b/crates/testlang/outputs/cargo/wasm/src/generated/wrappers/parser/mod.rs index 7d000977d8..01e073bb8d 100644 --- a/crates/testlang/outputs/cargo/wasm/src/generated/wrappers/parser/mod.rs +++ b/crates/testlang/outputs/cargo/wasm/src/generated/wrappers/parser/mod.rs @@ -1,10 +1,12 @@ // This file is generated automatically by infrastructure scripts. Please don't edit by hand. +use std::rc::Rc; + use crate::wasm_crate::utils::{define_wrapper, FromFFI, IntoFFI}; mod ffi { pub use crate::wasm_crate::bindgen::exports::nomic_foundation::slang::cst::{ - Cursor, Node, TextRange, + Cursor, NonterminalNode, TextRange, }; pub use crate::wasm_crate::bindgen::exports::nomic_foundation::slang::parser::{ Guest, GuestParseError, GuestParseOutput, GuestParser, NonterminalKind, ParseError, @@ -72,8 +74,8 @@ define_wrapper! { ParseError { //================================================ define_wrapper! { ParseOutput { - fn tree(&self) -> ffi::Node { - self._borrow_ffi().tree().clone()._into_ffi() + fn tree(&self) -> ffi::NonterminalNode { + Rc::clone(self._borrow_ffi().tree())._into_ffi() } fn errors(&self) -> Vec { diff --git a/crates/testlang/outputs/npm/package/wasm/generated/interfaces/nomic-foundation-slang-compilation.d.ts b/crates/testlang/outputs/npm/package/wasm/generated/interfaces/nomic-foundation-slang-compilation.d.ts index 6a3a511d89..c08b1eed29 100644 --- a/crates/testlang/outputs/npm/package/wasm/generated/interfaces/nomic-foundation-slang-compilation.d.ts +++ b/crates/testlang/outputs/npm/package/wasm/generated/interfaces/nomic-foundation-slang-compilation.d.ts @@ -7,8 +7,8 @@ export namespace NomicFoundationSlangCompilation { } import type { BindingGraph } from "./nomic-foundation-slang-bindings.js"; export { BindingGraph }; -import type { Node } from "./nomic-foundation-slang-cst.js"; -export { Node }; +import type { NonterminalNode } from "./nomic-foundation-slang-cst.js"; +export { NonterminalNode }; import type { Cursor } from "./nomic-foundation-slang-cst.js"; export { Cursor }; /** @@ -64,7 +64,7 @@ export class File { /** * Returns the syntax tree of this file. */ - get tree(): Node; + get tree(): NonterminalNode; /** * Creates a cursor for traversing the syntax tree of this file. */ diff --git a/crates/testlang/outputs/npm/package/wasm/generated/interfaces/nomic-foundation-slang-parser.d.ts b/crates/testlang/outputs/npm/package/wasm/generated/interfaces/nomic-foundation-slang-parser.d.ts index 6ac5bb7305..07fe4156a6 100644 --- a/crates/testlang/outputs/npm/package/wasm/generated/interfaces/nomic-foundation-slang-parser.d.ts +++ b/crates/testlang/outputs/npm/package/wasm/generated/interfaces/nomic-foundation-slang-parser.d.ts @@ -7,8 +7,8 @@ export namespace NomicFoundationSlangParser { } import type { Cursor } from "./nomic-foundation-slang-cst.js"; export { Cursor }; -import type { Node } from "./nomic-foundation-slang-cst.js"; -export { Node }; +import type { NonterminalNode } from "./nomic-foundation-slang-cst.js"; +export { NonterminalNode }; import type { NonterminalKind } from "./nomic-foundation-slang-cst.js"; export { NonterminalKind }; import type { TextRange } from "./nomic-foundation-slang-cst.js"; @@ -37,7 +37,7 @@ export class ParseOutput { * Returns the root node of the parsed syntax tree. * Even if there are parsing errors, a partial tree will still be available. */ - get tree(): Node; + get tree(): NonterminalNode; /** * Returns a list of all parsing errors encountered. * An empty list indicates successful parsing with no errors.