Skip to main content

omena_parser/
parse_tree_contract_idl_generated.rs

1// @generated by scripts/generate-engine-v2-contract-idl.ts from contracts/parse-tree/main.tsp.
2// Do not edit this file by hand.
3
4//! Rust projection of the parse-tree contract IDL used by parser boundaries.
5
6#![allow(dead_code)]
7
8use crate::{ParserByteSpanV0, ParserRangeV0};
9use serde::Serialize;
10
11#[derive(Debug, Clone, PartialEq, Eq, Serialize)]
12#[serde(rename_all = "camelCase")]
13/// Recursive parse-tree node projected from the parse-tree contract IDL.
14pub struct ParseTreeNodeV0 {
15    pub kind: String,
16    pub byte_span: ParserByteSpanV0,
17    pub range: ParserRangeV0,
18    #[serde(skip_serializing_if = "Option::is_none")]
19    pub text: Option<String>,
20    #[serde(skip_serializing_if = "Option::is_none")]
21    pub bogus: Option<bool>,
22    #[serde(skip_serializing_if = "Option::is_none")]
23    pub error: Option<String>,
24    pub children: Vec<ParseTreeNodeV0>,
25}