[INFO] fetching crate varlink-language-server 0.1.0...
[INFO] testing varlink-language-server-0.1.0 against 1.95.0 for beta-1.96-2
[INFO] extracting crate varlink-language-server 0.1.0 into /workspace/builds/worker-5-tc1/source
[INFO] removed /workspace/builds/worker-5-tc1/source/.cargo/config.toml
[INFO] started tweaking crates.io crate varlink-language-server 0.1.0
[INFO] finished tweaking crates.io crate varlink-language-server 0.1.0
[INFO] tweaked toml for crates.io crate varlink-language-server 0.1.0 written to /workspace/builds/worker-5-tc1/source/Cargo.toml
[INFO] validating manifest of crates.io crate varlink-language-server 0.1.0 on toolchain 1.95.0
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.95.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate crates.io crate varlink-language-server 0.1.0 already has a lockfile, it will not be regenerated
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.95.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Updating crates.io index
[INFO] [stderr]      Locking 34 packages to latest Rust 1.95.0 compatible versions
[INFO] [stderr]       Adding auto-lsp v0.6.2
[INFO] [stderr]       Adding auto-lsp-core v0.7.0
[INFO] [stderr]       Adding auto-lsp-default v0.1.2
[INFO] [stderr]       Adding auto-lsp-server v0.1.2
[INFO] [stderr]       Adding bumpalo v3.20.2
[INFO] [stderr]       Adding fastant v0.1.11
[INFO] [stderr]       Adding fastrace v0.7.17
[INFO] [stderr]       Adding fastrace-macro v0.7.17
[INFO] [stderr]       Adding getrandom v0.3.4
[INFO] [stderr]       Adding heck v0.5.0
[INFO] [stderr]       Adding js-sys v0.3.95
[INFO] [stderr]       Adding pin-project v1.1.11
[INFO] [stderr]       Adding pin-project-internal v1.1.11
[INFO] [stderr]       Adding ppv-lite86 v0.2.21
[INFO] [stderr]       Adding proc-macro-error-attr2 v2.0.0
[INFO] [stderr]       Adding proc-macro-error2 v2.0.1
[INFO] [stderr]       Adding r-efi v5.3.0
[INFO] [stderr]       Adding rand v0.9.4
[INFO] [stderr]       Adding rand_chacha v0.9.0
[INFO] [stderr]       Adding rand_core v0.9.5
[INFO] [stderr]       Adding rtrb v0.3.4
[INFO] [stderr]  Downgrading salsa v0.23.0 -> v0.22.0
[INFO] [stderr]  Downgrading salsa-macro-rules v0.23.0 -> v0.22.0
[INFO] [stderr]  Downgrading salsa-macros v0.23.0 -> v0.22.0
[INFO] [stderr]       Adding small_ctor v0.1.2
[INFO] [stderr]       Adding wasip2 v1.0.3+wasi-0.2.9
[INFO] [stderr]       Adding wasm-bindgen v0.2.118
[INFO] [stderr]       Adding wasm-bindgen-macro v0.2.118
[INFO] [stderr]       Adding wasm-bindgen-macro-support v0.2.118
[INFO] [stderr]       Adding wasm-bindgen-shared v0.2.118
[INFO] [stderr]       Adding web-time v1.1.0
[INFO] [stderr]       Adding wit-bindgen v0.57.1
[INFO] [stderr]       Adding zerocopy v0.8.48
[INFO] [stderr]       Adding zerocopy-derive v0.8.48
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded auto-lsp-server v0.1.2
[INFO] [stderr]   Downloaded tree-sitter-varlink v0.4.0
[INFO] [stderr]   Downloaded salsa-macros v0.22.0
[INFO] [stderr]   Downloaded texter v0.2.1
[INFO] [stderr]   Downloaded lsp-server v0.7.9
[INFO] [stderr]   Downloaded small_ctor v0.1.2
[INFO] [stderr]   Downloaded concolor v0.1.1
[INFO] [stderr]   Downloaded concolor-query v0.3.3
[INFO] [stderr]   Downloaded auto-lsp-core v0.7.0
[INFO] [stderr]   Downloaded rayon-par-bridge v0.1.0
[INFO] [stderr]   Downloaded auto-lsp-default v0.1.2
[INFO] [stderr]   Downloaded lsp-types v0.94.1
[INFO] [stderr]   Downloaded rtrb v0.3.4
[INFO] [stderr]   Downloaded fastant v0.1.11
[INFO] [stderr]   Downloaded fastrace v0.7.17
[INFO] [stderr]   Downloaded fastrace-macro v0.7.17
[INFO] [stderr]   Downloaded salsa-macro-rules v0.22.0
[INFO] [stderr]   Downloaded salsa v0.22.0
[INFO] [stderr]   Downloaded auto-lsp v0.6.2
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+1.95.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 567a6beebffbeb4d1a4f429f701f9345ce4971ad6863a40965dd12af9336e439
[INFO] running `Command { std: "docker" "start" "-a" "567a6beebffbeb4d1a4f429f701f9345ce4971ad6863a40965dd12af9336e439", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "567a6beebffbeb4d1a4f429f701f9345ce4971ad6863a40965dd12af9336e439", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "567a6beebffbeb4d1a4f429f701f9345ce4971ad6863a40965dd12af9336e439", kill_on_drop: false }`
[INFO] [stdout] 567a6beebffbeb4d1a4f429f701f9345ce4971ad6863a40965dd12af9336e439
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+1.95.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 5aa6bb0105bcecd6ea8954338b64145cfc84669b62a616881de880d976ccb8d0
[INFO] running `Command { std: "docker" "start" "-a" "5aa6bb0105bcecd6ea8954338b64145cfc84669b62a616881de880d976ccb8d0", kill_on_drop: false }`
[INFO] [stderr]    Compiling smallvec v1.15.1
[INFO] [stderr]    Compiling find-msvc-tools v0.1.6
[INFO] [stderr]    Compiling serde_core v1.0.228
[INFO] [stderr]    Compiling parking_lot_core v0.9.12
[INFO] [stderr]    Compiling tree-sitter-language v0.1.6
[INFO] [stderr]    Compiling indexmap v2.12.1
[INFO] [stderr]    Compiling syn v2.0.114
[INFO] [stderr]    Compiling serde_json v1.0.149
[INFO] [stderr]    Compiling memchr v2.7.6
[INFO] [stderr]    Compiling lock_api v0.4.14
[INFO] [stderr]    Compiling rand_core v0.9.5
[INFO] [stderr]    Compiling proc-macro-error-attr2 v2.0.0
[INFO] [stderr]    Compiling aho-corasick v1.1.4
[INFO] [stderr]    Compiling either v1.15.0
[INFO] [stderr]    Compiling portable-atomic v1.13.0
[INFO] [stderr]    Compiling percent-encoding v2.3.2
[INFO] [stderr]    Compiling cc v1.2.51
[INFO] [stderr]    Compiling rayon v1.11.0
[INFO] [stderr]    Compiling form_urlencoded v1.2.2
[INFO] [stderr]    Compiling tracing-core v0.1.36
[INFO] [stderr]    Compiling is-terminal v0.4.17
[INFO] [stderr]    Compiling rand_chacha v0.9.0
[INFO] [stderr]    Compiling concolor-query v0.3.3
[INFO] [stderr]    Compiling small_ctor v0.1.2
[INFO] [stderr]    Compiling hashlink v0.10.0
[INFO] [stderr]    Compiling concolor v0.1.1
[INFO] [stderr]    Compiling crossbeam-queue v0.3.12
[INFO] [stderr]    Compiling parking_lot v0.12.5
[INFO] [stderr]    Compiling dashmap v6.1.0
[INFO] [stderr]    Compiling fastant v0.1.11
[INFO] [stderr]    Compiling rand v0.9.4
[INFO] [stderr]    Compiling tracing v0.1.44
[INFO] [stderr]    Compiling rtrb v0.3.4
[INFO] [stderr]    Compiling streaming-iterator v0.1.9
[INFO] [stderr]    Compiling boxcar v0.2.14
[INFO] [stderr]    Compiling rustc-hash v2.1.1
[INFO] [stderr]    Compiling thin-vec v0.2.14
[INFO] [stderr]    Compiling salsa-macro-rules v0.22.0
[INFO] [stderr]    Compiling regex-automata v0.4.13
[INFO] [stderr]    Compiling ariadne v0.5.1
[INFO] [stderr]    Compiling texter v0.2.1
[INFO] [stderr]    Compiling downcast-rs v2.0.2
[INFO] [stderr]    Compiling tree-sitter-varlink v0.4.0
[INFO] [stderr]    Compiling rayon-par-bridge v0.1.0
[INFO] [stderr]    Compiling regex v1.12.2
[INFO] [stderr]    Compiling tree-sitter v0.25.10
[INFO] [stderr]    Compiling synstructure v0.13.2
[INFO] [stderr]    Compiling proc-macro-error2 v2.0.1
[INFO] [stderr]    Compiling zerofrom-derive v0.1.6
[INFO] [stderr]    Compiling yoke-derive v0.8.1
[INFO] [stderr]    Compiling zerovec-derive v0.11.2
[INFO] [stderr]    Compiling displaydoc v0.2.5
[INFO] [stderr]    Compiling serde_derive v1.0.228
[INFO] [stderr]    Compiling pin-project-internal v1.1.11
[INFO] [stderr]    Compiling thiserror-impl v2.0.17
[INFO] [stderr]    Compiling serde_repr v0.1.20
[INFO] [stderr]    Compiling salsa-macros v0.22.0
[INFO] [stderr]    Compiling fastrace-macro v0.7.17
[INFO] [stderr]    Compiling pin-project v1.1.11
[INFO] [stderr]    Compiling thiserror v2.0.17
[INFO] [stderr]    Compiling zerofrom v0.1.6
[INFO] [stderr]    Compiling yoke v0.8.1
[INFO] [stderr]    Compiling zerovec v0.11.5
[INFO] [stderr]    Compiling zerotrie v0.2.3
[INFO] [stderr]    Compiling salsa v0.22.0
[INFO] [stderr]    Compiling tinystr v0.8.2
[INFO] [stderr]    Compiling potential_utf v0.1.4
[INFO] [stderr]    Compiling icu_collections v2.1.1
[INFO] [stderr]    Compiling icu_locale_core v2.1.1
[INFO] [stderr]    Compiling serde v1.0.228
[INFO] [stderr]    Compiling icu_provider v2.1.1
[INFO] [stderr]    Compiling icu_normalizer v2.1.1
[INFO] [stderr]    Compiling icu_properties v2.1.2
[INFO] [stderr]    Compiling fastrace v0.7.17
[INFO] [stderr]    Compiling lsp-server v0.7.9
[INFO] [stderr]    Compiling idna_adapter v1.2.1
[INFO] [stderr]    Compiling idna v1.1.0
[INFO] [stderr]    Compiling url v2.5.8
[INFO] [stderr]    Compiling lsp-types v0.94.1
[INFO] [stderr]    Compiling auto-lsp-core v0.7.0
[INFO] [stderr]    Compiling auto-lsp-server v0.1.2
[INFO] [stderr]    Compiling auto-lsp-default v0.1.2
[INFO] [stderr]    Compiling auto-lsp v0.6.2
[INFO] [stderr]    Compiling varlink-language-server v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] error[E0432]: unresolved import `auto_lsp::default::db::file`
[INFO] [stdout]  --> src/capabilities/semantic_tokens.rs:6:9
[INFO] [stdout]   |
[INFO] [stdout] 6 |         file::File,
[INFO] [stdout]   |         ^^^^ could not find `file` in `db`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: cannot find `file` in `db`
[INFO] [stdout]   --> src/capabilities/util.rs:10:36
[INFO] [stdout]    |
[INFO] [stdout] 10 | ) -> Result<auto_lsp::default::db::file::File, anyhow::Error> {
[INFO] [stdout]    |                                    ^^^^ could not find `file` in `db`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `AstNodeId` in module `auto_lsp::core::ast`
[INFO] [stdout]   --> src/ast.rs:1:234
[INFO] [stdout]    |
[INFO] [stdout]  1 | ...)] pub struct Array { pub Type : auto_lsp :: core :: ast :: AstNodeId < Type > , _range : auto_lsp :: tree_sitter :: Range , _id ...
[INFO] [stdout]    |                                                                ^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]   ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/auto-lsp-core-0.7.0/src/ast/node.rs:26:1
[INFO] [stdout]    |
[INFO] [stdout] 26 | pub trait AstNode: std::fmt::Debug + Send + Sync + DowncastSync {
[INFO] [stdout]    | --------------------------------------------------------------- similarly named trait `AstNode` defined here
[INFO] [stdout]    |
[INFO] [stdout] help: a trait with a similar name exists
[INFO] [stdout]    |
[INFO] [stdout]  1 - # ! [allow (clippy :: all)] # ! [allow (unused)] # ! [allow (dead_code)] # ! [allow (non_camel_case_types)] # ! [allow (non_snake_case)] # [derive (Debug , Clone , PartialEq)] pub struct Array { pub Type : auto_lsp :: core :: ast :: AstNodeId < Type > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Array { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 37u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Array { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut Type = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Type , 10u16 > (& mut Type) }) ; Ok (Self { Type : Type ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Type) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Dict { pub Type : auto_lsp :: core :: ast :: AstNodeId < Type > , pub children : auto_lsp :: core :: ast :: AstNodeId < String > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Dict { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 38u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Dict { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut Type = Ok (None) ; ; let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Type , 10u16 > (& mut Type) ? . on_children_id (& mut children) }) ; Ok (Self { Type : Type ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Type) , } }) ? , children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (String) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Enum { pub member : Vec < auto_lsp :: core :: ast :: AstNodeId < FieldName >> , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Enum { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 33u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Enum { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut member = vec ! [] ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_vec_field_id :: < FieldName , 6u16 > (& mut member) ? . on_vec_children_id (& mut children) }) ; Ok (Self { member , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Error { pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordError > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub value : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Error { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 29u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Error { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut keyword = Ok (None) ; ; let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < KeywordError , 5u16 > (& mut keyword) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_field_id :: < Struct , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Interface { pub declaration : auto_lsp :: core :: ast :: AstNodeId < InterfaceDeclaration > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol_Error_Method_Typedef >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Interface { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 24u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Interface { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut declaration = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < InterfaceDeclaration , 2u16 > (& mut declaration) ? . on_vec_children_id (& mut children) }) ; Ok (Self { declaration : declaration ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (declaration) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct InterfaceDeclaration { pub name : auto_lsp :: core :: ast :: AstNodeId < InterfaceName > , pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordInterface > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for InterfaceDeclaration { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 27u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for InterfaceDeclaration { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut name = Ok (None) ; ; let mut keyword = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < InterfaceName , 7u16 > (& mut name) ? . on_field_id :: < KeywordInterface , 5u16 > (& mut keyword) ? . on_vec_children_id (& mut children) }) ; Ok (Self { name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Maybe { pub questionmark : auto_lsp :: core :: ast :: AstNodeId < Questionmark > , pub just : auto_lsp :: core :: ast :: AstNodeId < Type > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Maybe { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 35u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Maybe { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut questionmark = Ok (None) ; ; let mut just = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Questionmark , 9u16 > (& mut questionmark) ? . on_field_id :: < Type , 4u16 > (& mut just) }) ; Ok (Self { questionmark : questionmark ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (questionmark) , } }) ? , just : just ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (just) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Method { pub input : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub output : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordMethod > , pub arrow : auto_lsp :: core :: ast :: AstNodeId < Arrow > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Method { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 30u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Method { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut input = Ok (None) ; ; let mut output = Ok (None) ; ; let mut keyword = Ok (None) ; ; let mut arrow = Ok (None) ; ; let mut name = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Struct , 3u16 > (& mut input) ? . on_field_id :: < Struct , 8u16 > (& mut output) ? . on_field_id :: < KeywordMethod , 5u16 > (& mut keyword) ? . on_field_id :: < Arrow , 1u16 > (& mut arrow) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_vec_children_id (& mut children) }) ; Ok (Self { input : input ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (input) , } }) ? , output : output ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (output) , } }) ? , keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , arrow : arrow ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (arrow) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Struct { pub member : Vec < auto_lsp :: core :: ast :: AstNodeId < StructField >> , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Struct { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 31u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Struct { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut member = vec ! [] ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_vec_field_id :: < StructField , 6u16 > (& mut member) ? . on_vec_children_id (& mut children) }) ; Ok (Self { member , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct StructField { pub name : auto_lsp :: core :: ast :: AstNodeId < FieldName > , pub value : auto_lsp :: core :: ast :: AstNodeId < Type > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for StructField { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 32u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for StructField { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < FieldName , 7u16 > (& mut name) ? . on_field_id :: < Type , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Type { pub children : auto_lsp :: core :: ast :: AstNodeId < Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Type { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 34u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Type { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_children_id (& mut children) }) ; Ok (Self { children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Typedef { pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordType > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub value : auto_lsp :: core :: ast :: AstNodeId < Enum_Struct > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Typedef { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 28u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Typedef { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut keyword = Ok (None) ; ; let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < KeywordType , 5u16 > (& mut keyword) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_field_id :: < Enum_Struct , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Typeref { pub children : auto_lsp :: core :: ast :: AstNodeId < Name > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Typeref { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 39u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Typeref { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_children_id (& mut children) }) ; Ok (Self { children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Name) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_LeftParen { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_LeftParen { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 9u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_LeftParen { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_RightParen { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_RightParen { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 11u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_RightParen { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_Comma { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_Comma { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 10u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_Comma { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_Colon { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_Colon { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 12u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_Colon { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_LeftBracket { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_LeftBracket { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 14u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_LeftBracket { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_RightBracket { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_RightBracket { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 15u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_RightBracket { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Arrow { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Arrow { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 8u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Arrow { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Bool { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Bool { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 16u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Bool { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Comment { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Comment { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Eol { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Eol { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 3u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Eol { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct FieldName { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for FieldName { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 22u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for FieldName { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Float { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Float { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 18u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Float { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Int { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Int { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 17u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Int { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct InterfaceName { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for InterfaceName { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 23u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for InterfaceName { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordError { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordError { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 6u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordError { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordInterface { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordInterface { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 4u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordInterface { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordMethod { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordMethod { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 7u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordMethod { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordType { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordType { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 5u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordType { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Name { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Name { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 21u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Name { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Object { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Object { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 20u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Object { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Questionmark { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Questionmark { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 13u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Questionmark { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct String { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for String { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 19u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for String { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub enum Comment_Eol_Error_Method_Typedef { Comment (Comment) , Eol (Eol) , Error (Error) , Method (Method) , Typedef (Typedef) } impl auto_lsp :: core :: ast :: AstNode for Comment_Eol_Error_Method_Typedef { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16 | 3u16 | 29u16 | 30u16 | 28u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Comment (node) => node . lower () , Self :: Eol (node) => node . lower () , Self :: Error (node) => node . lower () , Self :: Method (node) => node . lower () , Self :: Typedef (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Comment (node) => node . get_id () , Self :: Eol (node) => node . get_id () , Self :: Error (node) => node . get_id () , Self :: Method (node) => node . get_id () , Self :: Typedef (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Comment (node) => node . get_parent_id () , Self :: Eol (node) => node . get_parent_id () , Self :: Error (node) => node . get_parent_id () , Self :: Method (node) => node . get_parent_id () , Self :: Typedef (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Comment (node) => node . get_range () , Self :: Eol (node) => node . get_range () , Self :: Error (node) => node . get_range () , Self :: Method (node) => node . get_range () , Self :: Typedef (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment_Eol_Error_Method_Typedef { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 2u16 => Ok (Self :: Comment (Comment :: try_from ((node , db , builder , id , parent_id)) ?)) , 3u16 => Ok (Self :: Eol (Eol :: try_from ((node , db , builder , id , parent_id)) ?)) , 29u16 => Ok (Self :: Error (Error :: try_from ((node , db , builder , id , parent_id)) ?)) , 30u16 => Ok (Self :: Method (Method :: try_from ((node , db , builder , id , parent_id)) ?)) , 28u16 => Ok (Self :: Typedef (Typedef :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Comment_Eol_Error_Method_Typedef) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { Array (Array) , Bool (Bool) , Dict (Dict) , Enum (Enum) , Float (Float) , Int (Int) , Maybe (Maybe) , Object (Object) , String (String) , Struct (Struct) , Typeref (Typeref) } impl auto_lsp :: core :: ast :: AstNode for Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 37u16 | 16u16 | 38u16 | 33u16 | 18u16 | 17u16 | 35u16 | 20u16 | 19u16 | 31u16 | 39u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Array (node) => node . lower () , Self :: Bool (node) => node . lower () , Self :: Dict (node) => node . lower () , Self :: Enum (node) => node . lower () , Self :: Float (node) => node . lower () , Self :: Int (node) => node . lower () , Self :: Maybe (node) => node . lower () , Self :: Object (node) => node . lower () , Self :: String (node) => node . lower () , Self :: Struct (node) => node . lower () , Self :: Typeref (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Array (node) => node . get_id () , Self :: Bool (node) => node . get_id () , Self :: Dict (node) => node . get_id () , Self :: Enum (node) => node . get_id () , Self :: Float (node) => node . get_id () , Self :: Int (node) => node . get_id () , Self :: Maybe (node) => node . get_id () , Self :: Object (node) => node . get_id () , Self :: String (node) => node . get_id () , Self :: Struct (node) => node . get_id () , Self :: Typeref (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Array (node) => node . get_parent_id () , Self :: Bool (node) => node . get_parent_id () , Self :: Dict (node) => node . get_parent_id () , Self :: Enum (node) => node . get_parent_id () , Self :: Float (node) => node . get_parent_id () , Self :: Int (node) => node . get_parent_id () , Self :: Maybe (node) => node . get_parent_id () , Self :: Object (node) => node . get_parent_id () , Self :: String (node) => node . get_parent_id () , Self :: Struct (node) => node . get_parent_id () , Self :: Typeref (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Array (node) => node . get_range () , Self :: Bool (node) => node . get_range () , Self :: Dict (node) => node . get_range () , Self :: Enum (node) => node . get_range () , Self :: Float (node) => node . get_range () , Self :: Int (node) => node . get_range () , Self :: Maybe (node) => node . get_range () , Self :: Object (node) => node . get_range () , Self :: String (node) => node . get_range () , Self :: Struct (node) => node . get_range () , Self :: Typeref (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 37u16 => Ok (Self :: Array (Array :: try_from ((node , db , builder , id , parent_id)) ?)) , 16u16 => Ok (Self :: Bool (Bool :: try_from ((node , db , builder , id , parent_id)) ?)) , 38u16 => Ok (Self :: Dict (Dict :: try_from ((node , db , builder , id , parent_id)) ?)) , 33u16 => Ok (Self :: Enum (Enum :: try_from ((node , db , builder , id , parent_id)) ?)) , 18u16 => Ok (Self :: Float (Float :: try_from ((node , db , builder , id , parent_id)) ?)) , 17u16 => Ok (Self :: Int (Int :: try_from ((node , db , builder , id , parent_id)) ?)) , 35u16 => Ok (Self :: Maybe (Maybe :: try_from ((node , db , builder , id , parent_id)) ?)) , 20u16 => Ok (Self :: Object (Object :: try_from ((node , db , builder , id , parent_id)) ?)) , 19u16 => Ok (Self :: String (String :: try_from ((node , db , builder , id , parent_id)) ?)) , 31u16 => Ok (Self :: Struct (Struct :: try_from ((node , db , builder , id , parent_id)) ?)) , 39u16 => Ok (Self :: Typeref (Typeref :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Enum_Struct { Enum (Enum) , Struct (Struct) } impl auto_lsp :: core :: ast :: AstNode for Enum_Struct { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 33u16 | 31u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Enum (node) => node . lower () , Self :: Struct (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Enum (node) => node . get_id () , Self :: Struct (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Enum (node) => node . get_parent_id () , Self :: Struct (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Enum (node) => node . get_range () , Self :: Struct (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Enum_Struct { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 33u16 => Ok (Self :: Enum (Enum :: try_from ((node , db , builder , id , parent_id)) ?)) , 31u16 => Ok (Self :: Struct (Struct :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Enum_Struct) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Comment_Eol { Comment (Comment) , Eol (Eol) } impl auto_lsp :: core :: ast :: AstNode for Comment_Eol { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16 | 3u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Comment (node) => node . lower () , Self :: Eol (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Comment (node) => node . get_id () , Self :: Eol (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Comment (node) => node . get_parent_id () , Self :: Eol (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Comment (node) => node . get_range () , Self :: Eol (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment_Eol { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 2u16 => Ok (Self :: Comment (Comment :: try_from ((node , db , builder , id , parent_id)) ?)) , 3u16 => Ok (Self :: Eol (Eol :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Comment_Eol) , }) } } }
[INFO] [stdout]  1 + # ! [allow (clippy :: all)] # ! [allow (unused)] # ! [allow (dead_code)] # ! [allow (non_camel_case_types)] # ! [allow (non_snake_case)] # [derive (Debug , Clone , PartialEq)] pub struct Array { pub Type : auto_lsp :: core :: ast :: AstNode < Type > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Array { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 37u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Array { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut Type = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Type , 10u16 > (& mut Type) }) ; Ok (Self { Type : Type ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Type) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Dict { pub Type : auto_lsp :: core :: ast :: AstNodeId < Type > , pub children : auto_lsp :: core :: ast :: AstNodeId < String > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Dict { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 38u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Dict { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut Type = Ok (None) ; ; let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Type , 10u16 > (& mut Type) ? . on_children_id (& mut children) }) ; Ok (Self { Type : Type ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Type) , } }) ? , children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (String) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Enum { pub member : Vec < auto_lsp :: core :: ast :: AstNodeId < FieldName >> , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Enum { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 33u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Enum { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut member = vec ! [] ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_vec_field_id :: < FieldName , 6u16 > (& mut member) ? . on_vec_children_id (& mut children) }) ; Ok (Self { member , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Error { pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordError > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub value : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Error { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 29u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Error { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut keyword = Ok (None) ; ; let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < KeywordError , 5u16 > (& mut keyword) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_field_id :: < Struct , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Interface { pub declaration : auto_lsp :: core :: ast :: AstNodeId < InterfaceDeclaration > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol_Error_Method_Typedef >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Interface { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 24u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Interface { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut declaration = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < InterfaceDeclaration , 2u16 > (& mut declaration) ? . on_vec_children_id (& mut children) }) ; Ok (Self { declaration : declaration ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (declaration) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct InterfaceDeclaration { pub name : auto_lsp :: core :: ast :: AstNodeId < InterfaceName > , pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordInterface > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for InterfaceDeclaration { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 27u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for InterfaceDeclaration { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut name = Ok (None) ; ; let mut keyword = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < InterfaceName , 7u16 > (& mut name) ? . on_field_id :: < KeywordInterface , 5u16 > (& mut keyword) ? . on_vec_children_id (& mut children) }) ; Ok (Self { name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Maybe { pub questionmark : auto_lsp :: core :: ast :: AstNodeId < Questionmark > , pub just : auto_lsp :: core :: ast :: AstNodeId < Type > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Maybe { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 35u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Maybe { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut questionmark = Ok (None) ; ; let mut just = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Questionmark , 9u16 > (& mut questionmark) ? . on_field_id :: < Type , 4u16 > (& mut just) }) ; Ok (Self { questionmark : questionmark ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (questionmark) , } }) ? , just : just ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (just) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Method { pub input : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub output : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordMethod > , pub arrow : auto_lsp :: core :: ast :: AstNodeId < Arrow > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Method { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 30u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Method { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut input = Ok (None) ; ; let mut output = Ok (None) ; ; let mut keyword = Ok (None) ; ; let mut arrow = Ok (None) ; ; let mut name = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Struct , 3u16 > (& mut input) ? . on_field_id :: < Struct , 8u16 > (& mut output) ? . on_field_id :: < KeywordMethod , 5u16 > (& mut keyword) ? . on_field_id :: < Arrow , 1u16 > (& mut arrow) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_vec_children_id (& mut children) }) ; Ok (Self { input : input ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (input) , } }) ? , output : output ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (output) , } }) ? , keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , arrow : arrow ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (arrow) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Struct { pub member : Vec < auto_lsp :: core :: ast :: AstNodeId < StructField >> , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Struct { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 31u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Struct { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut member = vec ! [] ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_vec_field_id :: < StructField , 6u16 > (& mut member) ? . on_vec_children_id (& mut children) }) ; Ok (Self { member , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct StructField { pub name : auto_lsp :: core :: ast :: AstNodeId < FieldName > , pub value : auto_lsp :: core :: ast :: AstNodeId < Type > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for StructField { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 32u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for StructField { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < FieldName , 7u16 > (& mut name) ? . on_field_id :: < Type , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Type { pub children : auto_lsp :: core :: ast :: AstNodeId < Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Type { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 34u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Type { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_children_id (& mut children) }) ; Ok (Self { children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Typedef { pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordType > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub value : auto_lsp :: core :: ast :: AstNodeId < Enum_Struct > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Typedef { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 28u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Typedef { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut keyword = Ok (None) ; ; let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < KeywordType , 5u16 > (& mut keyword) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_field_id :: < Enum_Struct , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Typeref { pub children : auto_lsp :: core :: ast :: AstNodeId < Name > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Typeref { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 39u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Typeref { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_children_id (& mut children) }) ; Ok (Self { children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Name) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_LeftParen { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_LeftParen { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 9u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_LeftParen { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_RightParen { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_RightParen { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 11u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_RightParen { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_Comma { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_Comma { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 10u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_Comma { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_Colon { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_Colon { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 12u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_Colon { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_LeftBracket { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_LeftBracket { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 14u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_LeftBracket { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_RightBracket { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_RightBracket { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 15u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_RightBracket { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Arrow { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Arrow { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 8u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Arrow { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Bool { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Bool { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 16u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Bool { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Comment { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Comment { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Eol { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Eol { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 3u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Eol { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct FieldName { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for FieldName { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 22u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for FieldName { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Float { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Float { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 18u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Float { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Int { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Int { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 17u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Int { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct InterfaceName { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for InterfaceName { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 23u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for InterfaceName { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordError { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordError { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 6u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordError { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordInterface { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordInterface { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 4u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordInterface { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordMethod { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordMethod { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 7u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordMethod { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordType { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordType { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 5u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordType { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Name { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Name { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 21u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Name { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Object { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Object { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 20u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Object { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Questionmark { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Questionmark { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 13u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Questionmark { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct String { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for String { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 19u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for String { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub enum Comment_Eol_Error_Method_Typedef { Comment (Comment) , Eol (Eol) , Error (Error) , Method (Method) , Typedef (Typedef) } impl auto_lsp :: core :: ast :: AstNode for Comment_Eol_Error_Method_Typedef { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16 | 3u16 | 29u16 | 30u16 | 28u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Comment (node) => node . lower () , Self :: Eol (node) => node . lower () , Self :: Error (node) => node . lower () , Self :: Method (node) => node . lower () , Self :: Typedef (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Comment (node) => node . get_id () , Self :: Eol (node) => node . get_id () , Self :: Error (node) => node . get_id () , Self :: Method (node) => node . get_id () , Self :: Typedef (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Comment (node) => node . get_parent_id () , Self :: Eol (node) => node . get_parent_id () , Self :: Error (node) => node . get_parent_id () , Self :: Method (node) => node . get_parent_id () , Self :: Typedef (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Comment (node) => node . get_range () , Self :: Eol (node) => node . get_range () , Self :: Error (node) => node . get_range () , Self :: Method (node) => node . get_range () , Self :: Typedef (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment_Eol_Error_Method_Typedef { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 2u16 => Ok (Self :: Comment (Comment :: try_from ((node , db , builder , id , parent_id)) ?)) , 3u16 => Ok (Self :: Eol (Eol :: try_from ((node , db , builder , id , parent_id)) ?)) , 29u16 => Ok (Self :: Error (Error :: try_from ((node , db , builder , id , parent_id)) ?)) , 30u16 => Ok (Self :: Method (Method :: try_from ((node , db , builder , id , parent_id)) ?)) , 28u16 => Ok (Self :: Typedef (Typedef :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Comment_Eol_Error_Method_Typedef) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { Array (Array) , Bool (Bool) , Dict (Dict) , Enum (Enum) , Float (Float) , Int (Int) , Maybe (Maybe) , Object (Object) , String (String) , Struct (Struct) , Typeref (Typeref) } impl auto_lsp :: core :: ast :: AstNode for Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 37u16 | 16u16 | 38u16 | 33u16 | 18u16 | 17u16 | 35u16 | 20u16 | 19u16 | 31u16 | 39u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Array (node) => node . lower () , Self :: Bool (node) => node . lower () , Self :: Dict (node) => node . lower () , Self :: Enum (node) => node . lower () , Self :: Float (node) => node . lower () , Self :: Int (node) => node . lower () , Self :: Maybe (node) => node . lower () , Self :: Object (node) => node . lower () , Self :: String (node) => node . lower () , Self :: Struct (node) => node . lower () , Self :: Typeref (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Array (node) => node . get_id () , Self :: Bool (node) => node . get_id () , Self :: Dict (node) => node . get_id () , Self :: Enum (node) => node . get_id () , Self :: Float (node) => node . get_id () , Self :: Int (node) => node . get_id () , Self :: Maybe (node) => node . get_id () , Self :: Object (node) => node . get_id () , Self :: String (node) => node . get_id () , Self :: Struct (node) => node . get_id () , Self :: Typeref (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Array (node) => node . get_parent_id () , Self :: Bool (node) => node . get_parent_id () , Self :: Dict (node) => node . get_parent_id () , Self :: Enum (node) => node . get_parent_id () , Self :: Float (node) => node . get_parent_id () , Self :: Int (node) => node . get_parent_id () , Self :: Maybe (node) => node . get_parent_id () , Self :: Object (node) => node . get_parent_id () , Self :: String (node) => node . get_parent_id () , Self :: Struct (node) => node . get_parent_id () , Self :: Typeref (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Array (node) => node . get_range () , Self :: Bool (node) => node . get_range () , Self :: Dict (node) => node . get_range () , Self :: Enum (node) => node . get_range () , Self :: Float (node) => node . get_range () , Self :: Int (node) => node . get_range () , Self :: Maybe (node) => node . get_range () , Self :: Object (node) => node . get_range () , Self :: String (node) => node . get_range () , Self :: Struct (node) => node . get_range () , Self :: Typeref (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 37u16 => Ok (Self :: Array (Array :: try_from ((node , db , builder , id , parent_id)) ?)) , 16u16 => Ok (Self :: Bool (Bool :: try_from ((node , db , builder , id , parent_id)) ?)) , 38u16 => Ok (Self :: Dict (Dict :: try_from ((node , db , builder , id , parent_id)) ?)) , 33u16 => Ok (Self :: Enum (Enum :: try_from ((node , db , builder , id , parent_id)) ?)) , 18u16 => Ok (Self :: Float (Float :: try_from ((node , db , builder , id , parent_id)) ?)) , 17u16 => Ok (Self :: Int (Int :: try_from ((node , db , builder , id , parent_id)) ?)) , 35u16 => Ok (Self :: Maybe (Maybe :: try_from ((node , db , builder , id , parent_id)) ?)) , 20u16 => Ok (Self :: Object (Object :: try_from ((node , db , builder , id , parent_id)) ?)) , 19u16 => Ok (Self :: String (String :: try_from ((node , db , builder , id , parent_id)) ?)) , 31u16 => Ok (Self :: Struct (Struct :: try_from ((node , db , builder , id , parent_id)) ?)) , 39u16 => Ok (Self :: Typeref (Typeref :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Enum_Struct { Enum (Enum) , Struct (Struct) } impl auto_lsp :: core :: ast :: AstNode for Enum_Struct { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 33u16 | 31u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Enum (node) => node . lower () , Self :: Struct (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Enum (node) => node . get_id () , Self :: Struct (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Enum (node) => node . get_parent_id () , Self :: Struct (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Enum (node) => node . get_range () , Self :: Struct (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Enum_Struct { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 33u16 => Ok (Self :: Enum (Enum :: try_from ((node , db , builder , id , parent_id)) ?)) , 31u16 => Ok (Self :: Struct (Struct :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Enum_Struct) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Comment_Eol { Comment (Comment) , Eol (Eol) } impl auto_lsp :: core :: ast :: AstNode for Comment_Eol { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16 | 3u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Comment (node) => node . lower () , Self :: Eol (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Comment (node) => node . get_id () , Self :: Eol (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Comment (node) => node . get_parent_id () , Self :: Eol (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Comment (node) => node . get_range () , Self :: Eol (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment_Eol { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 2u16 => Ok (Self :: Comment (Comment :: try_from ((node , db , builder , id , parent_id)) ?)) , 3u16 => Ok (Self :: Eol (Eol :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Comment_Eol) , }) } } }
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `AstNodeId` in module `auto_lsp::core::ast`
[INFO] [stdout]   --> src/ast.rs:1:1552
[INFO] [stdout]    |
[INFO] [stdout]  1 | ...q)] pub struct Dict { pub Type : auto_lsp :: core :: ast :: AstNodeId < Type > , pub children : auto_lsp :: core :: ast :: AstNod...
[INFO] [stdout]    |                                                                ^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]   ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/auto-lsp-core-0.7.0/src/ast/node.rs:26:1
[INFO] [stdout]    |
[INFO] [stdout] 26 | pub trait AstNode: std::fmt::Debug + Send + Sync + DowncastSync {
[INFO] [stdout]    | --------------------------------------------------------------- similarly named trait `AstNode` defined here
[INFO] [stdout]    |
[INFO] [stdout] help: a trait with a similar name exists
[INFO] [stdout]    |
[INFO] [stdout]  1 - # ! [allow (clippy :: all)] # ! [allow (unused)] # ! [allow (dead_code)] # ! [allow (non_camel_case_types)] # ! [allow (non_snake_case)] # [derive (Debug , Clone , PartialEq)] pub struct Array { pub Type : auto_lsp :: core :: ast :: AstNodeId < Type > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Array { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 37u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Array { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut Type = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Type , 10u16 > (& mut Type) }) ; Ok (Self { Type : Type ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Type) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Dict { pub Type : auto_lsp :: core :: ast :: AstNodeId < Type > , pub children : auto_lsp :: core :: ast :: AstNodeId < String > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Dict { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 38u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Dict { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut Type = Ok (None) ; ; let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Type , 10u16 > (& mut Type) ? . on_children_id (& mut children) }) ; Ok (Self { Type : Type ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Type) , } }) ? , children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (String) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Enum { pub member : Vec < auto_lsp :: core :: ast :: AstNodeId < FieldName >> , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Enum { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 33u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Enum { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut member = vec ! [] ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_vec_field_id :: < FieldName , 6u16 > (& mut member) ? . on_vec_children_id (& mut children) }) ; Ok (Self { member , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Error { pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordError > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub value : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Error { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 29u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Error { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut keyword = Ok (None) ; ; let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < KeywordError , 5u16 > (& mut keyword) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_field_id :: < Struct , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Interface { pub declaration : auto_lsp :: core :: ast :: AstNodeId < InterfaceDeclaration > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol_Error_Method_Typedef >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Interface { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 24u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Interface { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut declaration = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < InterfaceDeclaration , 2u16 > (& mut declaration) ? . on_vec_children_id (& mut children) }) ; Ok (Self { declaration : declaration ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (declaration) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct InterfaceDeclaration { pub name : auto_lsp :: core :: ast :: AstNodeId < InterfaceName > , pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordInterface > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for InterfaceDeclaration { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 27u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for InterfaceDeclaration { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut name = Ok (None) ; ; let mut keyword = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < InterfaceName , 7u16 > (& mut name) ? . on_field_id :: < KeywordInterface , 5u16 > (& mut keyword) ? . on_vec_children_id (& mut children) }) ; Ok (Self { name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Maybe { pub questionmark : auto_lsp :: core :: ast :: AstNodeId < Questionmark > , pub just : auto_lsp :: core :: ast :: AstNodeId < Type > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Maybe { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 35u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Maybe { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut questionmark = Ok (None) ; ; let mut just = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Questionmark , 9u16 > (& mut questionmark) ? . on_field_id :: < Type , 4u16 > (& mut just) }) ; Ok (Self { questionmark : questionmark ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (questionmark) , } }) ? , just : just ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (just) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Method { pub input : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub output : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordMethod > , pub arrow : auto_lsp :: core :: ast :: AstNodeId < Arrow > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Method { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 30u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Method { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut input = Ok (None) ; ; let mut output = Ok (None) ; ; let mut keyword = Ok (None) ; ; let mut arrow = Ok (None) ; ; let mut name = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Struct , 3u16 > (& mut input) ? . on_field_id :: < Struct , 8u16 > (& mut output) ? . on_field_id :: < KeywordMethod , 5u16 > (& mut keyword) ? . on_field_id :: < Arrow , 1u16 > (& mut arrow) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_vec_children_id (& mut children) }) ; Ok (Self { input : input ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (input) , } }) ? , output : output ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (output) , } }) ? , keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , arrow : arrow ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (arrow) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Struct { pub member : Vec < auto_lsp :: core :: ast :: AstNodeId < StructField >> , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Struct { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 31u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Struct { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut member = vec ! [] ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_vec_field_id :: < StructField , 6u16 > (& mut member) ? . on_vec_children_id (& mut children) }) ; Ok (Self { member , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct StructField { pub name : auto_lsp :: core :: ast :: AstNodeId < FieldName > , pub value : auto_lsp :: core :: ast :: AstNodeId < Type > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for StructField { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 32u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for StructField { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < FieldName , 7u16 > (& mut name) ? . on_field_id :: < Type , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Type { pub children : auto_lsp :: core :: ast :: AstNodeId < Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Type { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 34u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Type { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_children_id (& mut children) }) ; Ok (Self { children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Typedef { pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordType > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub value : auto_lsp :: core :: ast :: AstNodeId < Enum_Struct > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Typedef { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 28u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Typedef { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut keyword = Ok (None) ; ; let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < KeywordType , 5u16 > (& mut keyword) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_field_id :: < Enum_Struct , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Typeref { pub children : auto_lsp :: core :: ast :: AstNodeId < Name > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Typeref { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 39u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Typeref { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_children_id (& mut children) }) ; Ok (Self { children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Name) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_LeftParen { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_LeftParen { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 9u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_LeftParen { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_RightParen { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_RightParen { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 11u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_RightParen { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_Comma { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_Comma { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 10u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_Comma { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_Colon { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_Colon { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 12u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_Colon { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_LeftBracket { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_LeftBracket { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 14u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_LeftBracket { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_RightBracket { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_RightBracket { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 15u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_RightBracket { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Arrow { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Arrow { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 8u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Arrow { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Bool { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Bool { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 16u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Bool { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Comment { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Comment { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Eol { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Eol { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 3u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Eol { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct FieldName { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for FieldName { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 22u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for FieldName { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Float { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Float { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 18u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Float { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Int { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Int { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 17u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Int { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct InterfaceName { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for InterfaceName { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 23u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for InterfaceName { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordError { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordError { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 6u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordError { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordInterface { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordInterface { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 4u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordInterface { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordMethod { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordMethod { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 7u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordMethod { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordType { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordType { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 5u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordType { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Name { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Name { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 21u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Name { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Object { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Object { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 20u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Object { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Questionmark { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Questionmark { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 13u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Questionmark { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct String { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for String { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 19u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for String { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub enum Comment_Eol_Error_Method_Typedef { Comment (Comment) , Eol (Eol) , Error (Error) , Method (Method) , Typedef (Typedef) } impl auto_lsp :: core :: ast :: AstNode for Comment_Eol_Error_Method_Typedef { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16 | 3u16 | 29u16 | 30u16 | 28u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Comment (node) => node . lower () , Self :: Eol (node) => node . lower () , Self :: Error (node) => node . lower () , Self :: Method (node) => node . lower () , Self :: Typedef (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Comment (node) => node . get_id () , Self :: Eol (node) => node . get_id () , Self :: Error (node) => node . get_id () , Self :: Method (node) => node . get_id () , Self :: Typedef (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Comment (node) => node . get_parent_id () , Self :: Eol (node) => node . get_parent_id () , Self :: Error (node) => node . get_parent_id () , Self :: Method (node) => node . get_parent_id () , Self :: Typedef (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Comment (node) => node . get_range () , Self :: Eol (node) => node . get_range () , Self :: Error (node) => node . get_range () , Self :: Method (node) => node . get_range () , Self :: Typedef (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment_Eol_Error_Method_Typedef { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 2u16 => Ok (Self :: Comment (Comment :: try_from ((node , db , builder , id , parent_id)) ?)) , 3u16 => Ok (Self :: Eol (Eol :: try_from ((node , db , builder , id , parent_id)) ?)) , 29u16 => Ok (Self :: Error (Error :: try_from ((node , db , builder , id , parent_id)) ?)) , 30u16 => Ok (Self :: Method (Method :: try_from ((node , db , builder , id , parent_id)) ?)) , 28u16 => Ok (Self :: Typedef (Typedef :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Comment_Eol_Error_Method_Typedef) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { Array (Array) , Bool (Bool) , Dict (Dict) , Enum (Enum) , Float (Float) , Int (Int) , Maybe (Maybe) , Object (Object) , String (String) , Struct (Struct) , Typeref (Typeref) } impl auto_lsp :: core :: ast :: AstNode for Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 37u16 | 16u16 | 38u16 | 33u16 | 18u16 | 17u16 | 35u16 | 20u16 | 19u16 | 31u16 | 39u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Array (node) => node . lower () , Self :: Bool (node) => node . lower () , Self :: Dict (node) => node . lower () , Self :: Enum (node) => node . lower () , Self :: Float (node) => node . lower () , Self :: Int (node) => node . lower () , Self :: Maybe (node) => node . lower () , Self :: Object (node) => node . lower () , Self :: String (node) => node . lower () , Self :: Struct (node) => node . lower () , Self :: Typeref (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Array (node) => node . get_id () , Self :: Bool (node) => node . get_id () , Self :: Dict (node) => node . get_id () , Self :: Enum (node) => node . get_id () , Self :: Float (node) => node . get_id () , Self :: Int (node) => node . get_id () , Self :: Maybe (node) => node . get_id () , Self :: Object (node) => node . get_id () , Self :: String (node) => node . get_id () , Self :: Struct (node) => node . get_id () , Self :: Typeref (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Array (node) => node . get_parent_id () , Self :: Bool (node) => node . get_parent_id () , Self :: Dict (node) => node . get_parent_id () , Self :: Enum (node) => node . get_parent_id () , Self :: Float (node) => node . get_parent_id () , Self :: Int (node) => node . get_parent_id () , Self :: Maybe (node) => node . get_parent_id () , Self :: Object (node) => node . get_parent_id () , Self :: String (node) => node . get_parent_id () , Self :: Struct (node) => node . get_parent_id () , Self :: Typeref (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Array (node) => node . get_range () , Self :: Bool (node) => node . get_range () , Self :: Dict (node) => node . get_range () , Self :: Enum (node) => node . get_range () , Self :: Float (node) => node . get_range () , Self :: Int (node) => node . get_range () , Self :: Maybe (node) => node . get_range () , Self :: Object (node) => node . get_range () , Self :: String (node) => node . get_range () , Self :: Struct (node) => node . get_range () , Self :: Typeref (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 37u16 => Ok (Self :: Array (Array :: try_from ((node , db , builder , id , parent_id)) ?)) , 16u16 => Ok (Self :: Bool (Bool :: try_from ((node , db , builder , id , parent_id)) ?)) , 38u16 => Ok (Self :: Dict (Dict :: try_from ((node , db , builder , id , parent_id)) ?)) , 33u16 => Ok (Self :: Enum (Enum :: try_from ((node , db , builder , id , parent_id)) ?)) , 18u16 => Ok (Self :: Float (Float :: try_from ((node , db , builder , id , parent_id)) ?)) , 17u16 => Ok (Self :: Int (Int :: try_from ((node , db , builder , id , parent_id)) ?)) , 35u16 => Ok (Self :: Maybe (Maybe :: try_from ((node , db , builder , id , parent_id)) ?)) , 20u16 => Ok (Self :: Object (Object :: try_from ((node , db , builder , id , parent_id)) ?)) , 19u16 => Ok (Self :: String (String :: try_from ((node , db , builder , id , parent_id)) ?)) , 31u16 => Ok (Self :: Struct (Struct :: try_from ((node , db , builder , id , parent_id)) ?)) , 39u16 => Ok (Self :: Typeref (Typeref :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Enum_Struct { Enum (Enum) , Struct (Struct) } impl auto_lsp :: core :: ast :: AstNode for Enum_Struct { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 33u16 | 31u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Enum (node) => node . lower () , Self :: Struct (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Enum (node) => node . get_id () , Self :: Struct (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Enum (node) => node . get_parent_id () , Self :: Struct (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Enum (node) => node . get_range () , Self :: Struct (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Enum_Struct { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 33u16 => Ok (Self :: Enum (Enum :: try_from ((node , db , builder , id , parent_id)) ?)) , 31u16 => Ok (Self :: Struct (Struct :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Enum_Struct) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Comment_Eol { Comment (Comment) , Eol (Eol) } impl auto_lsp :: core :: ast :: AstNode for Comment_Eol { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16 | 3u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Comment (node) => node . lower () , Self :: Eol (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Comment (node) => node . get_id () , Self :: Eol (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Comment (node) => node . get_parent_id () , Self :: Eol (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Comment (node) => node . get_range () , Self :: Eol (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment_Eol { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 2u16 => Ok (Self :: Comment (Comment :: try_from ((node , db , builder , id , parent_id)) ?)) , 3u16 => Ok (Self :: Eol (Eol :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Comment_Eol) , }) } } }
[INFO] [stdout]  1 + # ! [allow (clippy :: all)] # ! [allow (unused)] # ! [allow (dead_code)] # ! [allow (non_camel_case_types)] # ! [allow (non_snake_case)] # [derive (Debug , Clone , PartialEq)] pub struct Array { pub Type : auto_lsp :: core :: ast :: AstNodeId < Type > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Array { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 37u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Array { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut Type = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Type , 10u16 > (& mut Type) }) ; Ok (Self { Type : Type ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Type) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Dict { pub Type : auto_lsp :: core :: ast :: AstNode < Type > , pub children : auto_lsp :: core :: ast :: AstNodeId < String > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Dict { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 38u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Dict { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut Type = Ok (None) ; ; let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Type , 10u16 > (& mut Type) ? . on_children_id (& mut children) }) ; Ok (Self { Type : Type ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Type) , } }) ? , children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (String) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Enum { pub member : Vec < auto_lsp :: core :: ast :: AstNodeId < FieldName >> , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Enum { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 33u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Enum { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut member = vec ! [] ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_vec_field_id :: < FieldName , 6u16 > (& mut member) ? . on_vec_children_id (& mut children) }) ; Ok (Self { member , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Error { pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordError > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub value : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Error { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 29u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Error { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut keyword = Ok (None) ; ; let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < KeywordError , 5u16 > (& mut keyword) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_field_id :: < Struct , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Interface { pub declaration : auto_lsp :: core :: ast :: AstNodeId < InterfaceDeclaration > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol_Error_Method_Typedef >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Interface { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 24u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Interface { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut declaration = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < InterfaceDeclaration , 2u16 > (& mut declaration) ? . on_vec_children_id (& mut children) }) ; Ok (Self { declaration : declaration ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (declaration) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct InterfaceDeclaration { pub name : auto_lsp :: core :: ast :: AstNodeId < InterfaceName > , pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordInterface > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for InterfaceDeclaration { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 27u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for InterfaceDeclaration { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut name = Ok (None) ; ; let mut keyword = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < InterfaceName , 7u16 > (& mut name) ? . on_field_id :: < KeywordInterface , 5u16 > (& mut keyword) ? . on_vec_children_id (& mut children) }) ; Ok (Self { name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Maybe { pub questionmark : auto_lsp :: core :: ast :: AstNodeId < Questionmark > , pub just : auto_lsp :: core :: ast :: AstNodeId < Type > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Maybe { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 35u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Maybe { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut questionmark = Ok (None) ; ; let mut just = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Questionmark , 9u16 > (& mut questionmark) ? . on_field_id :: < Type , 4u16 > (& mut just) }) ; Ok (Self { questionmark : questionmark ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (questionmark) , } }) ? , just : just ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (just) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Method { pub input : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub output : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordMethod > , pub arrow : auto_lsp :: core :: ast :: AstNodeId < Arrow > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Method { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 30u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Method { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut input = Ok (None) ; ; let mut output = Ok (None) ; ; let mut keyword = Ok (None) ; ; let mut arrow = Ok (None) ; ; let mut name = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Struct , 3u16 > (& mut input) ? . on_field_id :: < Struct , 8u16 > (& mut output) ? . on_field_id :: < KeywordMethod , 5u16 > (& mut keyword) ? . on_field_id :: < Arrow , 1u16 > (& mut arrow) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_vec_children_id (& mut children) }) ; Ok (Self { input : input ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (input) , } }) ? , output : output ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (output) , } }) ? , keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , arrow : arrow ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (arrow) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Struct { pub member : Vec < auto_lsp :: core :: ast :: AstNodeId < StructField >> , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Struct { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 31u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Struct { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut member = vec ! [] ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_vec_field_id :: < StructField , 6u16 > (& mut member) ? . on_vec_children_id (& mut children) }) ; Ok (Self { member , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct StructField { pub name : auto_lsp :: core :: ast :: AstNodeId < FieldName > , pub value : auto_lsp :: core :: ast :: AstNodeId < Type > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for StructField { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 32u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for StructField { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < FieldName , 7u16 > (& mut name) ? . on_field_id :: < Type , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Type { pub children : auto_lsp :: core :: ast :: AstNodeId < Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Type { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 34u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Type { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_children_id (& mut children) }) ; Ok (Self { children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Typedef { pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordType > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub value : auto_lsp :: core :: ast :: AstNodeId < Enum_Struct > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Typedef { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 28u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Typedef { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut keyword = Ok (None) ; ; let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < KeywordType , 5u16 > (& mut keyword) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_field_id :: < Enum_Struct , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Typeref { pub children : auto_lsp :: core :: ast :: AstNodeId < Name > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Typeref { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 39u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Typeref { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_children_id (& mut children) }) ; Ok (Self { children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Name) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_LeftParen { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_LeftParen { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 9u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_LeftParen { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_RightParen { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_RightParen { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 11u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_RightParen { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_Comma { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_Comma { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 10u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_Comma { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_Colon { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_Colon { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 12u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_Colon { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_LeftBracket { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_LeftBracket { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 14u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_LeftBracket { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_RightBracket { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_RightBracket { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 15u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_RightBracket { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Arrow { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Arrow { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 8u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Arrow { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Bool { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Bool { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 16u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Bool { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Comment { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Comment { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Eol { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Eol { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 3u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Eol { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct FieldName { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for FieldName { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 22u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for FieldName { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Float { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Float { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 18u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Float { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Int { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Int { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 17u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Int { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct InterfaceName { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for InterfaceName { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 23u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for InterfaceName { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordError { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordError { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 6u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordError { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordInterface { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordInterface { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 4u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordInterface { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordMethod { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordMethod { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 7u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordMethod { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordType { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordType { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 5u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordType { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Name { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Name { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 21u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Name { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Object { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Object { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 20u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Object { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Questionmark { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Questionmark { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 13u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Questionmark { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct String { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for String { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 19u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for String { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub enum Comment_Eol_Error_Method_Typedef { Comment (Comment) , Eol (Eol) , Error (Error) , Method (Method) , Typedef (Typedef) } impl auto_lsp :: core :: ast :: AstNode for Comment_Eol_Error_Method_Typedef { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16 | 3u16 | 29u16 | 30u16 | 28u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Comment (node) => node . lower () , Self :: Eol (node) => node . lower () , Self :: Error (node) => node . lower () , Self :: Method (node) => node . lower () , Self :: Typedef (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Comment (node) => node . get_id () , Self :: Eol (node) => node . get_id () , Self :: Error (node) => node . get_id () , Self :: Method (node) => node . get_id () , Self :: Typedef (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Comment (node) => node . get_parent_id () , Self :: Eol (node) => node . get_parent_id () , Self :: Error (node) => node . get_parent_id () , Self :: Method (node) => node . get_parent_id () , Self :: Typedef (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Comment (node) => node . get_range () , Self :: Eol (node) => node . get_range () , Self :: Error (node) => node . get_range () , Self :: Method (node) => node . get_range () , Self :: Typedef (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment_Eol_Error_Method_Typedef { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 2u16 => Ok (Self :: Comment (Comment :: try_from ((node , db , builder , id , parent_id)) ?)) , 3u16 => Ok (Self :: Eol (Eol :: try_from ((node , db , builder , id , parent_id)) ?)) , 29u16 => Ok (Self :: Error (Error :: try_from ((node , db , builder , id , parent_id)) ?)) , 30u16 => Ok (Self :: Method (Method :: try_from ((node , db , builder , id , parent_id)) ?)) , 28u16 => Ok (Self :: Typedef (Typedef :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Comment_Eol_Error_Method_Typedef) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { Array (Array) , Bool (Bool) , Dict (Dict) , Enum (Enum) , Float (Float) , Int (Int) , Maybe (Maybe) , Object (Object) , String (String) , Struct (Struct) , Typeref (Typeref) } impl auto_lsp :: core :: ast :: AstNode for Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 37u16 | 16u16 | 38u16 | 33u16 | 18u16 | 17u16 | 35u16 | 20u16 | 19u16 | 31u16 | 39u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Array (node) => node . lower () , Self :: Bool (node) => node . lower () , Self :: Dict (node) => node . lower () , Self :: Enum (node) => node . lower () , Self :: Float (node) => node . lower () , Self :: Int (node) => node . lower () , Self :: Maybe (node) => node . lower () , Self :: Object (node) => node . lower () , Self :: String (node) => node . lower () , Self :: Struct (node) => node . lower () , Self :: Typeref (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Array (node) => node . get_id () , Self :: Bool (node) => node . get_id () , Self :: Dict (node) => node . get_id () , Self :: Enum (node) => node . get_id () , Self :: Float (node) => node . get_id () , Self :: Int (node) => node . get_id () , Self :: Maybe (node) => node . get_id () , Self :: Object (node) => node . get_id () , Self :: String (node) => node . get_id () , Self :: Struct (node) => node . get_id () , Self :: Typeref (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Array (node) => node . get_parent_id () , Self :: Bool (node) => node . get_parent_id () , Self :: Dict (node) => node . get_parent_id () , Self :: Enum (node) => node . get_parent_id () , Self :: Float (node) => node . get_parent_id () , Self :: Int (node) => node . get_parent_id () , Self :: Maybe (node) => node . get_parent_id () , Self :: Object (node) => node . get_parent_id () , Self :: String (node) => node . get_parent_id () , Self :: Struct (node) => node . get_parent_id () , Self :: Typeref (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Array (node) => node . get_range () , Self :: Bool (node) => node . get_range () , Self :: Dict (node) => node . get_range () , Self :: Enum (node) => node . get_range () , Self :: Float (node) => node . get_range () , Self :: Int (node) => node . get_range () , Self :: Maybe (node) => node . get_range () , Self :: Object (node) => node . get_range () , Self :: String (node) => node . get_range () , Self :: Struct (node) => node . get_range () , Self :: Typeref (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 37u16 => Ok (Self :: Array (Array :: try_from ((node , db , builder , id , parent_id)) ?)) , 16u16 => Ok (Self :: Bool (Bool :: try_from ((node , db , builder , id , parent_id)) ?)) , 38u16 => Ok (Self :: Dict (Dict :: try_from ((node , db , builder , id , parent_id)) ?)) , 33u16 => Ok (Self :: Enum (Enum :: try_from ((node , db , builder , id , parent_id)) ?)) , 18u16 => Ok (Self :: Float (Float :: try_from ((node , db , builder , id , parent_id)) ?)) , 17u16 => Ok (Self :: Int (Int :: try_from ((node , db , builder , id , parent_id)) ?)) , 35u16 => Ok (Self :: Maybe (Maybe :: try_from ((node , db , builder , id , parent_id)) ?)) , 20u16 => Ok (Self :: Object (Object :: try_from ((node , db , builder , id , parent_id)) ?)) , 19u16 => Ok (Self :: String (String :: try_from ((node , db , builder , id , parent_id)) ?)) , 31u16 => Ok (Self :: Struct (Struct :: try_from ((node , db , builder , id , parent_id)) ?)) , 39u16 => Ok (Self :: Typeref (Typeref :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Enum_Struct { Enum (Enum) , Struct (Struct) } impl auto_lsp :: core :: ast :: AstNode for Enum_Struct { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 33u16 | 31u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Enum (node) => node . lower () , Self :: Struct (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Enum (node) => node . get_id () , Self :: Struct (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Enum (node) => node . get_parent_id () , Self :: Struct (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Enum (node) => node . get_range () , Self :: Struct (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Enum_Struct { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 33u16 => Ok (Self :: Enum (Enum :: try_from ((node , db , builder , id , parent_id)) ?)) , 31u16 => Ok (Self :: Struct (Struct :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Enum_Struct) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Comment_Eol { Comment (Comment) , Eol (Eol) } impl auto_lsp :: core :: ast :: AstNode for Comment_Eol { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16 | 3u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Comment (node) => node . lower () , Self :: Eol (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Comment (node) => node . get_id () , Self :: Eol (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Comment (node) => node . get_parent_id () , Self :: Eol (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Comment (node) => node . get_range () , Self :: Eol (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment_Eol { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 2u16 => Ok (Self :: Comment (Comment :: try_from ((node , db , builder , id , parent_id)) ?)) , 3u16 => Ok (Self :: Eol (Eol :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Comment_Eol) , }) } } }
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `AstNodeId` in module `auto_lsp::core::ast`
[INFO] [stdout]   --> src/ast.rs:1:1615
[INFO] [stdout]    |
[INFO] [stdout]  1 | ...NodeId < Type > , pub children : auto_lsp :: core :: ast :: AstNodeId < String > , _range : auto_lsp :: tree_sitter :: Range , _i...
[INFO] [stdout]    |                                                                ^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]   ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/auto-lsp-core-0.7.0/src/ast/node.rs:26:1
[INFO] [stdout]    |
[INFO] [stdout] 26 | pub trait AstNode: std::fmt::Debug + Send + Sync + DowncastSync {
[INFO] [stdout]    | --------------------------------------------------------------- similarly named trait `AstNode` defined here
[INFO] [stdout]    |
[INFO] [stdout] help: a trait with a similar name exists
[INFO] [stdout]    |
[INFO] [stdout]  1 - # ! [allow (clippy :: all)] # ! [allow (unused)] # ! [allow (dead_code)] # ! [allow (non_camel_case_types)] # ! [allow (non_snake_case)] # [derive (Debug , Clone , PartialEq)] pub struct Array { pub Type : auto_lsp :: core :: ast :: AstNodeId < Type > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Array { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 37u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Array { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut Type = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Type , 10u16 > (& mut Type) }) ; Ok (Self { Type : Type ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Type) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Dict { pub Type : auto_lsp :: core :: ast :: AstNodeId < Type > , pub children : auto_lsp :: core :: ast :: AstNodeId < String > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Dict { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 38u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Dict { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut Type = Ok (None) ; ; let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Type , 10u16 > (& mut Type) ? . on_children_id (& mut children) }) ; Ok (Self { Type : Type ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Type) , } }) ? , children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (String) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Enum { pub member : Vec < auto_lsp :: core :: ast :: AstNodeId < FieldName >> , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Enum { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 33u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Enum { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut member = vec ! [] ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_vec_field_id :: < FieldName , 6u16 > (& mut member) ? . on_vec_children_id (& mut children) }) ; Ok (Self { member , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Error { pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordError > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub value : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Error { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 29u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Error { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut keyword = Ok (None) ; ; let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < KeywordError , 5u16 > (& mut keyword) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_field_id :: < Struct , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Interface { pub declaration : auto_lsp :: core :: ast :: AstNodeId < InterfaceDeclaration > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol_Error_Method_Typedef >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Interface { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 24u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Interface { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut declaration = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < InterfaceDeclaration , 2u16 > (& mut declaration) ? . on_vec_children_id (& mut children) }) ; Ok (Self { declaration : declaration ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (declaration) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct InterfaceDeclaration { pub name : auto_lsp :: core :: ast :: AstNodeId < InterfaceName > , pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordInterface > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for InterfaceDeclaration { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 27u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for InterfaceDeclaration { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut name = Ok (None) ; ; let mut keyword = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < InterfaceName , 7u16 > (& mut name) ? . on_field_id :: < KeywordInterface , 5u16 > (& mut keyword) ? . on_vec_children_id (& mut children) }) ; Ok (Self { name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Maybe { pub questionmark : auto_lsp :: core :: ast :: AstNodeId < Questionmark > , pub just : auto_lsp :: core :: ast :: AstNodeId < Type > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Maybe { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 35u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Maybe { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut questionmark = Ok (None) ; ; let mut just = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Questionmark , 9u16 > (& mut questionmark) ? . on_field_id :: < Type , 4u16 > (& mut just) }) ; Ok (Self { questionmark : questionmark ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (questionmark) , } }) ? , just : just ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (just) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Method { pub input : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub output : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordMethod > , pub arrow : auto_lsp :: core :: ast :: AstNodeId < Arrow > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Method { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 30u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Method { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut input = Ok (None) ; ; let mut output = Ok (None) ; ; let mut keyword = Ok (None) ; ; let mut arrow = Ok (None) ; ; let mut name = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Struct , 3u16 > (& mut input) ? . on_field_id :: < Struct , 8u16 > (& mut output) ? . on_field_id :: < KeywordMethod , 5u16 > (& mut keyword) ? . on_field_id :: < Arrow , 1u16 > (& mut arrow) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_vec_children_id (& mut children) }) ; Ok (Self { input : input ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (input) , } }) ? , output : output ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (output) , } }) ? , keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , arrow : arrow ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (arrow) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Struct { pub member : Vec < auto_lsp :: core :: ast :: AstNodeId < StructField >> , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Struct { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 31u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Struct { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut member = vec ! [] ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_vec_field_id :: < StructField , 6u16 > (& mut member) ? . on_vec_children_id (& mut children) }) ; Ok (Self { member , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct StructField { pub name : auto_lsp :: core :: ast :: AstNodeId < FieldName > , pub value : auto_lsp :: core :: ast :: AstNodeId < Type > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for StructField { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 32u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for StructField { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < FieldName , 7u16 > (& mut name) ? . on_field_id :: < Type , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Type { pub children : auto_lsp :: core :: ast :: AstNodeId < Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Type { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 34u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Type { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_children_id (& mut children) }) ; Ok (Self { children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Typedef { pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordType > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub value : auto_lsp :: core :: ast :: AstNodeId < Enum_Struct > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Typedef { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 28u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Typedef { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut keyword = Ok (None) ; ; let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < KeywordType , 5u16 > (& mut keyword) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_field_id :: < Enum_Struct , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Typeref { pub children : auto_lsp :: core :: ast :: AstNodeId < Name > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Typeref { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 39u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Typeref { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_children_id (& mut children) }) ; Ok (Self { children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Name) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_LeftParen { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_LeftParen { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 9u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_LeftParen { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_RightParen { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_RightParen { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 11u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_RightParen { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_Comma { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_Comma { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 10u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_Comma { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_Colon { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_Colon { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 12u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_Colon { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_LeftBracket { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_LeftBracket { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 14u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_LeftBracket { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_RightBracket { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_RightBracket { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 15u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_RightBracket { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Arrow { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Arrow { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 8u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Arrow { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Bool { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Bool { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 16u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Bool { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Comment { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Comment { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Eol { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Eol { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 3u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Eol { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct FieldName { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for FieldName { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 22u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for FieldName { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Float { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Float { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 18u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Float { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Int { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Int { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 17u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Int { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct InterfaceName { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for InterfaceName { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 23u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for InterfaceName { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordError { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordError { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 6u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordError { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordInterface { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordInterface { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 4u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordInterface { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordMethod { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordMethod { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 7u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordMethod { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordType { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordType { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 5u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordType { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Name { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Name { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 21u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Name { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Object { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Object { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 20u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Object { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Questionmark { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Questionmark { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 13u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Questionmark { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct String { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for String { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 19u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for String { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub enum Comment_Eol_Error_Method_Typedef { Comment (Comment) , Eol (Eol) , Error (Error) , Method (Method) , Typedef (Typedef) } impl auto_lsp :: core :: ast :: AstNode for Comment_Eol_Error_Method_Typedef { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16 | 3u16 | 29u16 | 30u16 | 28u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Comment (node) => node . lower () , Self :: Eol (node) => node . lower () , Self :: Error (node) => node . lower () , Self :: Method (node) => node . lower () , Self :: Typedef (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Comment (node) => node . get_id () , Self :: Eol (node) => node . get_id () , Self :: Error (node) => node . get_id () , Self :: Method (node) => node . get_id () , Self :: Typedef (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Comment (node) => node . get_parent_id () , Self :: Eol (node) => node . get_parent_id () , Self :: Error (node) => node . get_parent_id () , Self :: Method (node) => node . get_parent_id () , Self :: Typedef (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Comment (node) => node . get_range () , Self :: Eol (node) => node . get_range () , Self :: Error (node) => node . get_range () , Self :: Method (node) => node . get_range () , Self :: Typedef (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment_Eol_Error_Method_Typedef { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 2u16 => Ok (Self :: Comment (Comment :: try_from ((node , db , builder , id , parent_id)) ?)) , 3u16 => Ok (Self :: Eol (Eol :: try_from ((node , db , builder , id , parent_id)) ?)) , 29u16 => Ok (Self :: Error (Error :: try_from ((node , db , builder , id , parent_id)) ?)) , 30u16 => Ok (Self :: Method (Method :: try_from ((node , db , builder , id , parent_id)) ?)) , 28u16 => Ok (Self :: Typedef (Typedef :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Comment_Eol_Error_Method_Typedef) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { Array (Array) , Bool (Bool) , Dict (Dict) , Enum (Enum) , Float (Float) , Int (Int) , Maybe (Maybe) , Object (Object) , String (String) , Struct (Struct) , Typeref (Typeref) } impl auto_lsp :: core :: ast :: AstNode for Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 37u16 | 16u16 | 38u16 | 33u16 | 18u16 | 17u16 | 35u16 | 20u16 | 19u16 | 31u16 | 39u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Array (node) => node . lower () , Self :: Bool (node) => node . lower () , Self :: Dict (node) => node . lower () , Self :: Enum (node) => node . lower () , Self :: Float (node) => node . lower () , Self :: Int (node) => node . lower () , Self :: Maybe (node) => node . lower () , Self :: Object (node) => node . lower () , Self :: String (node) => node . lower () , Self :: Struct (node) => node . lower () , Self :: Typeref (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Array (node) => node . get_id () , Self :: Bool (node) => node . get_id () , Self :: Dict (node) => node . get_id () , Self :: Enum (node) => node . get_id () , Self :: Float (node) => node . get_id () , Self :: Int (node) => node . get_id () , Self :: Maybe (node) => node . get_id () , Self :: Object (node) => node . get_id () , Self :: String (node) => node . get_id () , Self :: Struct (node) => node . get_id () , Self :: Typeref (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Array (node) => node . get_parent_id () , Self :: Bool (node) => node . get_parent_id () , Self :: Dict (node) => node . get_parent_id () , Self :: Enum (node) => node . get_parent_id () , Self :: Float (node) => node . get_parent_id () , Self :: Int (node) => node . get_parent_id () , Self :: Maybe (node) => node . get_parent_id () , Self :: Object (node) => node . get_parent_id () , Self :: String (node) => node . get_parent_id () , Self :: Struct (node) => node . get_parent_id () , Self :: Typeref (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Array (node) => node . get_range () , Self :: Bool (node) => node . get_range () , Self :: Dict (node) => node . get_range () , Self :: Enum (node) => node . get_range () , Self :: Float (node) => node . get_range () , Self :: Int (node) => node . get_range () , Self :: Maybe (node) => node . get_range () , Self :: Object (node) => node . get_range () , Self :: String (node) => node . get_range () , Self :: Struct (node) => node . get_range () , Self :: Typeref (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 37u16 => Ok (Self :: Array (Array :: try_from ((node , db , builder , id , parent_id)) ?)) , 16u16 => Ok (Self :: Bool (Bool :: try_from ((node , db , builder , id , parent_id)) ?)) , 38u16 => Ok (Self :: Dict (Dict :: try_from ((node , db , builder , id , parent_id)) ?)) , 33u16 => Ok (Self :: Enum (Enum :: try_from ((node , db , builder , id , parent_id)) ?)) , 18u16 => Ok (Self :: Float (Float :: try_from ((node , db , builder , id , parent_id)) ?)) , 17u16 => Ok (Self :: Int (Int :: try_from ((node , db , builder , id , parent_id)) ?)) , 35u16 => Ok (Self :: Maybe (Maybe :: try_from ((node , db , builder , id , parent_id)) ?)) , 20u16 => Ok (Self :: Object (Object :: try_from ((node , db , builder , id , parent_id)) ?)) , 19u16 => Ok (Self :: String (String :: try_from ((node , db , builder , id , parent_id)) ?)) , 31u16 => Ok (Self :: Struct (Struct :: try_from ((node , db , builder , id , parent_id)) ?)) , 39u16 => Ok (Self :: Typeref (Typeref :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Enum_Struct { Enum (Enum) , Struct (Struct) } impl auto_lsp :: core :: ast :: AstNode for Enum_Struct { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 33u16 | 31u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Enum (node) => node . lower () , Self :: Struct (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Enum (node) => node . get_id () , Self :: Struct (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Enum (node) => node . get_parent_id () , Self :: Struct (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Enum (node) => node . get_range () , Self :: Struct (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Enum_Struct { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 33u16 => Ok (Self :: Enum (Enum :: try_from ((node , db , builder , id , parent_id)) ?)) , 31u16 => Ok (Self :: Struct (Struct :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Enum_Struct) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Comment_Eol { Comment (Comment) , Eol (Eol) } impl auto_lsp :: core :: ast :: AstNode for Comment_Eol { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16 | 3u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Comment (node) => node . lower () , Self :: Eol (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Comment (node) => node . get_id () , Self :: Eol (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Comment (node) => node . get_parent_id () , Self :: Eol (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Comment (node) => node . get_range () , Self :: Eol (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment_Eol { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 2u16 => Ok (Self :: Comment (Comment :: try_from ((node , db , builder , id , parent_id)) ?)) , 3u16 => Ok (Self :: Eol (Eol :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Comment_Eol) , }) } } }
[INFO] [stdout]  1 + # ! [allow (clippy :: all)] # ! [allow (unused)] # ! [allow (dead_code)] # ! [allow (non_camel_case_types)] # ! [allow (non_snake_case)] # [derive (Debug , Clone , PartialEq)] pub struct Array { pub Type : auto_lsp :: core :: ast :: AstNodeId < Type > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Array { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 37u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Array { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut Type = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Type , 10u16 > (& mut Type) }) ; Ok (Self { Type : Type ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Type) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Dict { pub Type : auto_lsp :: core :: ast :: AstNodeId < Type > , pub children : auto_lsp :: core :: ast :: AstNode < String > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Dict { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 38u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Dict { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut Type = Ok (None) ; ; let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Type , 10u16 > (& mut Type) ? . on_children_id (& mut children) }) ; Ok (Self { Type : Type ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Type) , } }) ? , children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (String) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Enum { pub member : Vec < auto_lsp :: core :: ast :: AstNodeId < FieldName >> , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Enum { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 33u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Enum { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut member = vec ! [] ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_vec_field_id :: < FieldName , 6u16 > (& mut member) ? . on_vec_children_id (& mut children) }) ; Ok (Self { member , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Error { pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordError > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub value : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Error { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 29u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Error { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut keyword = Ok (None) ; ; let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < KeywordError , 5u16 > (& mut keyword) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_field_id :: < Struct , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Interface { pub declaration : auto_lsp :: core :: ast :: AstNodeId < InterfaceDeclaration > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol_Error_Method_Typedef >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Interface { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 24u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Interface { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut declaration = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < InterfaceDeclaration , 2u16 > (& mut declaration) ? . on_vec_children_id (& mut children) }) ; Ok (Self { declaration : declaration ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (declaration) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct InterfaceDeclaration { pub name : auto_lsp :: core :: ast :: AstNodeId < InterfaceName > , pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordInterface > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for InterfaceDeclaration { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 27u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for InterfaceDeclaration { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut name = Ok (None) ; ; let mut keyword = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < InterfaceName , 7u16 > (& mut name) ? . on_field_id :: < KeywordInterface , 5u16 > (& mut keyword) ? . on_vec_children_id (& mut children) }) ; Ok (Self { name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Maybe { pub questionmark : auto_lsp :: core :: ast :: AstNodeId < Questionmark > , pub just : auto_lsp :: core :: ast :: AstNodeId < Type > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Maybe { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 35u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Maybe { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut questionmark = Ok (None) ; ; let mut just = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Questionmark , 9u16 > (& mut questionmark) ? . on_field_id :: < Type , 4u16 > (& mut just) }) ; Ok (Self { questionmark : questionmark ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (questionmark) , } }) ? , just : just ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (just) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Method { pub input : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub output : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordMethod > , pub arrow : auto_lsp :: core :: ast :: AstNodeId < Arrow > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Method { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 30u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Method { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut input = Ok (None) ; ; let mut output = Ok (None) ; ; let mut keyword = Ok (None) ; ; let mut arrow = Ok (None) ; ; let mut name = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Struct , 3u16 > (& mut input) ? . on_field_id :: < Struct , 8u16 > (& mut output) ? . on_field_id :: < KeywordMethod , 5u16 > (& mut keyword) ? . on_field_id :: < Arrow , 1u16 > (& mut arrow) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_vec_children_id (& mut children) }) ; Ok (Self { input : input ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (input) , } }) ? , output : output ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (output) , } }) ? , keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , arrow : arrow ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (arrow) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Struct { pub member : Vec < auto_lsp :: core :: ast :: AstNodeId < StructField >> , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Struct { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 31u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Struct { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut member = vec ! [] ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_vec_field_id :: < StructField , 6u16 > (& mut member) ? . on_vec_children_id (& mut children) }) ; Ok (Self { member , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct StructField { pub name : auto_lsp :: core :: ast :: AstNodeId < FieldName > , pub value : auto_lsp :: core :: ast :: AstNodeId < Type > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for StructField { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 32u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for StructField { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < FieldName , 7u16 > (& mut name) ? . on_field_id :: < Type , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Type { pub children : auto_lsp :: core :: ast :: AstNodeId < Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Type { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 34u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Type { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_children_id (& mut children) }) ; Ok (Self { children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Typedef { pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordType > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub value : auto_lsp :: core :: ast :: AstNodeId < Enum_Struct > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Typedef { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 28u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Typedef { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut keyword = Ok (None) ; ; let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < KeywordType , 5u16 > (& mut keyword) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_field_id :: < Enum_Struct , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Typeref { pub children : auto_lsp :: core :: ast :: AstNodeId < Name > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Typeref { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 39u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Typeref { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_children_id (& mut children) }) ; Ok (Self { children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Name) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_LeftParen { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_LeftParen { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 9u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_LeftParen { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_RightParen { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_RightParen { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 11u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_RightParen { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_Comma { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_Comma { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 10u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_Comma { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_Colon { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_Colon { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 12u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_Colon { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_LeftBracket { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_LeftBracket { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 14u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_LeftBracket { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_RightBracket { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_RightBracket { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 15u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_RightBracket { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Arrow { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Arrow { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 8u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Arrow { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Bool { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Bool { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 16u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Bool { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Comment { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Comment { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Eol { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Eol { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 3u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Eol { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct FieldName { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for FieldName { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 22u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for FieldName { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Float { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Float { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 18u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Float { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Int { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Int { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 17u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Int { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct InterfaceName { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for InterfaceName { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 23u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for InterfaceName { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordError { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordError { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 6u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordError { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordInterface { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordInterface { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 4u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordInterface { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordMethod { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordMethod { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 7u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordMethod { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordType { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordType { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 5u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordType { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Name { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Name { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 21u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Name { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Object { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Object { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 20u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Object { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Questionmark { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Questionmark { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 13u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Questionmark { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct String { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for String { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 19u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for String { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub enum Comment_Eol_Error_Method_Typedef { Comment (Comment) , Eol (Eol) , Error (Error) , Method (Method) , Typedef (Typedef) } impl auto_lsp :: core :: ast :: AstNode for Comment_Eol_Error_Method_Typedef { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16 | 3u16 | 29u16 | 30u16 | 28u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Comment (node) => node . lower () , Self :: Eol (node) => node . lower () , Self :: Error (node) => node . lower () , Self :: Method (node) => node . lower () , Self :: Typedef (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Comment (node) => node . get_id () , Self :: Eol (node) => node . get_id () , Self :: Error (node) => node . get_id () , Self :: Method (node) => node . get_id () , Self :: Typedef (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Comment (node) => node . get_parent_id () , Self :: Eol (node) => node . get_parent_id () , Self :: Error (node) => node . get_parent_id () , Self :: Method (node) => node . get_parent_id () , Self :: Typedef (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Comment (node) => node . get_range () , Self :: Eol (node) => node . get_range () , Self :: Error (node) => node . get_range () , Self :: Method (node) => node . get_range () , Self :: Typedef (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment_Eol_Error_Method_Typedef { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 2u16 => Ok (Self :: Comment (Comment :: try_from ((node , db , builder , id , parent_id)) ?)) , 3u16 => Ok (Self :: Eol (Eol :: try_from ((node , db , builder , id , parent_id)) ?)) , 29u16 => Ok (Self :: Error (Error :: try_from ((node , db , builder , id , parent_id)) ?)) , 30u16 => Ok (Self :: Method (Method :: try_from ((node , db , builder , id , parent_id)) ?)) , 28u16 => Ok (Self :: Typedef (Typedef :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Comment_Eol_Error_Method_Typedef) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { Array (Array) , Bool (Bool) , Dict (Dict) , Enum (Enum) , Float (Float) , Int (Int) , Maybe (Maybe) , Object (Object) , String (String) , Struct (Struct) , Typeref (Typeref) } impl auto_lsp :: core :: ast :: AstNode for Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 37u16 | 16u16 | 38u16 | 33u16 | 18u16 | 17u16 | 35u16 | 20u16 | 19u16 | 31u16 | 39u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Array (node) => node . lower () , Self :: Bool (node) => node . lower () , Self :: Dict (node) => node . lower () , Self :: Enum (node) => node . lower () , Self :: Float (node) => node . lower () , Self :: Int (node) => node . lower () , Self :: Maybe (node) => node . lower () , Self :: Object (node) => node . lower () , Self :: String (node) => node . lower () , Self :: Struct (node) => node . lower () , Self :: Typeref (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Array (node) => node . get_id () , Self :: Bool (node) => node . get_id () , Self :: Dict (node) => node . get_id () , Self :: Enum (node) => node . get_id () , Self :: Float (node) => node . get_id () , Self :: Int (node) => node . get_id () , Self :: Maybe (node) => node . get_id () , Self :: Object (node) => node . get_id () , Self :: String (node) => node . get_id () , Self :: Struct (node) => node . get_id () , Self :: Typeref (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Array (node) => node . get_parent_id () , Self :: Bool (node) => node . get_parent_id () , Self :: Dict (node) => node . get_parent_id () , Self :: Enum (node) => node . get_parent_id () , Self :: Float (node) => node . get_parent_id () , Self :: Int (node) => node . get_parent_id () , Self :: Maybe (node) => node . get_parent_id () , Self :: Object (node) => node . get_parent_id () , Self :: String (node) => node . get_parent_id () , Self :: Struct (node) => node . get_parent_id () , Self :: Typeref (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Array (node) => node . get_range () , Self :: Bool (node) => node . get_range () , Self :: Dict (node) => node . get_range () , Self :: Enum (node) => node . get_range () , Self :: Float (node) => node . get_range () , Self :: Int (node) => node . get_range () , Self :: Maybe (node) => node . get_range () , Self :: Object (node) => node . get_range () , Self :: String (node) => node . get_range () , Self :: Struct (node) => node . get_range () , Self :: Typeref (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 37u16 => Ok (Self :: Array (Array :: try_from ((node , db , builder , id , parent_id)) ?)) , 16u16 => Ok (Self :: Bool (Bool :: try_from ((node , db , builder , id , parent_id)) ?)) , 38u16 => Ok (Self :: Dict (Dict :: try_from ((node , db , builder , id , parent_id)) ?)) , 33u16 => Ok (Self :: Enum (Enum :: try_from ((node , db , builder , id , parent_id)) ?)) , 18u16 => Ok (Self :: Float (Float :: try_from ((node , db , builder , id , parent_id)) ?)) , 17u16 => Ok (Self :: Int (Int :: try_from ((node , db , builder , id , parent_id)) ?)) , 35u16 => Ok (Self :: Maybe (Maybe :: try_from ((node , db , builder , id , parent_id)) ?)) , 20u16 => Ok (Self :: Object (Object :: try_from ((node , db , builder , id , parent_id)) ?)) , 19u16 => Ok (Self :: String (String :: try_from ((node , db , builder , id , parent_id)) ?)) , 31u16 => Ok (Self :: Struct (Struct :: try_from ((node , db , builder , id , parent_id)) ?)) , 39u16 => Ok (Self :: Typeref (Typeref :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Enum_Struct { Enum (Enum) , Struct (Struct) } impl auto_lsp :: core :: ast :: AstNode for Enum_Struct { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 33u16 | 31u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Enum (node) => node . lower () , Self :: Struct (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Enum (node) => node . get_id () , Self :: Struct (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Enum (node) => node . get_parent_id () , Self :: Struct (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Enum (node) => node . get_range () , Self :: Struct (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Enum_Struct { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 33u16 => Ok (Self :: Enum (Enum :: try_from ((node , db , builder , id , parent_id)) ?)) , 31u16 => Ok (Self :: Struct (Struct :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Enum_Struct) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Comment_Eol { Comment (Comment) , Eol (Eol) } impl auto_lsp :: core :: ast :: AstNode for Comment_Eol { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16 | 3u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Comment (node) => node . lower () , Self :: Eol (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Comment (node) => node . get_id () , Self :: Eol (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Comment (node) => node . get_parent_id () , Self :: Eol (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Comment (node) => node . get_range () , Self :: Eol (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment_Eol { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 2u16 => Ok (Self :: Comment (Comment :: try_from ((node , db , builder , id , parent_id)) ?)) , 3u16 => Ok (Self :: Eol (Eol :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Comment_Eol) , }) } } }
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `AstNodeId` in module `auto_lsp::core::ast`
[INFO] [stdout]   --> src/ast.rs:1:3210
[INFO] [stdout]    |
[INFO] [stdout]  1 | ...struct Enum { pub member : Vec < auto_lsp :: core :: ast :: AstNodeId < FieldName >> , pub children : Vec < auto_lsp :: core :: a...
[INFO] [stdout]    |                                                                ^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]   ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/auto-lsp-core-0.7.0/src/ast/node.rs:26:1
[INFO] [stdout]    |
[INFO] [stdout] 26 | pub trait AstNode: std::fmt::Debug + Send + Sync + DowncastSync {
[INFO] [stdout]    | --------------------------------------------------------------- similarly named trait `AstNode` defined here
[INFO] [stdout]    |
[INFO] [stdout] help: a trait with a similar name exists
[INFO] [stdout]    |
[INFO] [stdout]  1 - # ! [allow (clippy :: all)] # ! [allow (unused)] # ! [allow (dead_code)] # ! [allow (non_camel_case_types)] # ! [allow (non_snake_case)] # [derive (Debug , Clone , PartialEq)] pub struct Array { pub Type : auto_lsp :: core :: ast :: AstNodeId < Type > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Array { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 37u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Array { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut Type = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Type , 10u16 > (& mut Type) }) ; Ok (Self { Type : Type ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Type) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Dict { pub Type : auto_lsp :: core :: ast :: AstNodeId < Type > , pub children : auto_lsp :: core :: ast :: AstNodeId < String > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Dict { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 38u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Dict { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut Type = Ok (None) ; ; let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Type , 10u16 > (& mut Type) ? . on_children_id (& mut children) }) ; Ok (Self { Type : Type ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Type) , } }) ? , children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (String) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Enum { pub member : Vec < auto_lsp :: core :: ast :: AstNodeId < FieldName >> , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Enum { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 33u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Enum { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut member = vec ! [] ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_vec_field_id :: < FieldName , 6u16 > (& mut member) ? . on_vec_children_id (& mut children) }) ; Ok (Self { member , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Error { pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordError > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub value : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Error { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 29u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Error { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut keyword = Ok (None) ; ; let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < KeywordError , 5u16 > (& mut keyword) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_field_id :: < Struct , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Interface { pub declaration : auto_lsp :: core :: ast :: AstNodeId < InterfaceDeclaration > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol_Error_Method_Typedef >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Interface { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 24u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Interface { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut declaration = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < InterfaceDeclaration , 2u16 > (& mut declaration) ? . on_vec_children_id (& mut children) }) ; Ok (Self { declaration : declaration ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (declaration) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct InterfaceDeclaration { pub name : auto_lsp :: core :: ast :: AstNodeId < InterfaceName > , pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordInterface > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for InterfaceDeclaration { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 27u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for InterfaceDeclaration { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut name = Ok (None) ; ; let mut keyword = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < InterfaceName , 7u16 > (& mut name) ? . on_field_id :: < KeywordInterface , 5u16 > (& mut keyword) ? . on_vec_children_id (& mut children) }) ; Ok (Self { name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Maybe { pub questionmark : auto_lsp :: core :: ast :: AstNodeId < Questionmark > , pub just : auto_lsp :: core :: ast :: AstNodeId < Type > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Maybe { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 35u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Maybe { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut questionmark = Ok (None) ; ; let mut just = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Questionmark , 9u16 > (& mut questionmark) ? . on_field_id :: < Type , 4u16 > (& mut just) }) ; Ok (Self { questionmark : questionmark ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (questionmark) , } }) ? , just : just ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (just) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Method { pub input : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub output : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordMethod > , pub arrow : auto_lsp :: core :: ast :: AstNodeId < Arrow > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Method { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 30u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Method { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut input = Ok (None) ; ; let mut output = Ok (None) ; ; let mut keyword = Ok (None) ; ; let mut arrow = Ok (None) ; ; let mut name = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Struct , 3u16 > (& mut input) ? . on_field_id :: < Struct , 8u16 > (& mut output) ? . on_field_id :: < KeywordMethod , 5u16 > (& mut keyword) ? . on_field_id :: < Arrow , 1u16 > (& mut arrow) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_vec_children_id (& mut children) }) ; Ok (Self { input : input ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (input) , } }) ? , output : output ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (output) , } }) ? , keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , arrow : arrow ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (arrow) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Struct { pub member : Vec < auto_lsp :: core :: ast :: AstNodeId < StructField >> , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Struct { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 31u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Struct { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut member = vec ! [] ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_vec_field_id :: < StructField , 6u16 > (& mut member) ? . on_vec_children_id (& mut children) }) ; Ok (Self { member , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct StructField { pub name : auto_lsp :: core :: ast :: AstNodeId < FieldName > , pub value : auto_lsp :: core :: ast :: AstNodeId < Type > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for StructField { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 32u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for StructField { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < FieldName , 7u16 > (& mut name) ? . on_field_id :: < Type , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Type { pub children : auto_lsp :: core :: ast :: AstNodeId < Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Type { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 34u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Type { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_children_id (& mut children) }) ; Ok (Self { children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Typedef { pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordType > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub value : auto_lsp :: core :: ast :: AstNodeId < Enum_Struct > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Typedef { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 28u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Typedef { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut keyword = Ok (None) ; ; let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < KeywordType , 5u16 > (& mut keyword) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_field_id :: < Enum_Struct , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Typeref { pub children : auto_lsp :: core :: ast :: AstNodeId < Name > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Typeref { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 39u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Typeref { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_children_id (& mut children) }) ; Ok (Self { children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Name) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_LeftParen { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_LeftParen { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 9u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_LeftParen { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_RightParen { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_RightParen { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 11u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_RightParen { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_Comma { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_Comma { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 10u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_Comma { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_Colon { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_Colon { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 12u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_Colon { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_LeftBracket { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_LeftBracket { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 14u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_LeftBracket { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_RightBracket { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_RightBracket { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 15u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_RightBracket { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Arrow { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Arrow { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 8u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Arrow { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Bool { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Bool { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 16u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Bool { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Comment { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Comment { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Eol { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Eol { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 3u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Eol { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct FieldName { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for FieldName { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 22u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for FieldName { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Float { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Float { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 18u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Float { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Int { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Int { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 17u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Int { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct InterfaceName { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for InterfaceName { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 23u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for InterfaceName { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordError { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordError { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 6u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordError { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordInterface { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordInterface { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 4u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordInterface { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordMethod { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordMethod { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 7u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordMethod { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordType { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordType { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 5u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordType { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Name { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Name { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 21u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Name { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Object { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Object { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 20u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Object { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Questionmark { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Questionmark { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 13u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Questionmark { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct String { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for String { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 19u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for String { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub enum Comment_Eol_Error_Method_Typedef { Comment (Comment) , Eol (Eol) , Error (Error) , Method (Method) , Typedef (Typedef) } impl auto_lsp :: core :: ast :: AstNode for Comment_Eol_Error_Method_Typedef { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16 | 3u16 | 29u16 | 30u16 | 28u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Comment (node) => node . lower () , Self :: Eol (node) => node . lower () , Self :: Error (node) => node . lower () , Self :: Method (node) => node . lower () , Self :: Typedef (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Comment (node) => node . get_id () , Self :: Eol (node) => node . get_id () , Self :: Error (node) => node . get_id () , Self :: Method (node) => node . get_id () , Self :: Typedef (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Comment (node) => node . get_parent_id () , Self :: Eol (node) => node . get_parent_id () , Self :: Error (node) => node . get_parent_id () , Self :: Method (node) => node . get_parent_id () , Self :: Typedef (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Comment (node) => node . get_range () , Self :: Eol (node) => node . get_range () , Self :: Error (node) => node . get_range () , Self :: Method (node) => node . get_range () , Self :: Typedef (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment_Eol_Error_Method_Typedef { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 2u16 => Ok (Self :: Comment (Comment :: try_from ((node , db , builder , id , parent_id)) ?)) , 3u16 => Ok (Self :: Eol (Eol :: try_from ((node , db , builder , id , parent_id)) ?)) , 29u16 => Ok (Self :: Error (Error :: try_from ((node , db , builder , id , parent_id)) ?)) , 30u16 => Ok (Self :: Method (Method :: try_from ((node , db , builder , id , parent_id)) ?)) , 28u16 => Ok (Self :: Typedef (Typedef :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Comment_Eol_Error_Method_Typedef) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { Array (Array) , Bool (Bool) , Dict (Dict) , Enum (Enum) , Float (Float) , Int (Int) , Maybe (Maybe) , Object (Object) , String (String) , Struct (Struct) , Typeref (Typeref) } impl auto_lsp :: core :: ast :: AstNode for Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 37u16 | 16u16 | 38u16 | 33u16 | 18u16 | 17u16 | 35u16 | 20u16 | 19u16 | 31u16 | 39u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Array (node) => node . lower () , Self :: Bool (node) => node . lower () , Self :: Dict (node) => node . lower () , Self :: Enum (node) => node . lower () , Self :: Float (node) => node . lower () , Self :: Int (node) => node . lower () , Self :: Maybe (node) => node . lower () , Self :: Object (node) => node . lower () , Self :: String (node) => node . lower () , Self :: Struct (node) => node . lower () , Self :: Typeref (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Array (node) => node . get_id () , Self :: Bool (node) => node . get_id () , Self :: Dict (node) => node . get_id () , Self :: Enum (node) => node . get_id () , Self :: Float (node) => node . get_id () , Self :: Int (node) => node . get_id () , Self :: Maybe (node) => node . get_id () , Self :: Object (node) => node . get_id () , Self :: String (node) => node . get_id () , Self :: Struct (node) => node . get_id () , Self :: Typeref (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Array (node) => node . get_parent_id () , Self :: Bool (node) => node . get_parent_id () , Self :: Dict (node) => node . get_parent_id () , Self :: Enum (node) => node . get_parent_id () , Self :: Float (node) => node . get_parent_id () , Self :: Int (node) => node . get_parent_id () , Self :: Maybe (node) => node . get_parent_id () , Self :: Object (node) => node . get_parent_id () , Self :: String (node) => node . get_parent_id () , Self :: Struct (node) => node . get_parent_id () , Self :: Typeref (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Array (node) => node . get_range () , Self :: Bool (node) => node . get_range () , Self :: Dict (node) => node . get_range () , Self :: Enum (node) => node . get_range () , Self :: Float (node) => node . get_range () , Self :: Int (node) => node . get_range () , Self :: Maybe (node) => node . get_range () , Self :: Object (node) => node . get_range () , Self :: String (node) => node . get_range () , Self :: Struct (node) => node . get_range () , Self :: Typeref (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 37u16 => Ok (Self :: Array (Array :: try_from ((node , db , builder , id , parent_id)) ?)) , 16u16 => Ok (Self :: Bool (Bool :: try_from ((node , db , builder , id , parent_id)) ?)) , 38u16 => Ok (Self :: Dict (Dict :: try_from ((node , db , builder , id , parent_id)) ?)) , 33u16 => Ok (Self :: Enum (Enum :: try_from ((node , db , builder , id , parent_id)) ?)) , 18u16 => Ok (Self :: Float (Float :: try_from ((node , db , builder , id , parent_id)) ?)) , 17u16 => Ok (Self :: Int (Int :: try_from ((node , db , builder , id , parent_id)) ?)) , 35u16 => Ok (Self :: Maybe (Maybe :: try_from ((node , db , builder , id , parent_id)) ?)) , 20u16 => Ok (Self :: Object (Object :: try_from ((node , db , builder , id , parent_id)) ?)) , 19u16 => Ok (Self :: String (String :: try_from ((node , db , builder , id , parent_id)) ?)) , 31u16 => Ok (Self :: Struct (Struct :: try_from ((node , db , builder , id , parent_id)) ?)) , 39u16 => Ok (Self :: Typeref (Typeref :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Enum_Struct { Enum (Enum) , Struct (Struct) } impl auto_lsp :: core :: ast :: AstNode for Enum_Struct { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 33u16 | 31u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Enum (node) => node . lower () , Self :: Struct (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Enum (node) => node . get_id () , Self :: Struct (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Enum (node) => node . get_parent_id () , Self :: Struct (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Enum (node) => node . get_range () , Self :: Struct (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Enum_Struct { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 33u16 => Ok (Self :: Enum (Enum :: try_from ((node , db , builder , id , parent_id)) ?)) , 31u16 => Ok (Self :: Struct (Struct :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Enum_Struct) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Comment_Eol { Comment (Comment) , Eol (Eol) } impl auto_lsp :: core :: ast :: AstNode for Comment_Eol { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16 | 3u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Comment (node) => node . lower () , Self :: Eol (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Comment (node) => node . get_id () , Self :: Eol (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Comment (node) => node . get_parent_id () , Self :: Eol (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Comment (node) => node . get_range () , Self :: Eol (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment_Eol { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 2u16 => Ok (Self :: Comment (Comment :: try_from ((node , db , builder , id , parent_id)) ?)) , 3u16 => Ok (Self :: Eol (Eol :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Comment_Eol) , }) } } }
[INFO] [stdout]  1 + # ! [allow (clippy :: all)] # ! [allow (unused)] # ! [allow (dead_code)] # ! [allow (non_camel_case_types)] # ! [allow (non_snake_case)] # [derive (Debug , Clone , PartialEq)] pub struct Array { pub Type : auto_lsp :: core :: ast :: AstNodeId < Type > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Array { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 37u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Array { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut Type = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Type , 10u16 > (& mut Type) }) ; Ok (Self { Type : Type ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Type) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Dict { pub Type : auto_lsp :: core :: ast :: AstNodeId < Type > , pub children : auto_lsp :: core :: ast :: AstNodeId < String > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Dict { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 38u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Dict { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut Type = Ok (None) ; ; let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Type , 10u16 > (& mut Type) ? . on_children_id (& mut children) }) ; Ok (Self { Type : Type ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Type) , } }) ? , children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (String) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Enum { pub member : Vec < auto_lsp :: core :: ast :: AstNode < FieldName >> , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Enum { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 33u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Enum { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut member = vec ! [] ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_vec_field_id :: < FieldName , 6u16 > (& mut member) ? . on_vec_children_id (& mut children) }) ; Ok (Self { member , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Error { pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordError > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub value : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Error { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 29u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Error { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut keyword = Ok (None) ; ; let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < KeywordError , 5u16 > (& mut keyword) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_field_id :: < Struct , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Interface { pub declaration : auto_lsp :: core :: ast :: AstNodeId < InterfaceDeclaration > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol_Error_Method_Typedef >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Interface { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 24u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Interface { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut declaration = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < InterfaceDeclaration , 2u16 > (& mut declaration) ? . on_vec_children_id (& mut children) }) ; Ok (Self { declaration : declaration ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (declaration) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct InterfaceDeclaration { pub name : auto_lsp :: core :: ast :: AstNodeId < InterfaceName > , pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordInterface > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for InterfaceDeclaration { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 27u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for InterfaceDeclaration { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut name = Ok (None) ; ; let mut keyword = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < InterfaceName , 7u16 > (& mut name) ? . on_field_id :: < KeywordInterface , 5u16 > (& mut keyword) ? . on_vec_children_id (& mut children) }) ; Ok (Self { name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Maybe { pub questionmark : auto_lsp :: core :: ast :: AstNodeId < Questionmark > , pub just : auto_lsp :: core :: ast :: AstNodeId < Type > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Maybe { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 35u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Maybe { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut questionmark = Ok (None) ; ; let mut just = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Questionmark , 9u16 > (& mut questionmark) ? . on_field_id :: < Type , 4u16 > (& mut just) }) ; Ok (Self { questionmark : questionmark ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (questionmark) , } }) ? , just : just ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (just) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Method { pub input : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub output : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordMethod > , pub arrow : auto_lsp :: core :: ast :: AstNodeId < Arrow > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Method { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 30u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Method { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut input = Ok (None) ; ; let mut output = Ok (None) ; ; let mut keyword = Ok (None) ; ; let mut arrow = Ok (None) ; ; let mut name = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Struct , 3u16 > (& mut input) ? . on_field_id :: < Struct , 8u16 > (& mut output) ? . on_field_id :: < KeywordMethod , 5u16 > (& mut keyword) ? . on_field_id :: < Arrow , 1u16 > (& mut arrow) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_vec_children_id (& mut children) }) ; Ok (Self { input : input ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (input) , } }) ? , output : output ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (output) , } }) ? , keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , arrow : arrow ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (arrow) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Struct { pub member : Vec < auto_lsp :: core :: ast :: AstNodeId < StructField >> , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Struct { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 31u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Struct { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut member = vec ! [] ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_vec_field_id :: < StructField , 6u16 > (& mut member) ? . on_vec_children_id (& mut children) }) ; Ok (Self { member , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct StructField { pub name : auto_lsp :: core :: ast :: AstNodeId < FieldName > , pub value : auto_lsp :: core :: ast :: AstNodeId < Type > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for StructField { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 32u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for StructField { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < FieldName , 7u16 > (& mut name) ? . on_field_id :: < Type , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Type { pub children : auto_lsp :: core :: ast :: AstNodeId < Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Type { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 34u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Type { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_children_id (& mut children) }) ; Ok (Self { children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Typedef { pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordType > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub value : auto_lsp :: core :: ast :: AstNodeId < Enum_Struct > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Typedef { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 28u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Typedef { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut keyword = Ok (None) ; ; let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < KeywordType , 5u16 > (& mut keyword) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_field_id :: < Enum_Struct , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Typeref { pub children : auto_lsp :: core :: ast :: AstNodeId < Name > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Typeref { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 39u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Typeref { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_children_id (& mut children) }) ; Ok (Self { children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Name) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_LeftParen { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_LeftParen { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 9u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_LeftParen { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_RightParen { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_RightParen { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 11u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_RightParen { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_Comma { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_Comma { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 10u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_Comma { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_Colon { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_Colon { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 12u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_Colon { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_LeftBracket { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_LeftBracket { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 14u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_LeftBracket { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_RightBracket { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_RightBracket { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 15u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_RightBracket { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Arrow { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Arrow { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 8u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Arrow { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Bool { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Bool { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 16u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Bool { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Comment { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Comment { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Eol { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Eol { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 3u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Eol { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct FieldName { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for FieldName { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 22u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for FieldName { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Float { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Float { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 18u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Float { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Int { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Int { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 17u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Int { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct InterfaceName { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for InterfaceName { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 23u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for InterfaceName { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordError { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordError { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 6u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordError { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordInterface { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordInterface { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 4u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordInterface { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordMethod { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordMethod { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 7u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordMethod { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordType { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordType { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 5u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordType { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Name { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Name { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 21u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Name { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Object { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Object { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 20u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Object { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Questionmark { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Questionmark { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 13u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Questionmark { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct String { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for String { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 19u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for String { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub enum Comment_Eol_Error_Method_Typedef { Comment (Comment) , Eol (Eol) , Error (Error) , Method (Method) , Typedef (Typedef) } impl auto_lsp :: core :: ast :: AstNode for Comment_Eol_Error_Method_Typedef { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16 | 3u16 | 29u16 | 30u16 | 28u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Comment (node) => node . lower () , Self :: Eol (node) => node . lower () , Self :: Error (node) => node . lower () , Self :: Method (node) => node . lower () , Self :: Typedef (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Comment (node) => node . get_id () , Self :: Eol (node) => node . get_id () , Self :: Error (node) => node . get_id () , Self :: Method (node) => node . get_id () , Self :: Typedef (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Comment (node) => node . get_parent_id () , Self :: Eol (node) => node . get_parent_id () , Self :: Error (node) => node . get_parent_id () , Self :: Method (node) => node . get_parent_id () , Self :: Typedef (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Comment (node) => node . get_range () , Self :: Eol (node) => node . get_range () , Self :: Error (node) => node . get_range () , Self :: Method (node) => node . get_range () , Self :: Typedef (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment_Eol_Error_Method_Typedef { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 2u16 => Ok (Self :: Comment (Comment :: try_from ((node , db , builder , id , parent_id)) ?)) , 3u16 => Ok (Self :: Eol (Eol :: try_from ((node , db , builder , id , parent_id)) ?)) , 29u16 => Ok (Self :: Error (Error :: try_from ((node , db , builder , id , parent_id)) ?)) , 30u16 => Ok (Self :: Method (Method :: try_from ((node , db , builder , id , parent_id)) ?)) , 28u16 => Ok (Self :: Typedef (Typedef :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Comment_Eol_Error_Method_Typedef) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { Array (Array) , Bool (Bool) , Dict (Dict) , Enum (Enum) , Float (Float) , Int (Int) , Maybe (Maybe) , Object (Object) , String (String) , Struct (Struct) , Typeref (Typeref) } impl auto_lsp :: core :: ast :: AstNode for Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 37u16 | 16u16 | 38u16 | 33u16 | 18u16 | 17u16 | 35u16 | 20u16 | 19u16 | 31u16 | 39u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Array (node) => node . lower () , Self :: Bool (node) => node . lower () , Self :: Dict (node) => node . lower () , Self :: Enum (node) => node . lower () , Self :: Float (node) => node . lower () , Self :: Int (node) => node . lower () , Self :: Maybe (node) => node . lower () , Self :: Object (node) => node . lower () , Self :: String (node) => node . lower () , Self :: Struct (node) => node . lower () , Self :: Typeref (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Array (node) => node . get_id () , Self :: Bool (node) => node . get_id () , Self :: Dict (node) => node . get_id () , Self :: Enum (node) => node . get_id () , Self :: Float (node) => node . get_id () , Self :: Int (node) => node . get_id () , Self :: Maybe (node) => node . get_id () , Self :: Object (node) => node . get_id () , Self :: String (node) => node . get_id () , Self :: Struct (node) => node . get_id () , Self :: Typeref (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Array (node) => node . get_parent_id () , Self :: Bool (node) => node . get_parent_id () , Self :: Dict (node) => node . get_parent_id () , Self :: Enum (node) => node . get_parent_id () , Self :: Float (node) => node . get_parent_id () , Self :: Int (node) => node . get_parent_id () , Self :: Maybe (node) => node . get_parent_id () , Self :: Object (node) => node . get_parent_id () , Self :: String (node) => node . get_parent_id () , Self :: Struct (node) => node . get_parent_id () , Self :: Typeref (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Array (node) => node . get_range () , Self :: Bool (node) => node . get_range () , Self :: Dict (node) => node . get_range () , Self :: Enum (node) => node . get_range () , Self :: Float (node) => node . get_range () , Self :: Int (node) => node . get_range () , Self :: Maybe (node) => node . get_range () , Self :: Object (node) => node . get_range () , Self :: String (node) => node . get_range () , Self :: Struct (node) => node . get_range () , Self :: Typeref (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 37u16 => Ok (Self :: Array (Array :: try_from ((node , db , builder , id , parent_id)) ?)) , 16u16 => Ok (Self :: Bool (Bool :: try_from ((node , db , builder , id , parent_id)) ?)) , 38u16 => Ok (Self :: Dict (Dict :: try_from ((node , db , builder , id , parent_id)) ?)) , 33u16 => Ok (Self :: Enum (Enum :: try_from ((node , db , builder , id , parent_id)) ?)) , 18u16 => Ok (Self :: Float (Float :: try_from ((node , db , builder , id , parent_id)) ?)) , 17u16 => Ok (Self :: Int (Int :: try_from ((node , db , builder , id , parent_id)) ?)) , 35u16 => Ok (Self :: Maybe (Maybe :: try_from ((node , db , builder , id , parent_id)) ?)) , 20u16 => Ok (Self :: Object (Object :: try_from ((node , db , builder , id , parent_id)) ?)) , 19u16 => Ok (Self :: String (String :: try_from ((node , db , builder , id , parent_id)) ?)) , 31u16 => Ok (Self :: Struct (Struct :: try_from ((node , db , builder , id , parent_id)) ?)) , 39u16 => Ok (Self :: Typeref (Typeref :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Enum_Struct { Enum (Enum) , Struct (Struct) } impl auto_lsp :: core :: ast :: AstNode for Enum_Struct { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 33u16 | 31u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Enum (node) => node . lower () , Self :: Struct (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Enum (node) => node . get_id () , Self :: Struct (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Enum (node) => node . get_parent_id () , Self :: Struct (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Enum (node) => node . get_range () , Self :: Struct (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Enum_Struct { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 33u16 => Ok (Self :: Enum (Enum :: try_from ((node , db , builder , id , parent_id)) ?)) , 31u16 => Ok (Self :: Struct (Struct :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Enum_Struct) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Comment_Eol { Comment (Comment) , Eol (Eol) } impl auto_lsp :: core :: ast :: AstNode for Comment_Eol { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16 | 3u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Comment (node) => node . lower () , Self :: Eol (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Comment (node) => node . get_id () , Self :: Eol (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Comment (node) => node . get_parent_id () , Self :: Eol (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Comment (node) => node . get_range () , Self :: Eol (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment_Eol { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 2u16 => Ok (Self :: Comment (Comment :: try_from ((node , db , builder , id , parent_id)) ?)) , 3u16 => Ok (Self :: Eol (Eol :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Comment_Eol) , }) } } }
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `AstNodeId` in module `auto_lsp::core::ast`
[INFO] [stdout]   --> src/ast.rs:1:3285
[INFO] [stdout]    |
[INFO] [stdout]  1 | ...ldName >> , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Rang...
[INFO] [stdout]    |                                                                ^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]   ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/auto-lsp-core-0.7.0/src/ast/node.rs:26:1
[INFO] [stdout]    |
[INFO] [stdout] 26 | pub trait AstNode: std::fmt::Debug + Send + Sync + DowncastSync {
[INFO] [stdout]    | --------------------------------------------------------------- similarly named trait `AstNode` defined here
[INFO] [stdout]    |
[INFO] [stdout] help: a trait with a similar name exists
[INFO] [stdout]    |
[INFO] [stdout]  1 - # ! [allow (clippy :: all)] # ! [allow (unused)] # ! [allow (dead_code)] # ! [allow (non_camel_case_types)] # ! [allow (non_snake_case)] # [derive (Debug , Clone , PartialEq)] pub struct Array { pub Type : auto_lsp :: core :: ast :: AstNodeId < Type > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Array { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 37u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Array { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut Type = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Type , 10u16 > (& mut Type) }) ; Ok (Self { Type : Type ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Type) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Dict { pub Type : auto_lsp :: core :: ast :: AstNodeId < Type > , pub children : auto_lsp :: core :: ast :: AstNodeId < String > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Dict { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 38u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Dict { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut Type = Ok (None) ; ; let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Type , 10u16 > (& mut Type) ? . on_children_id (& mut children) }) ; Ok (Self { Type : Type ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Type) , } }) ? , children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (String) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Enum { pub member : Vec < auto_lsp :: core :: ast :: AstNodeId < FieldName >> , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Enum { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 33u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Enum { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut member = vec ! [] ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_vec_field_id :: < FieldName , 6u16 > (& mut member) ? . on_vec_children_id (& mut children) }) ; Ok (Self { member , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Error { pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordError > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub value : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Error { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 29u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Error { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut keyword = Ok (None) ; ; let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < KeywordError , 5u16 > (& mut keyword) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_field_id :: < Struct , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Interface { pub declaration : auto_lsp :: core :: ast :: AstNodeId < InterfaceDeclaration > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol_Error_Method_Typedef >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Interface { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 24u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Interface { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut declaration = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < InterfaceDeclaration , 2u16 > (& mut declaration) ? . on_vec_children_id (& mut children) }) ; Ok (Self { declaration : declaration ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (declaration) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct InterfaceDeclaration { pub name : auto_lsp :: core :: ast :: AstNodeId < InterfaceName > , pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordInterface > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for InterfaceDeclaration { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 27u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for InterfaceDeclaration { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut name = Ok (None) ; ; let mut keyword = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < InterfaceName , 7u16 > (& mut name) ? . on_field_id :: < KeywordInterface , 5u16 > (& mut keyword) ? . on_vec_children_id (& mut children) }) ; Ok (Self { name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Maybe { pub questionmark : auto_lsp :: core :: ast :: AstNodeId < Questionmark > , pub just : auto_lsp :: core :: ast :: AstNodeId < Type > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Maybe { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 35u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Maybe { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut questionmark = Ok (None) ; ; let mut just = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Questionmark , 9u16 > (& mut questionmark) ? . on_field_id :: < Type , 4u16 > (& mut just) }) ; Ok (Self { questionmark : questionmark ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (questionmark) , } }) ? , just : just ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (just) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Method { pub input : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub output : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordMethod > , pub arrow : auto_lsp :: core :: ast :: AstNodeId < Arrow > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Method { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 30u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Method { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut input = Ok (None) ; ; let mut output = Ok (None) ; ; let mut keyword = Ok (None) ; ; let mut arrow = Ok (None) ; ; let mut name = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Struct , 3u16 > (& mut input) ? . on_field_id :: < Struct , 8u16 > (& mut output) ? . on_field_id :: < KeywordMethod , 5u16 > (& mut keyword) ? . on_field_id :: < Arrow , 1u16 > (& mut arrow) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_vec_children_id (& mut children) }) ; Ok (Self { input : input ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (input) , } }) ? , output : output ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (output) , } }) ? , keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , arrow : arrow ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (arrow) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Struct { pub member : Vec < auto_lsp :: core :: ast :: AstNodeId < StructField >> , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Struct { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 31u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Struct { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut member = vec ! [] ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_vec_field_id :: < StructField , 6u16 > (& mut member) ? . on_vec_children_id (& mut children) }) ; Ok (Self { member , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct StructField { pub name : auto_lsp :: core :: ast :: AstNodeId < FieldName > , pub value : auto_lsp :: core :: ast :: AstNodeId < Type > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for StructField { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 32u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for StructField { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < FieldName , 7u16 > (& mut name) ? . on_field_id :: < Type , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Type { pub children : auto_lsp :: core :: ast :: AstNodeId < Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Type { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 34u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Type { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_children_id (& mut children) }) ; Ok (Self { children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Typedef { pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordType > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub value : auto_lsp :: core :: ast :: AstNodeId < Enum_Struct > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Typedef { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 28u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Typedef { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut keyword = Ok (None) ; ; let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < KeywordType , 5u16 > (& mut keyword) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_field_id :: < Enum_Struct , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Typeref { pub children : auto_lsp :: core :: ast :: AstNodeId < Name > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Typeref { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 39u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Typeref { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_children_id (& mut children) }) ; Ok (Self { children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Name) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_LeftParen { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_LeftParen { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 9u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_LeftParen { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_RightParen { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_RightParen { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 11u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_RightParen { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_Comma { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_Comma { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 10u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_Comma { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_Colon { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_Colon { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 12u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_Colon { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_LeftBracket { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_LeftBracket { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 14u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_LeftBracket { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_RightBracket { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_RightBracket { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 15u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_RightBracket { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Arrow { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Arrow { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 8u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Arrow { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Bool { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Bool { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 16u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Bool { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Comment { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Comment { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Eol { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Eol { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 3u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Eol { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct FieldName { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for FieldName { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 22u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for FieldName { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Float { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Float { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 18u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Float { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Int { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Int { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 17u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Int { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct InterfaceName { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for InterfaceName { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 23u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for InterfaceName { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordError { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordError { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 6u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordError { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordInterface { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordInterface { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 4u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordInterface { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordMethod { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordMethod { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 7u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordMethod { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordType { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordType { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 5u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordType { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Name { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Name { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 21u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Name { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Object { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Object { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 20u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Object { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Questionmark { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Questionmark { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 13u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Questionmark { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct String { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for String { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 19u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for String { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub enum Comment_Eol_Error_Method_Typedef { Comment (Comment) , Eol (Eol) , Error (Error) , Method (Method) , Typedef (Typedef) } impl auto_lsp :: core :: ast :: AstNode for Comment_Eol_Error_Method_Typedef { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16 | 3u16 | 29u16 | 30u16 | 28u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Comment (node) => node . lower () , Self :: Eol (node) => node . lower () , Self :: Error (node) => node . lower () , Self :: Method (node) => node . lower () , Self :: Typedef (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Comment (node) => node . get_id () , Self :: Eol (node) => node . get_id () , Self :: Error (node) => node . get_id () , Self :: Method (node) => node . get_id () , Self :: Typedef (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Comment (node) => node . get_parent_id () , Self :: Eol (node) => node . get_parent_id () , Self :: Error (node) => node . get_parent_id () , Self :: Method (node) => node . get_parent_id () , Self :: Typedef (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Comment (node) => node . get_range () , Self :: Eol (node) => node . get_range () , Self :: Error (node) => node . get_range () , Self :: Method (node) => node . get_range () , Self :: Typedef (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment_Eol_Error_Method_Typedef { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 2u16 => Ok (Self :: Comment (Comment :: try_from ((node , db , builder , id , parent_id)) ?)) , 3u16 => Ok (Self :: Eol (Eol :: try_from ((node , db , builder , id , parent_id)) ?)) , 29u16 => Ok (Self :: Error (Error :: try_from ((node , db , builder , id , parent_id)) ?)) , 30u16 => Ok (Self :: Method (Method :: try_from ((node , db , builder , id , parent_id)) ?)) , 28u16 => Ok (Self :: Typedef (Typedef :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Comment_Eol_Error_Method_Typedef) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { Array (Array) , Bool (Bool) , Dict (Dict) , Enum (Enum) , Float (Float) , Int (Int) , Maybe (Maybe) , Object (Object) , String (String) , Struct (Struct) , Typeref (Typeref) } impl auto_lsp :: core :: ast :: AstNode for Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 37u16 | 16u16 | 38u16 | 33u16 | 18u16 | 17u16 | 35u16 | 20u16 | 19u16 | 31u16 | 39u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Array (node) => node . lower () , Self :: Bool (node) => node . lower () , Self :: Dict (node) => node . lower () , Self :: Enum (node) => node . lower () , Self :: Float (node) => node . lower () , Self :: Int (node) => node . lower () , Self :: Maybe (node) => node . lower () , Self :: Object (node) => node . lower () , Self :: String (node) => node . lower () , Self :: Struct (node) => node . lower () , Self :: Typeref (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Array (node) => node . get_id () , Self :: Bool (node) => node . get_id () , Self :: Dict (node) => node . get_id () , Self :: Enum (node) => node . get_id () , Self :: Float (node) => node . get_id () , Self :: Int (node) => node . get_id () , Self :: Maybe (node) => node . get_id () , Self :: Object (node) => node . get_id () , Self :: String (node) => node . get_id () , Self :: Struct (node) => node . get_id () , Self :: Typeref (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Array (node) => node . get_parent_id () , Self :: Bool (node) => node . get_parent_id () , Self :: Dict (node) => node . get_parent_id () , Self :: Enum (node) => node . get_parent_id () , Self :: Float (node) => node . get_parent_id () , Self :: Int (node) => node . get_parent_id () , Self :: Maybe (node) => node . get_parent_id () , Self :: Object (node) => node . get_parent_id () , Self :: String (node) => node . get_parent_id () , Self :: Struct (node) => node . get_parent_id () , Self :: Typeref (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Array (node) => node . get_range () , Self :: Bool (node) => node . get_range () , Self :: Dict (node) => node . get_range () , Self :: Enum (node) => node . get_range () , Self :: Float (node) => node . get_range () , Self :: Int (node) => node . get_range () , Self :: Maybe (node) => node . get_range () , Self :: Object (node) => node . get_range () , Self :: String (node) => node . get_range () , Self :: Struct (node) => node . get_range () , Self :: Typeref (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 37u16 => Ok (Self :: Array (Array :: try_from ((node , db , builder , id , parent_id)) ?)) , 16u16 => Ok (Self :: Bool (Bool :: try_from ((node , db , builder , id , parent_id)) ?)) , 38u16 => Ok (Self :: Dict (Dict :: try_from ((node , db , builder , id , parent_id)) ?)) , 33u16 => Ok (Self :: Enum (Enum :: try_from ((node , db , builder , id , parent_id)) ?)) , 18u16 => Ok (Self :: Float (Float :: try_from ((node , db , builder , id , parent_id)) ?)) , 17u16 => Ok (Self :: Int (Int :: try_from ((node , db , builder , id , parent_id)) ?)) , 35u16 => Ok (Self :: Maybe (Maybe :: try_from ((node , db , builder , id , parent_id)) ?)) , 20u16 => Ok (Self :: Object (Object :: try_from ((node , db , builder , id , parent_id)) ?)) , 19u16 => Ok (Self :: String (String :: try_from ((node , db , builder , id , parent_id)) ?)) , 31u16 => Ok (Self :: Struct (Struct :: try_from ((node , db , builder , id , parent_id)) ?)) , 39u16 => Ok (Self :: Typeref (Typeref :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Enum_Struct { Enum (Enum) , Struct (Struct) } impl auto_lsp :: core :: ast :: AstNode for Enum_Struct { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 33u16 | 31u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Enum (node) => node . lower () , Self :: Struct (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Enum (node) => node . get_id () , Self :: Struct (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Enum (node) => node . get_parent_id () , Self :: Struct (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Enum (node) => node . get_range () , Self :: Struct (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Enum_Struct { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 33u16 => Ok (Self :: Enum (Enum :: try_from ((node , db , builder , id , parent_id)) ?)) , 31u16 => Ok (Self :: Struct (Struct :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Enum_Struct) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Comment_Eol { Comment (Comment) , Eol (Eol) } impl auto_lsp :: core :: ast :: AstNode for Comment_Eol { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16 | 3u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Comment (node) => node . lower () , Self :: Eol (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Comment (node) => node . get_id () , Self :: Eol (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Comment (node) => node . get_parent_id () , Self :: Eol (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Comment (node) => node . get_range () , Self :: Eol (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment_Eol { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 2u16 => Ok (Self :: Comment (Comment :: try_from ((node , db , builder , id , parent_id)) ?)) , 3u16 => Ok (Self :: Eol (Eol :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Comment_Eol) , }) } } }
[INFO] [stdout]  1 + # ! [allow (clippy :: all)] # ! [allow (unused)] # ! [allow (dead_code)] # ! [allow (non_camel_case_types)] # ! [allow (non_snake_case)] # [derive (Debug , Clone , PartialEq)] pub struct Array { pub Type : auto_lsp :: core :: ast :: AstNodeId < Type > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Array { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 37u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Array { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut Type = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Type , 10u16 > (& mut Type) }) ; Ok (Self { Type : Type ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Type) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Dict { pub Type : auto_lsp :: core :: ast :: AstNodeId < Type > , pub children : auto_lsp :: core :: ast :: AstNodeId < String > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Dict { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 38u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Dict { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut Type = Ok (None) ; ; let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Type , 10u16 > (& mut Type) ? . on_children_id (& mut children) }) ; Ok (Self { Type : Type ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Type) , } }) ? , children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (String) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Enum { pub member : Vec < auto_lsp :: core :: ast :: AstNodeId < FieldName >> , pub children : Vec < auto_lsp :: core :: ast :: AstNode < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Enum { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 33u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Enum { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut member = vec ! [] ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_vec_field_id :: < FieldName , 6u16 > (& mut member) ? . on_vec_children_id (& mut children) }) ; Ok (Self { member , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Error { pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordError > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub value : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Error { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 29u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Error { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut keyword = Ok (None) ; ; let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < KeywordError , 5u16 > (& mut keyword) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_field_id :: < Struct , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Interface { pub declaration : auto_lsp :: core :: ast :: AstNodeId < InterfaceDeclaration > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol_Error_Method_Typedef >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Interface { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 24u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Interface { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut declaration = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < InterfaceDeclaration , 2u16 > (& mut declaration) ? . on_vec_children_id (& mut children) }) ; Ok (Self { declaration : declaration ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (declaration) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct InterfaceDeclaration { pub name : auto_lsp :: core :: ast :: AstNodeId < InterfaceName > , pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordInterface > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for InterfaceDeclaration { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 27u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for InterfaceDeclaration { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut name = Ok (None) ; ; let mut keyword = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < InterfaceName , 7u16 > (& mut name) ? . on_field_id :: < KeywordInterface , 5u16 > (& mut keyword) ? . on_vec_children_id (& mut children) }) ; Ok (Self { name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Maybe { pub questionmark : auto_lsp :: core :: ast :: AstNodeId < Questionmark > , pub just : auto_lsp :: core :: ast :: AstNodeId < Type > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Maybe { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 35u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Maybe { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut questionmark = Ok (None) ; ; let mut just = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Questionmark , 9u16 > (& mut questionmark) ? . on_field_id :: < Type , 4u16 > (& mut just) }) ; Ok (Self { questionmark : questionmark ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (questionmark) , } }) ? , just : just ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (just) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Method { pub input : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub output : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordMethod > , pub arrow : auto_lsp :: core :: ast :: AstNodeId < Arrow > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Method { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 30u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Method { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut input = Ok (None) ; ; let mut output = Ok (None) ; ; let mut keyword = Ok (None) ; ; let mut arrow = Ok (None) ; ; let mut name = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Struct , 3u16 > (& mut input) ? . on_field_id :: < Struct , 8u16 > (& mut output) ? . on_field_id :: < KeywordMethod , 5u16 > (& mut keyword) ? . on_field_id :: < Arrow , 1u16 > (& mut arrow) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_vec_children_id (& mut children) }) ; Ok (Self { input : input ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (input) , } }) ? , output : output ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (output) , } }) ? , keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , arrow : arrow ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (arrow) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Struct { pub member : Vec < auto_lsp :: core :: ast :: AstNodeId < StructField >> , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Struct { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 31u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Struct { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut member = vec ! [] ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_vec_field_id :: < StructField , 6u16 > (& mut member) ? . on_vec_children_id (& mut children) }) ; Ok (Self { member , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct StructField { pub name : auto_lsp :: core :: ast :: AstNodeId < FieldName > , pub value : auto_lsp :: core :: ast :: AstNodeId < Type > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for StructField { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 32u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for StructField { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < FieldName , 7u16 > (& mut name) ? . on_field_id :: < Type , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Type { pub children : auto_lsp :: core :: ast :: AstNodeId < Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Type { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 34u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Type { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_children_id (& mut children) }) ; Ok (Self { children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Typedef { pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordType > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub value : auto_lsp :: core :: ast :: AstNodeId < Enum_Struct > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Typedef { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 28u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Typedef { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut keyword = Ok (None) ; ; let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < KeywordType , 5u16 > (& mut keyword) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_field_id :: < Enum_Struct , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Typeref { pub children : auto_lsp :: core :: ast :: AstNodeId < Name > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Typeref { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 39u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Typeref { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_children_id (& mut children) }) ; Ok (Self { children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Name) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_LeftParen { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_LeftParen { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 9u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_LeftParen { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_RightParen { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_RightParen { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 11u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_RightParen { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_Comma { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_Comma { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 10u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_Comma { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_Colon { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_Colon { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 12u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_Colon { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_LeftBracket { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_LeftBracket { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 14u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_LeftBracket { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_RightBracket { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_RightBracket { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 15u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_RightBracket { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Arrow { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Arrow { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 8u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Arrow { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Bool { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Bool { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 16u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Bool { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Comment { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Comment { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Eol { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Eol { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 3u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Eol { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct FieldName { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for FieldName { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 22u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for FieldName { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Float { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Float { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 18u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Float { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Int { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Int { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 17u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Int { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct InterfaceName { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for InterfaceName { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 23u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for InterfaceName { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordError { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordError { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 6u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordError { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordInterface { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordInterface { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 4u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordInterface { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordMethod { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordMethod { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 7u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordMethod { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordType { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordType { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 5u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordType { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Name { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Name { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 21u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Name { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Object { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Object { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 20u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Object { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Questionmark { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Questionmark { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 13u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Questionmark { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct String { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for String { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 19u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for String { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub enum Comment_Eol_Error_Method_Typedef { Comment (Comment) , Eol (Eol) , Error (Error) , Method (Method) , Typedef (Typedef) } impl auto_lsp :: core :: ast :: AstNode for Comment_Eol_Error_Method_Typedef { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16 | 3u16 | 29u16 | 30u16 | 28u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Comment (node) => node . lower () , Self :: Eol (node) => node . lower () , Self :: Error (node) => node . lower () , Self :: Method (node) => node . lower () , Self :: Typedef (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Comment (node) => node . get_id () , Self :: Eol (node) => node . get_id () , Self :: Error (node) => node . get_id () , Self :: Method (node) => node . get_id () , Self :: Typedef (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Comment (node) => node . get_parent_id () , Self :: Eol (node) => node . get_parent_id () , Self :: Error (node) => node . get_parent_id () , Self :: Method (node) => node . get_parent_id () , Self :: Typedef (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Comment (node) => node . get_range () , Self :: Eol (node) => node . get_range () , Self :: Error (node) => node . get_range () , Self :: Method (node) => node . get_range () , Self :: Typedef (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment_Eol_Error_Method_Typedef { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 2u16 => Ok (Self :: Comment (Comment :: try_from ((node , db , builder , id , parent_id)) ?)) , 3u16 => Ok (Self :: Eol (Eol :: try_from ((node , db , builder , id , parent_id)) ?)) , 29u16 => Ok (Self :: Error (Error :: try_from ((node , db , builder , id , parent_id)) ?)) , 30u16 => Ok (Self :: Method (Method :: try_from ((node , db , builder , id , parent_id)) ?)) , 28u16 => Ok (Self :: Typedef (Typedef :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Comment_Eol_Error_Method_Typedef) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { Array (Array) , Bool (Bool) , Dict (Dict) , Enum (Enum) , Float (Float) , Int (Int) , Maybe (Maybe) , Object (Object) , String (String) , Struct (Struct) , Typeref (Typeref) } impl auto_lsp :: core :: ast :: AstNode for Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 37u16 | 16u16 | 38u16 | 33u16 | 18u16 | 17u16 | 35u16 | 20u16 | 19u16 | 31u16 | 39u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Array (node) => node . lower () , Self :: Bool (node) => node . lower () , Self :: Dict (node) => node . lower () , Self :: Enum (node) => node . lower () , Self :: Float (node) => node . lower () , Self :: Int (node) => node . lower () , Self :: Maybe (node) => node . lower () , Self :: Object (node) => node . lower () , Self :: String (node) => node . lower () , Self :: Struct (node) => node . lower () , Self :: Typeref (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Array (node) => node . get_id () , Self :: Bool (node) => node . get_id () , Self :: Dict (node) => node . get_id () , Self :: Enum (node) => node . get_id () , Self :: Float (node) => node . get_id () , Self :: Int (node) => node . get_id () , Self :: Maybe (node) => node . get_id () , Self :: Object (node) => node . get_id () , Self :: String (node) => node . get_id () , Self :: Struct (node) => node . get_id () , Self :: Typeref (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Array (node) => node . get_parent_id () , Self :: Bool (node) => node . get_parent_id () , Self :: Dict (node) => node . get_parent_id () , Self :: Enum (node) => node . get_parent_id () , Self :: Float (node) => node . get_parent_id () , Self :: Int (node) => node . get_parent_id () , Self :: Maybe (node) => node . get_parent_id () , Self :: Object (node) => node . get_parent_id () , Self :: String (node) => node . get_parent_id () , Self :: Struct (node) => node . get_parent_id () , Self :: Typeref (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Array (node) => node . get_range () , Self :: Bool (node) => node . get_range () , Self :: Dict (node) => node . get_range () , Self :: Enum (node) => node . get_range () , Self :: Float (node) => node . get_range () , Self :: Int (node) => node . get_range () , Self :: Maybe (node) => node . get_range () , Self :: Object (node) => node . get_range () , Self :: String (node) => node . get_range () , Self :: Struct (node) => node . get_range () , Self :: Typeref (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 37u16 => Ok (Self :: Array (Array :: try_from ((node , db , builder , id , parent_id)) ?)) , 16u16 => Ok (Self :: Bool (Bool :: try_from ((node , db , builder , id , parent_id)) ?)) , 38u16 => Ok (Self :: Dict (Dict :: try_from ((node , db , builder , id , parent_id)) ?)) , 33u16 => Ok (Self :: Enum (Enum :: try_from ((node , db , builder , id , parent_id)) ?)) , 18u16 => Ok (Self :: Float (Float :: try_from ((node , db , builder , id , parent_id)) ?)) , 17u16 => Ok (Self :: Int (Int :: try_from ((node , db , builder , id , parent_id)) ?)) , 35u16 => Ok (Self :: Maybe (Maybe :: try_from ((node , db , builder , id , parent_id)) ?)) , 20u16 => Ok (Self :: Object (Object :: try_from ((node , db , builder , id , parent_id)) ?)) , 19u16 => Ok (Self :: String (String :: try_from ((node , db , builder , id , parent_id)) ?)) , 31u16 => Ok (Self :: Struct (Struct :: try_from ((node , db , builder , id , parent_id)) ?)) , 39u16 => Ok (Self :: Typeref (Typeref :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Enum_Struct { Enum (Enum) , Struct (Struct) } impl auto_lsp :: core :: ast :: AstNode for Enum_Struct { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 33u16 | 31u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Enum (node) => node . lower () , Self :: Struct (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Enum (node) => node . get_id () , Self :: Struct (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Enum (node) => node . get_parent_id () , Self :: Struct (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Enum (node) => node . get_range () , Self :: Struct (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Enum_Struct { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 33u16 => Ok (Self :: Enum (Enum :: try_from ((node , db , builder , id , parent_id)) ?)) , 31u16 => Ok (Self :: Struct (Struct :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Enum_Struct) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Comment_Eol { Comment (Comment) , Eol (Eol) } impl auto_lsp :: core :: ast :: AstNode for Comment_Eol { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16 | 3u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Comment (node) => node . lower () , Self :: Eol (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Comment (node) => node . get_id () , Self :: Eol (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Comment (node) => node . get_parent_id () , Self :: Eol (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Comment (node) => node . get_range () , Self :: Eol (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment_Eol { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 2u16 => Ok (Self :: Comment (Comment :: try_from ((node , db , builder , id , parent_id)) ?)) , 3u16 => Ok (Self :: Eol (Eol :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Comment_Eol) , }) } } }
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `AstNodeId` in module `auto_lsp::core::ast`
[INFO] [stdout]   --> src/ast.rs:1:4526
[INFO] [stdout]    |
[INFO] [stdout]  1 | ...pub struct Error { pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordError > , pub name : auto_lsp :: core :: ast :: As...
[INFO] [stdout]    |                                                                ^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]   ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/auto-lsp-core-0.7.0/src/ast/node.rs:26:1
[INFO] [stdout]    |
[INFO] [stdout] 26 | pub trait AstNode: std::fmt::Debug + Send + Sync + DowncastSync {
[INFO] [stdout]    | --------------------------------------------------------------- similarly named trait `AstNode` defined here
[INFO] [stdout]    |
[INFO] [stdout] help: a trait with a similar name exists
[INFO] [stdout]    |
[INFO] [stdout]  1 - # ! [allow (clippy :: all)] # ! [allow (unused)] # ! [allow (dead_code)] # ! [allow (non_camel_case_types)] # ! [allow (non_snake_case)] # [derive (Debug , Clone , PartialEq)] pub struct Array { pub Type : auto_lsp :: core :: ast :: AstNodeId < Type > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Array { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 37u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Array { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut Type = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Type , 10u16 > (& mut Type) }) ; Ok (Self { Type : Type ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Type) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Dict { pub Type : auto_lsp :: core :: ast :: AstNodeId < Type > , pub children : auto_lsp :: core :: ast :: AstNodeId < String > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Dict { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 38u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Dict { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut Type = Ok (None) ; ; let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Type , 10u16 > (& mut Type) ? . on_children_id (& mut children) }) ; Ok (Self { Type : Type ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Type) , } }) ? , children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (String) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Enum { pub member : Vec < auto_lsp :: core :: ast :: AstNodeId < FieldName >> , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Enum { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 33u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Enum { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut member = vec ! [] ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_vec_field_id :: < FieldName , 6u16 > (& mut member) ? . on_vec_children_id (& mut children) }) ; Ok (Self { member , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Error { pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordError > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub value : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Error { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 29u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Error { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut keyword = Ok (None) ; ; let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < KeywordError , 5u16 > (& mut keyword) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_field_id :: < Struct , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Interface { pub declaration : auto_lsp :: core :: ast :: AstNodeId < InterfaceDeclaration > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol_Error_Method_Typedef >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Interface { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 24u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Interface { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut declaration = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < InterfaceDeclaration , 2u16 > (& mut declaration) ? . on_vec_children_id (& mut children) }) ; Ok (Self { declaration : declaration ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (declaration) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct InterfaceDeclaration { pub name : auto_lsp :: core :: ast :: AstNodeId < InterfaceName > , pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordInterface > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for InterfaceDeclaration { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 27u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for InterfaceDeclaration { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut name = Ok (None) ; ; let mut keyword = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < InterfaceName , 7u16 > (& mut name) ? . on_field_id :: < KeywordInterface , 5u16 > (& mut keyword) ? . on_vec_children_id (& mut children) }) ; Ok (Self { name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Maybe { pub questionmark : auto_lsp :: core :: ast :: AstNodeId < Questionmark > , pub just : auto_lsp :: core :: ast :: AstNodeId < Type > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Maybe { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 35u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Maybe { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut questionmark = Ok (None) ; ; let mut just = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Questionmark , 9u16 > (& mut questionmark) ? . on_field_id :: < Type , 4u16 > (& mut just) }) ; Ok (Self { questionmark : questionmark ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (questionmark) , } }) ? , just : just ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (just) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Method { pub input : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub output : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordMethod > , pub arrow : auto_lsp :: core :: ast :: AstNodeId < Arrow > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Method { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 30u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Method { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut input = Ok (None) ; ; let mut output = Ok (None) ; ; let mut keyword = Ok (None) ; ; let mut arrow = Ok (None) ; ; let mut name = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Struct , 3u16 > (& mut input) ? . on_field_id :: < Struct , 8u16 > (& mut output) ? . on_field_id :: < KeywordMethod , 5u16 > (& mut keyword) ? . on_field_id :: < Arrow , 1u16 > (& mut arrow) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_vec_children_id (& mut children) }) ; Ok (Self { input : input ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (input) , } }) ? , output : output ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (output) , } }) ? , keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , arrow : arrow ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (arrow) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Struct { pub member : Vec < auto_lsp :: core :: ast :: AstNodeId < StructField >> , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Struct { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 31u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Struct { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut member = vec ! [] ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_vec_field_id :: < StructField , 6u16 > (& mut member) ? . on_vec_children_id (& mut children) }) ; Ok (Self { member , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct StructField { pub name : auto_lsp :: core :: ast :: AstNodeId < FieldName > , pub value : auto_lsp :: core :: ast :: AstNodeId < Type > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for StructField { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 32u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for StructField { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < FieldName , 7u16 > (& mut name) ? . on_field_id :: < Type , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Type { pub children : auto_lsp :: core :: ast :: AstNodeId < Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Type { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 34u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Type { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_children_id (& mut children) }) ; Ok (Self { children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Typedef { pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordType > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub value : auto_lsp :: core :: ast :: AstNodeId < Enum_Struct > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Typedef { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 28u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Typedef { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut keyword = Ok (None) ; ; let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < KeywordType , 5u16 > (& mut keyword) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_field_id :: < Enum_Struct , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Typeref { pub children : auto_lsp :: core :: ast :: AstNodeId < Name > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Typeref { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 39u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Typeref { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_children_id (& mut children) }) ; Ok (Self { children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Name) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_LeftParen { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_LeftParen { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 9u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_LeftParen { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_RightParen { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_RightParen { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 11u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_RightParen { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_Comma { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_Comma { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 10u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_Comma { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_Colon { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_Colon { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 12u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_Colon { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_LeftBracket { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_LeftBracket { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 14u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_LeftBracket { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_RightBracket { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_RightBracket { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 15u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_RightBracket { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Arrow { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Arrow { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 8u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Arrow { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Bool { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Bool { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 16u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Bool { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Comment { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Comment { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Eol { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Eol { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 3u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Eol { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct FieldName { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for FieldName { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 22u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for FieldName { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Float { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Float { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 18u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Float { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Int { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Int { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 17u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Int { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct InterfaceName { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for InterfaceName { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 23u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for InterfaceName { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordError { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordError { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 6u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordError { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordInterface { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordInterface { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 4u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordInterface { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordMethod { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordMethod { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 7u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordMethod { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordType { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordType { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 5u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordType { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Name { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Name { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 21u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Name { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Object { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Object { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 20u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Object { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Questionmark { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Questionmark { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 13u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Questionmark { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct String { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for String { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 19u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for String { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub enum Comment_Eol_Error_Method_Typedef { Comment (Comment) , Eol (Eol) , Error (Error) , Method (Method) , Typedef (Typedef) } impl auto_lsp :: core :: ast :: AstNode for Comment_Eol_Error_Method_Typedef { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16 | 3u16 | 29u16 | 30u16 | 28u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Comment (node) => node . lower () , Self :: Eol (node) => node . lower () , Self :: Error (node) => node . lower () , Self :: Method (node) => node . lower () , Self :: Typedef (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Comment (node) => node . get_id () , Self :: Eol (node) => node . get_id () , Self :: Error (node) => node . get_id () , Self :: Method (node) => node . get_id () , Self :: Typedef (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Comment (node) => node . get_parent_id () , Self :: Eol (node) => node . get_parent_id () , Self :: Error (node) => node . get_parent_id () , Self :: Method (node) => node . get_parent_id () , Self :: Typedef (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Comment (node) => node . get_range () , Self :: Eol (node) => node . get_range () , Self :: Error (node) => node . get_range () , Self :: Method (node) => node . get_range () , Self :: Typedef (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment_Eol_Error_Method_Typedef { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 2u16 => Ok (Self :: Comment (Comment :: try_from ((node , db , builder , id , parent_id)) ?)) , 3u16 => Ok (Self :: Eol (Eol :: try_from ((node , db , builder , id , parent_id)) ?)) , 29u16 => Ok (Self :: Error (Error :: try_from ((node , db , builder , id , parent_id)) ?)) , 30u16 => Ok (Self :: Method (Method :: try_from ((node , db , builder , id , parent_id)) ?)) , 28u16 => Ok (Self :: Typedef (Typedef :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Comment_Eol_Error_Method_Typedef) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { Array (Array) , Bool (Bool) , Dict (Dict) , Enum (Enum) , Float (Float) , Int (Int) , Maybe (Maybe) , Object (Object) , String (String) , Struct (Struct) , Typeref (Typeref) } impl auto_lsp :: core :: ast :: AstNode for Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 37u16 | 16u16 | 38u16 | 33u16 | 18u16 | 17u16 | 35u16 | 20u16 | 19u16 | 31u16 | 39u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Array (node) => node . lower () , Self :: Bool (node) => node . lower () , Self :: Dict (node) => node . lower () , Self :: Enum (node) => node . lower () , Self :: Float (node) => node . lower () , Self :: Int (node) => node . lower () , Self :: Maybe (node) => node . lower () , Self :: Object (node) => node . lower () , Self :: String (node) => node . lower () , Self :: Struct (node) => node . lower () , Self :: Typeref (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Array (node) => node . get_id () , Self :: Bool (node) => node . get_id () , Self :: Dict (node) => node . get_id () , Self :: Enum (node) => node . get_id () , Self :: Float (node) => node . get_id () , Self :: Int (node) => node . get_id () , Self :: Maybe (node) => node . get_id () , Self :: Object (node) => node . get_id () , Self :: String (node) => node . get_id () , Self :: Struct (node) => node . get_id () , Self :: Typeref (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Array (node) => node . get_parent_id () , Self :: Bool (node) => node . get_parent_id () , Self :: Dict (node) => node . get_parent_id () , Self :: Enum (node) => node . get_parent_id () , Self :: Float (node) => node . get_parent_id () , Self :: Int (node) => node . get_parent_id () , Self :: Maybe (node) => node . get_parent_id () , Self :: Object (node) => node . get_parent_id () , Self :: String (node) => node . get_parent_id () , Self :: Struct (node) => node . get_parent_id () , Self :: Typeref (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Array (node) => node . get_range () , Self :: Bool (node) => node . get_range () , Self :: Dict (node) => node . get_range () , Self :: Enum (node) => node . get_range () , Self :: Float (node) => node . get_range () , Self :: Int (node) => node . get_range () , Self :: Maybe (node) => node . get_range () , Self :: Object (node) => node . get_range () , Self :: String (node) => node . get_range () , Self :: Struct (node) => node . get_range () , Self :: Typeref (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 37u16 => Ok (Self :: Array (Array :: try_from ((node , db , builder , id , parent_id)) ?)) , 16u16 => Ok (Self :: Bool (Bool :: try_from ((node , db , builder , id , parent_id)) ?)) , 38u16 => Ok (Self :: Dict (Dict :: try_from ((node , db , builder , id , parent_id)) ?)) , 33u16 => Ok (Self :: Enum (Enum :: try_from ((node , db , builder , id , parent_id)) ?)) , 18u16 => Ok (Self :: Float (Float :: try_from ((node , db , builder , id , parent_id)) ?)) , 17u16 => Ok (Self :: Int (Int :: try_from ((node , db , builder , id , parent_id)) ?)) , 35u16 => Ok (Self :: Maybe (Maybe :: try_from ((node , db , builder , id , parent_id)) ?)) , 20u16 => Ok (Self :: Object (Object :: try_from ((node , db , builder , id , parent_id)) ?)) , 19u16 => Ok (Self :: String (String :: try_from ((node , db , builder , id , parent_id)) ?)) , 31u16 => Ok (Self :: Struct (Struct :: try_from ((node , db , builder , id , parent_id)) ?)) , 39u16 => Ok (Self :: Typeref (Typeref :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Enum_Struct { Enum (Enum) , Struct (Struct) } impl auto_lsp :: core :: ast :: AstNode for Enum_Struct { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 33u16 | 31u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Enum (node) => node . lower () , Self :: Struct (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Enum (node) => node . get_id () , Self :: Struct (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Enum (node) => node . get_parent_id () , Self :: Struct (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Enum (node) => node . get_range () , Self :: Struct (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Enum_Struct { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 33u16 => Ok (Self :: Enum (Enum :: try_from ((node , db , builder , id , parent_id)) ?)) , 31u16 => Ok (Self :: Struct (Struct :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Enum_Struct) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Comment_Eol { Comment (Comment) , Eol (Eol) } impl auto_lsp :: core :: ast :: AstNode for Comment_Eol { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16 | 3u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Comment (node) => node . lower () , Self :: Eol (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Comment (node) => node . get_id () , Self :: Eol (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Comment (node) => node . get_parent_id () , Self :: Eol (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Comment (node) => node . get_range () , Self :: Eol (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment_Eol { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 2u16 => Ok (Self :: Comment (Comment :: try_from ((node , db , builder , id , parent_id)) ?)) , 3u16 => Ok (Self :: Eol (Eol :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Comment_Eol) , }) } } }
[INFO] [stdout]  1 + # ! [allow (clippy :: all)] # ! [allow (unused)] # ! [allow (dead_code)] # ! [allow (non_camel_case_types)] # ! [allow (non_snake_case)] # [derive (Debug , Clone , PartialEq)] pub struct Array { pub Type : auto_lsp :: core :: ast :: AstNodeId < Type > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Array { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 37u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Array { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut Type = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Type , 10u16 > (& mut Type) }) ; Ok (Self { Type : Type ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Type) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Dict { pub Type : auto_lsp :: core :: ast :: AstNodeId < Type > , pub children : auto_lsp :: core :: ast :: AstNodeId < String > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Dict { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 38u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Dict { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut Type = Ok (None) ; ; let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Type , 10u16 > (& mut Type) ? . on_children_id (& mut children) }) ; Ok (Self { Type : Type ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Type) , } }) ? , children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (String) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Enum { pub member : Vec < auto_lsp :: core :: ast :: AstNodeId < FieldName >> , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Enum { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 33u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Enum { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut member = vec ! [] ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_vec_field_id :: < FieldName , 6u16 > (& mut member) ? . on_vec_children_id (& mut children) }) ; Ok (Self { member , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Error { pub keyword : auto_lsp :: core :: ast :: AstNode < KeywordError > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub value : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Error { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 29u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Error { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut keyword = Ok (None) ; ; let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < KeywordError , 5u16 > (& mut keyword) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_field_id :: < Struct , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Interface { pub declaration : auto_lsp :: core :: ast :: AstNodeId < InterfaceDeclaration > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol_Error_Method_Typedef >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Interface { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 24u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Interface { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut declaration = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < InterfaceDeclaration , 2u16 > (& mut declaration) ? . on_vec_children_id (& mut children) }) ; Ok (Self { declaration : declaration ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (declaration) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct InterfaceDeclaration { pub name : auto_lsp :: core :: ast :: AstNodeId < InterfaceName > , pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordInterface > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for InterfaceDeclaration { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 27u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for InterfaceDeclaration { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut name = Ok (None) ; ; let mut keyword = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < InterfaceName , 7u16 > (& mut name) ? . on_field_id :: < KeywordInterface , 5u16 > (& mut keyword) ? . on_vec_children_id (& mut children) }) ; Ok (Self { name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Maybe { pub questionmark : auto_lsp :: core :: ast :: AstNodeId < Questionmark > , pub just : auto_lsp :: core :: ast :: AstNodeId < Type > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Maybe { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 35u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Maybe { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut questionmark = Ok (None) ; ; let mut just = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Questionmark , 9u16 > (& mut questionmark) ? . on_field_id :: < Type , 4u16 > (& mut just) }) ; Ok (Self { questionmark : questionmark ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (questionmark) , } }) ? , just : just ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (just) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Method { pub input : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub output : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordMethod > , pub arrow : auto_lsp :: core :: ast :: AstNodeId < Arrow > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Method { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 30u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Method { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut input = Ok (None) ; ; let mut output = Ok (None) ; ; let mut keyword = Ok (None) ; ; let mut arrow = Ok (None) ; ; let mut name = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Struct , 3u16 > (& mut input) ? . on_field_id :: < Struct , 8u16 > (& mut output) ? . on_field_id :: < KeywordMethod , 5u16 > (& mut keyword) ? . on_field_id :: < Arrow , 1u16 > (& mut arrow) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_vec_children_id (& mut children) }) ; Ok (Self { input : input ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (input) , } }) ? , output : output ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (output) , } }) ? , keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , arrow : arrow ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (arrow) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Struct { pub member : Vec < auto_lsp :: core :: ast :: AstNodeId < StructField >> , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Struct { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 31u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Struct { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut member = vec ! [] ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_vec_field_id :: < StructField , 6u16 > (& mut member) ? . on_vec_children_id (& mut children) }) ; Ok (Self { member , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct StructField { pub name : auto_lsp :: core :: ast :: AstNodeId < FieldName > , pub value : auto_lsp :: core :: ast :: AstNodeId < Type > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for StructField { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 32u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for StructField { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < FieldName , 7u16 > (& mut name) ? . on_field_id :: < Type , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Type { pub children : auto_lsp :: core :: ast :: AstNodeId < Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Type { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 34u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Type { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_children_id (& mut children) }) ; Ok (Self { children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Typedef { pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordType > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub value : auto_lsp :: core :: ast :: AstNodeId < Enum_Struct > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Typedef { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 28u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Typedef { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut keyword = Ok (None) ; ; let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < KeywordType , 5u16 > (& mut keyword) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_field_id :: < Enum_Struct , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Typeref { pub children : auto_lsp :: core :: ast :: AstNodeId < Name > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Typeref { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 39u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Typeref { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_children_id (& mut children) }) ; Ok (Self { children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Name) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_LeftParen { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_LeftParen { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 9u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_LeftParen { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_RightParen { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_RightParen { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 11u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_RightParen { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_Comma { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_Comma { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 10u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_Comma { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_Colon { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_Colon { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 12u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_Colon { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_LeftBracket { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_LeftBracket { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 14u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_LeftBracket { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_RightBracket { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_RightBracket { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 15u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_RightBracket { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Arrow { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Arrow { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 8u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Arrow { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Bool { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Bool { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 16u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Bool { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Comment { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Comment { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Eol { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Eol { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 3u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Eol { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct FieldName { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for FieldName { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 22u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for FieldName { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Float { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Float { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 18u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Float { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Int { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Int { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 17u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Int { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct InterfaceName { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for InterfaceName { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 23u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for InterfaceName { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordError { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordError { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 6u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordError { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordInterface { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordInterface { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 4u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordInterface { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordMethod { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordMethod { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 7u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordMethod { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordType { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordType { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 5u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordType { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Name { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Name { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 21u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Name { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Object { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Object { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 20u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Object { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Questionmark { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Questionmark { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 13u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Questionmark { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct String { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for String { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 19u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for String { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub enum Comment_Eol_Error_Method_Typedef { Comment (Comment) , Eol (Eol) , Error (Error) , Method (Method) , Typedef (Typedef) } impl auto_lsp :: core :: ast :: AstNode for Comment_Eol_Error_Method_Typedef { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16 | 3u16 | 29u16 | 30u16 | 28u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Comment (node) => node . lower () , Self :: Eol (node) => node . lower () , Self :: Error (node) => node . lower () , Self :: Method (node) => node . lower () , Self :: Typedef (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Comment (node) => node . get_id () , Self :: Eol (node) => node . get_id () , Self :: Error (node) => node . get_id () , Self :: Method (node) => node . get_id () , Self :: Typedef (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Comment (node) => node . get_parent_id () , Self :: Eol (node) => node . get_parent_id () , Self :: Error (node) => node . get_parent_id () , Self :: Method (node) => node . get_parent_id () , Self :: Typedef (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Comment (node) => node . get_range () , Self :: Eol (node) => node . get_range () , Self :: Error (node) => node . get_range () , Self :: Method (node) => node . get_range () , Self :: Typedef (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment_Eol_Error_Method_Typedef { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 2u16 => Ok (Self :: Comment (Comment :: try_from ((node , db , builder , id , parent_id)) ?)) , 3u16 => Ok (Self :: Eol (Eol :: try_from ((node , db , builder , id , parent_id)) ?)) , 29u16 => Ok (Self :: Error (Error :: try_from ((node , db , builder , id , parent_id)) ?)) , 30u16 => Ok (Self :: Method (Method :: try_from ((node , db , builder , id , parent_id)) ?)) , 28u16 => Ok (Self :: Typedef (Typedef :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Comment_Eol_Error_Method_Typedef) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { Array (Array) , Bool (Bool) , Dict (Dict) , Enum (Enum) , Float (Float) , Int (Int) , Maybe (Maybe) , Object (Object) , String (String) , Struct (Struct) , Typeref (Typeref) } impl auto_lsp :: core :: ast :: AstNode for Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 37u16 | 16u16 | 38u16 | 33u16 | 18u16 | 17u16 | 35u16 | 20u16 | 19u16 | 31u16 | 39u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Array (node) => node . lower () , Self :: Bool (node) => node . lower () , Self :: Dict (node) => node . lower () , Self :: Enum (node) => node . lower () , Self :: Float (node) => node . lower () , Self :: Int (node) => node . lower () , Self :: Maybe (node) => node . lower () , Self :: Object (node) => node . lower () , Self :: String (node) => node . lower () , Self :: Struct (node) => node . lower () , Self :: Typeref (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Array (node) => node . get_id () , Self :: Bool (node) => node . get_id () , Self :: Dict (node) => node . get_id () , Self :: Enum (node) => node . get_id () , Self :: Float (node) => node . get_id () , Self :: Int (node) => node . get_id () , Self :: Maybe (node) => node . get_id () , Self :: Object (node) => node . get_id () , Self :: String (node) => node . get_id () , Self :: Struct (node) => node . get_id () , Self :: Typeref (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Array (node) => node . get_parent_id () , Self :: Bool (node) => node . get_parent_id () , Self :: Dict (node) => node . get_parent_id () , Self :: Enum (node) => node . get_parent_id () , Self :: Float (node) => node . get_parent_id () , Self :: Int (node) => node . get_parent_id () , Self :: Maybe (node) => node . get_parent_id () , Self :: Object (node) => node . get_parent_id () , Self :: String (node) => node . get_parent_id () , Self :: Struct (node) => node . get_parent_id () , Self :: Typeref (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Array (node) => node . get_range () , Self :: Bool (node) => node . get_range () , Self :: Dict (node) => node . get_range () , Self :: Enum (node) => node . get_range () , Self :: Float (node) => node . get_range () , Self :: Int (node) => node . get_range () , Self :: Maybe (node) => node . get_range () , Self :: Object (node) => node . get_range () , Self :: String (node) => node . get_range () , Self :: Struct (node) => node . get_range () , Self :: Typeref (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 37u16 => Ok (Self :: Array (Array :: try_from ((node , db , builder , id , parent_id)) ?)) , 16u16 => Ok (Self :: Bool (Bool :: try_from ((node , db , builder , id , parent_id)) ?)) , 38u16 => Ok (Self :: Dict (Dict :: try_from ((node , db , builder , id , parent_id)) ?)) , 33u16 => Ok (Self :: Enum (Enum :: try_from ((node , db , builder , id , parent_id)) ?)) , 18u16 => Ok (Self :: Float (Float :: try_from ((node , db , builder , id , parent_id)) ?)) , 17u16 => Ok (Self :: Int (Int :: try_from ((node , db , builder , id , parent_id)) ?)) , 35u16 => Ok (Self :: Maybe (Maybe :: try_from ((node , db , builder , id , parent_id)) ?)) , 20u16 => Ok (Self :: Object (Object :: try_from ((node , db , builder , id , parent_id)) ?)) , 19u16 => Ok (Self :: String (String :: try_from ((node , db , builder , id , parent_id)) ?)) , 31u16 => Ok (Self :: Struct (Struct :: try_from ((node , db , builder , id , parent_id)) ?)) , 39u16 => Ok (Self :: Typeref (Typeref :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Enum_Struct { Enum (Enum) , Struct (Struct) } impl auto_lsp :: core :: ast :: AstNode for Enum_Struct { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 33u16 | 31u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Enum (node) => node . lower () , Self :: Struct (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Enum (node) => node . get_id () , Self :: Struct (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Enum (node) => node . get_parent_id () , Self :: Struct (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Enum (node) => node . get_range () , Self :: Struct (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Enum_Struct { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 33u16 => Ok (Self :: Enum (Enum :: try_from ((node , db , builder , id , parent_id)) ?)) , 31u16 => Ok (Self :: Struct (Struct :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Enum_Struct) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Comment_Eol { Comment (Comment) , Eol (Eol) } impl auto_lsp :: core :: ast :: AstNode for Comment_Eol { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16 | 3u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Comment (node) => node . lower () , Self :: Eol (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Comment (node) => node . get_id () , Self :: Eol (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Comment (node) => node . get_parent_id () , Self :: Eol (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Comment (node) => node . get_range () , Self :: Eol (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment_Eol { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 2u16 => Ok (Self :: Comment (Comment :: try_from ((node , db , builder , id , parent_id)) ?)) , 3u16 => Ok (Self :: Eol (Eol :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Comment_Eol) , }) } } }
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `AstNodeId` in module `auto_lsp::core::ast`
[INFO] [stdout]   --> src/ast.rs:1:4593
[INFO] [stdout]    |
[INFO] [stdout]  1 | ...Id < KeywordError > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub value : auto_lsp :: core :: ast :: AstNodeId...
[INFO] [stdout]    |                                                                ^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]   ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/auto-lsp-core-0.7.0/src/ast/node.rs:26:1
[INFO] [stdout]    |
[INFO] [stdout] 26 | pub trait AstNode: std::fmt::Debug + Send + Sync + DowncastSync {
[INFO] [stdout]    | --------------------------------------------------------------- similarly named trait `AstNode` defined here
[INFO] [stdout]    |
[INFO] [stdout] help: a trait with a similar name exists
[INFO] [stdout]    |
[INFO] [stdout]  1 - # ! [allow (clippy :: all)] # ! [allow (unused)] # ! [allow (dead_code)] # ! [allow (non_camel_case_types)] # ! [allow (non_snake_case)] # [derive (Debug , Clone , PartialEq)] pub struct Array { pub Type : auto_lsp :: core :: ast :: AstNodeId < Type > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Array { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 37u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Array { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut Type = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Type , 10u16 > (& mut Type) }) ; Ok (Self { Type : Type ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Type) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Dict { pub Type : auto_lsp :: core :: ast :: AstNodeId < Type > , pub children : auto_lsp :: core :: ast :: AstNodeId < String > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Dict { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 38u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Dict { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut Type = Ok (None) ; ; let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Type , 10u16 > (& mut Type) ? . on_children_id (& mut children) }) ; Ok (Self { Type : Type ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Type) , } }) ? , children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (String) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Enum { pub member : Vec < auto_lsp :: core :: ast :: AstNodeId < FieldName >> , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Enum { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 33u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Enum { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut member = vec ! [] ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_vec_field_id :: < FieldName , 6u16 > (& mut member) ? . on_vec_children_id (& mut children) }) ; Ok (Self { member , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Error { pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordError > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub value : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Error { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 29u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Error { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut keyword = Ok (None) ; ; let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < KeywordError , 5u16 > (& mut keyword) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_field_id :: < Struct , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Interface { pub declaration : auto_lsp :: core :: ast :: AstNodeId < InterfaceDeclaration > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol_Error_Method_Typedef >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Interface { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 24u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Interface { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut declaration = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < InterfaceDeclaration , 2u16 > (& mut declaration) ? . on_vec_children_id (& mut children) }) ; Ok (Self { declaration : declaration ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (declaration) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct InterfaceDeclaration { pub name : auto_lsp :: core :: ast :: AstNodeId < InterfaceName > , pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordInterface > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for InterfaceDeclaration { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 27u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for InterfaceDeclaration { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut name = Ok (None) ; ; let mut keyword = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < InterfaceName , 7u16 > (& mut name) ? . on_field_id :: < KeywordInterface , 5u16 > (& mut keyword) ? . on_vec_children_id (& mut children) }) ; Ok (Self { name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Maybe { pub questionmark : auto_lsp :: core :: ast :: AstNodeId < Questionmark > , pub just : auto_lsp :: core :: ast :: AstNodeId < Type > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Maybe { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 35u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Maybe { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut questionmark = Ok (None) ; ; let mut just = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Questionmark , 9u16 > (& mut questionmark) ? . on_field_id :: < Type , 4u16 > (& mut just) }) ; Ok (Self { questionmark : questionmark ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (questionmark) , } }) ? , just : just ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (just) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Method { pub input : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub output : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordMethod > , pub arrow : auto_lsp :: core :: ast :: AstNodeId < Arrow > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Method { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 30u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Method { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut input = Ok (None) ; ; let mut output = Ok (None) ; ; let mut keyword = Ok (None) ; ; let mut arrow = Ok (None) ; ; let mut name = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Struct , 3u16 > (& mut input) ? . on_field_id :: < Struct , 8u16 > (& mut output) ? . on_field_id :: < KeywordMethod , 5u16 > (& mut keyword) ? . on_field_id :: < Arrow , 1u16 > (& mut arrow) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_vec_children_id (& mut children) }) ; Ok (Self { input : input ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (input) , } }) ? , output : output ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (output) , } }) ? , keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , arrow : arrow ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (arrow) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Struct { pub member : Vec < auto_lsp :: core :: ast :: AstNodeId < StructField >> , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Struct { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 31u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Struct { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut member = vec ! [] ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_vec_field_id :: < StructField , 6u16 > (& mut member) ? . on_vec_children_id (& mut children) }) ; Ok (Self { member , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct StructField { pub name : auto_lsp :: core :: ast :: AstNodeId < FieldName > , pub value : auto_lsp :: core :: ast :: AstNodeId < Type > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for StructField { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 32u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for StructField { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < FieldName , 7u16 > (& mut name) ? . on_field_id :: < Type , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Type { pub children : auto_lsp :: core :: ast :: AstNodeId < Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Type { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 34u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Type { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_children_id (& mut children) }) ; Ok (Self { children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Typedef { pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordType > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub value : auto_lsp :: core :: ast :: AstNodeId < Enum_Struct > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Typedef { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 28u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Typedef { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut keyword = Ok (None) ; ; let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < KeywordType , 5u16 > (& mut keyword) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_field_id :: < Enum_Struct , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Typeref { pub children : auto_lsp :: core :: ast :: AstNodeId < Name > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Typeref { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 39u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Typeref { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_children_id (& mut children) }) ; Ok (Self { children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Name) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_LeftParen { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_LeftParen { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 9u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_LeftParen { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_RightParen { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_RightParen { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 11u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_RightParen { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_Comma { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_Comma { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 10u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_Comma { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_Colon { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_Colon { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 12u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_Colon { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_LeftBracket { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_LeftBracket { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 14u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_LeftBracket { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_RightBracket { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_RightBracket { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 15u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_RightBracket { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Arrow { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Arrow { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 8u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Arrow { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Bool { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Bool { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 16u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Bool { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Comment { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Comment { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Eol { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Eol { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 3u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Eol { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct FieldName { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for FieldName { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 22u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for FieldName { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Float { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Float { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 18u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Float { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Int { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Int { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 17u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Int { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct InterfaceName { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for InterfaceName { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 23u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for InterfaceName { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordError { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordError { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 6u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordError { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordInterface { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordInterface { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 4u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordInterface { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordMethod { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordMethod { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 7u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordMethod { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordType { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordType { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 5u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordType { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Name { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Name { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 21u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Name { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Object { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Object { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 20u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Object { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Questionmark { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Questionmark { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 13u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Questionmark { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct String { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for String { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 19u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for String { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub enum Comment_Eol_Error_Method_Typedef { Comment (Comment) , Eol (Eol) , Error (Error) , Method (Method) , Typedef (Typedef) } impl auto_lsp :: core :: ast :: AstNode for Comment_Eol_Error_Method_Typedef { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16 | 3u16 | 29u16 | 30u16 | 28u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Comment (node) => node . lower () , Self :: Eol (node) => node . lower () , Self :: Error (node) => node . lower () , Self :: Method (node) => node . lower () , Self :: Typedef (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Comment (node) => node . get_id () , Self :: Eol (node) => node . get_id () , Self :: Error (node) => node . get_id () , Self :: Method (node) => node . get_id () , Self :: Typedef (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Comment (node) => node . get_parent_id () , Self :: Eol (node) => node . get_parent_id () , Self :: Error (node) => node . get_parent_id () , Self :: Method (node) => node . get_parent_id () , Self :: Typedef (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Comment (node) => node . get_range () , Self :: Eol (node) => node . get_range () , Self :: Error (node) => node . get_range () , Self :: Method (node) => node . get_range () , Self :: Typedef (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment_Eol_Error_Method_Typedef { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 2u16 => Ok (Self :: Comment (Comment :: try_from ((node , db , builder , id , parent_id)) ?)) , 3u16 => Ok (Self :: Eol (Eol :: try_from ((node , db , builder , id , parent_id)) ?)) , 29u16 => Ok (Self :: Error (Error :: try_from ((node , db , builder , id , parent_id)) ?)) , 30u16 => Ok (Self :: Method (Method :: try_from ((node , db , builder , id , parent_id)) ?)) , 28u16 => Ok (Self :: Typedef (Typedef :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Comment_Eol_Error_Method_Typedef) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { Array (Array) , Bool (Bool) , Dict (Dict) , Enum (Enum) , Float (Float) , Int (Int) , Maybe (Maybe) , Object (Object) , String (String) , Struct (Struct) , Typeref (Typeref) } impl auto_lsp :: core :: ast :: AstNode for Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 37u16 | 16u16 | 38u16 | 33u16 | 18u16 | 17u16 | 35u16 | 20u16 | 19u16 | 31u16 | 39u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Array (node) => node . lower () , Self :: Bool (node) => node . lower () , Self :: Dict (node) => node . lower () , Self :: Enum (node) => node . lower () , Self :: Float (node) => node . lower () , Self :: Int (node) => node . lower () , Self :: Maybe (node) => node . lower () , Self :: Object (node) => node . lower () , Self :: String (node) => node . lower () , Self :: Struct (node) => node . lower () , Self :: Typeref (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Array (node) => node . get_id () , Self :: Bool (node) => node . get_id () , Self :: Dict (node) => node . get_id () , Self :: Enum (node) => node . get_id () , Self :: Float (node) => node . get_id () , Self :: Int (node) => node . get_id () , Self :: Maybe (node) => node . get_id () , Self :: Object (node) => node . get_id () , Self :: String (node) => node . get_id () , Self :: Struct (node) => node . get_id () , Self :: Typeref (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Array (node) => node . get_parent_id () , Self :: Bool (node) => node . get_parent_id () , Self :: Dict (node) => node . get_parent_id () , Self :: Enum (node) => node . get_parent_id () , Self :: Float (node) => node . get_parent_id () , Self :: Int (node) => node . get_parent_id () , Self :: Maybe (node) => node . get_parent_id () , Self :: Object (node) => node . get_parent_id () , Self :: String (node) => node . get_parent_id () , Self :: Struct (node) => node . get_parent_id () , Self :: Typeref (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Array (node) => node . get_range () , Self :: Bool (node) => node . get_range () , Self :: Dict (node) => node . get_range () , Self :: Enum (node) => node . get_range () , Self :: Float (node) => node . get_range () , Self :: Int (node) => node . get_range () , Self :: Maybe (node) => node . get_range () , Self :: Object (node) => node . get_range () , Self :: String (node) => node . get_range () , Self :: Struct (node) => node . get_range () , Self :: Typeref (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 37u16 => Ok (Self :: Array (Array :: try_from ((node , db , builder , id , parent_id)) ?)) , 16u16 => Ok (Self :: Bool (Bool :: try_from ((node , db , builder , id , parent_id)) ?)) , 38u16 => Ok (Self :: Dict (Dict :: try_from ((node , db , builder , id , parent_id)) ?)) , 33u16 => Ok (Self :: Enum (Enum :: try_from ((node , db , builder , id , parent_id)) ?)) , 18u16 => Ok (Self :: Float (Float :: try_from ((node , db , builder , id , parent_id)) ?)) , 17u16 => Ok (Self :: Int (Int :: try_from ((node , db , builder , id , parent_id)) ?)) , 35u16 => Ok (Self :: Maybe (Maybe :: try_from ((node , db , builder , id , parent_id)) ?)) , 20u16 => Ok (Self :: Object (Object :: try_from ((node , db , builder , id , parent_id)) ?)) , 19u16 => Ok (Self :: String (String :: try_from ((node , db , builder , id , parent_id)) ?)) , 31u16 => Ok (Self :: Struct (Struct :: try_from ((node , db , builder , id , parent_id)) ?)) , 39u16 => Ok (Self :: Typeref (Typeref :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Enum_Struct { Enum (Enum) , Struct (Struct) } impl auto_lsp :: core :: ast :: AstNode for Enum_Struct { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 33u16 | 31u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Enum (node) => node . lower () , Self :: Struct (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Enum (node) => node . get_id () , Self :: Struct (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Enum (node) => node . get_parent_id () , Self :: Struct (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Enum (node) => node . get_range () , Self :: Struct (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Enum_Struct { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 33u16 => Ok (Self :: Enum (Enum :: try_from ((node , db , builder , id , parent_id)) ?)) , 31u16 => Ok (Self :: Struct (Struct :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Enum_Struct) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Comment_Eol { Comment (Comment) , Eol (Eol) } impl auto_lsp :: core :: ast :: AstNode for Comment_Eol { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16 | 3u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Comment (node) => node . lower () , Self :: Eol (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Comment (node) => node . get_id () , Self :: Eol (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Comment (node) => node . get_parent_id () , Self :: Eol (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Comment (node) => node . get_range () , Self :: Eol (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment_Eol { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 2u16 => Ok (Self :: Comment (Comment :: try_from ((node , db , builder , id , parent_id)) ?)) , 3u16 => Ok (Self :: Eol (Eol :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Comment_Eol) , }) } } }
[INFO] [stdout]  1 + # ! [allow (clippy :: all)] # ! [allow (unused)] # ! [allow (dead_code)] # ! [allow (non_camel_case_types)] # ! [allow (non_snake_case)] # [derive (Debug , Clone , PartialEq)] pub struct Array { pub Type : auto_lsp :: core :: ast :: AstNodeId < Type > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Array { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 37u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Array { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut Type = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Type , 10u16 > (& mut Type) }) ; Ok (Self { Type : Type ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Type) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Dict { pub Type : auto_lsp :: core :: ast :: AstNodeId < Type > , pub children : auto_lsp :: core :: ast :: AstNodeId < String > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Dict { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 38u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Dict { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut Type = Ok (None) ; ; let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Type , 10u16 > (& mut Type) ? . on_children_id (& mut children) }) ; Ok (Self { Type : Type ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Type) , } }) ? , children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (String) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Enum { pub member : Vec < auto_lsp :: core :: ast :: AstNodeId < FieldName >> , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Enum { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 33u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Enum { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut member = vec ! [] ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_vec_field_id :: < FieldName , 6u16 > (& mut member) ? . on_vec_children_id (& mut children) }) ; Ok (Self { member , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Error { pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordError > , pub name : auto_lsp :: core :: ast :: AstNode < Name > , pub value : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Error { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 29u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Error { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut keyword = Ok (None) ; ; let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < KeywordError , 5u16 > (& mut keyword) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_field_id :: < Struct , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Interface { pub declaration : auto_lsp :: core :: ast :: AstNodeId < InterfaceDeclaration > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol_Error_Method_Typedef >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Interface { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 24u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Interface { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut declaration = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < InterfaceDeclaration , 2u16 > (& mut declaration) ? . on_vec_children_id (& mut children) }) ; Ok (Self { declaration : declaration ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (declaration) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct InterfaceDeclaration { pub name : auto_lsp :: core :: ast :: AstNodeId < InterfaceName > , pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordInterface > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for InterfaceDeclaration { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 27u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for InterfaceDeclaration { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut name = Ok (None) ; ; let mut keyword = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < InterfaceName , 7u16 > (& mut name) ? . on_field_id :: < KeywordInterface , 5u16 > (& mut keyword) ? . on_vec_children_id (& mut children) }) ; Ok (Self { name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Maybe { pub questionmark : auto_lsp :: core :: ast :: AstNodeId < Questionmark > , pub just : auto_lsp :: core :: ast :: AstNodeId < Type > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Maybe { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 35u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Maybe { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut questionmark = Ok (None) ; ; let mut just = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Questionmark , 9u16 > (& mut questionmark) ? . on_field_id :: < Type , 4u16 > (& mut just) }) ; Ok (Self { questionmark : questionmark ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (questionmark) , } }) ? , just : just ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (just) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Method { pub input : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub output : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordMethod > , pub arrow : auto_lsp :: core :: ast :: AstNodeId < Arrow > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Method { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 30u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Method { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut input = Ok (None) ; ; let mut output = Ok (None) ; ; let mut keyword = Ok (None) ; ; let mut arrow = Ok (None) ; ; let mut name = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Struct , 3u16 > (& mut input) ? . on_field_id :: < Struct , 8u16 > (& mut output) ? . on_field_id :: < KeywordMethod , 5u16 > (& mut keyword) ? . on_field_id :: < Arrow , 1u16 > (& mut arrow) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_vec_children_id (& mut children) }) ; Ok (Self { input : input ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (input) , } }) ? , output : output ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (output) , } }) ? , keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , arrow : arrow ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (arrow) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Struct { pub member : Vec < auto_lsp :: core :: ast :: AstNodeId < StructField >> , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Struct { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 31u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Struct { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut member = vec ! [] ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_vec_field_id :: < StructField , 6u16 > (& mut member) ? . on_vec_children_id (& mut children) }) ; Ok (Self { member , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct StructField { pub name : auto_lsp :: core :: ast :: AstNodeId < FieldName > , pub value : auto_lsp :: core :: ast :: AstNodeId < Type > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for StructField { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 32u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for StructField { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < FieldName , 7u16 > (& mut name) ? . on_field_id :: < Type , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Type { pub children : auto_lsp :: core :: ast :: AstNodeId < Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Type { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 34u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Type { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_children_id (& mut children) }) ; Ok (Self { children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Typedef { pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordType > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub value : auto_lsp :: core :: ast :: AstNodeId < Enum_Struct > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Typedef { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 28u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Typedef { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut keyword = Ok (None) ; ; let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < KeywordType , 5u16 > (& mut keyword) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_field_id :: < Enum_Struct , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Typeref { pub children : auto_lsp :: core :: ast :: AstNodeId < Name > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Typeref { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 39u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Typeref { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_children_id (& mut children) }) ; Ok (Self { children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Name) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_LeftParen { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_LeftParen { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 9u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_LeftParen { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_RightParen { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_RightParen { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 11u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_RightParen { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_Comma { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_Comma { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 10u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_Comma { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_Colon { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_Colon { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 12u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_Colon { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_LeftBracket { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_LeftBracket { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 14u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_LeftBracket { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_RightBracket { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_RightBracket { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 15u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_RightBracket { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Arrow { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Arrow { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 8u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Arrow { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Bool { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Bool { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 16u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Bool { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Comment { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Comment { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Eol { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Eol { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 3u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Eol { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct FieldName { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for FieldName { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 22u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for FieldName { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Float { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Float { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 18u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Float { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Int { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Int { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 17u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Int { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct InterfaceName { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for InterfaceName { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 23u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for InterfaceName { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordError { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordError { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 6u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordError { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordInterface { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordInterface { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 4u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordInterface { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordMethod { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordMethod { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 7u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordMethod { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordType { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordType { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 5u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordType { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Name { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Name { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 21u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Name { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Object { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Object { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 20u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Object { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Questionmark { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Questionmark { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 13u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Questionmark { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct String { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for String { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 19u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for String { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub enum Comment_Eol_Error_Method_Typedef { Comment (Comment) , Eol (Eol) , Error (Error) , Method (Method) , Typedef (Typedef) } impl auto_lsp :: core :: ast :: AstNode for Comment_Eol_Error_Method_Typedef { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16 | 3u16 | 29u16 | 30u16 | 28u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Comment (node) => node . lower () , Self :: Eol (node) => node . lower () , Self :: Error (node) => node . lower () , Self :: Method (node) => node . lower () , Self :: Typedef (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Comment (node) => node . get_id () , Self :: Eol (node) => node . get_id () , Self :: Error (node) => node . get_id () , Self :: Method (node) => node . get_id () , Self :: Typedef (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Comment (node) => node . get_parent_id () , Self :: Eol (node) => node . get_parent_id () , Self :: Error (node) => node . get_parent_id () , Self :: Method (node) => node . get_parent_id () , Self :: Typedef (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Comment (node) => node . get_range () , Self :: Eol (node) => node . get_range () , Self :: Error (node) => node . get_range () , Self :: Method (node) => node . get_range () , Self :: Typedef (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment_Eol_Error_Method_Typedef { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 2u16 => Ok (Self :: Comment (Comment :: try_from ((node , db , builder , id , parent_id)) ?)) , 3u16 => Ok (Self :: Eol (Eol :: try_from ((node , db , builder , id , parent_id)) ?)) , 29u16 => Ok (Self :: Error (Error :: try_from ((node , db , builder , id , parent_id)) ?)) , 30u16 => Ok (Self :: Method (Method :: try_from ((node , db , builder , id , parent_id)) ?)) , 28u16 => Ok (Self :: Typedef (Typedef :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Comment_Eol_Error_Method_Typedef) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { Array (Array) , Bool (Bool) , Dict (Dict) , Enum (Enum) , Float (Float) , Int (Int) , Maybe (Maybe) , Object (Object) , String (String) , Struct (Struct) , Typeref (Typeref) } impl auto_lsp :: core :: ast :: AstNode for Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 37u16 | 16u16 | 38u16 | 33u16 | 18u16 | 17u16 | 35u16 | 20u16 | 19u16 | 31u16 | 39u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Array (node) => node . lower () , Self :: Bool (node) => node . lower () , Self :: Dict (node) => node . lower () , Self :: Enum (node) => node . lower () , Self :: Float (node) => node . lower () , Self :: Int (node) => node . lower () , Self :: Maybe (node) => node . lower () , Self :: Object (node) => node . lower () , Self :: String (node) => node . lower () , Self :: Struct (node) => node . lower () , Self :: Typeref (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Array (node) => node . get_id () , Self :: Bool (node) => node . get_id () , Self :: Dict (node) => node . get_id () , Self :: Enum (node) => node . get_id () , Self :: Float (node) => node . get_id () , Self :: Int (node) => node . get_id () , Self :: Maybe (node) => node . get_id () , Self :: Object (node) => node . get_id () , Self :: String (node) => node . get_id () , Self :: Struct (node) => node . get_id () , Self :: Typeref (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Array (node) => node . get_parent_id () , Self :: Bool (node) => node . get_parent_id () , Self :: Dict (node) => node . get_parent_id () , Self :: Enum (node) => node . get_parent_id () , Self :: Float (node) => node . get_parent_id () , Self :: Int (node) => node . get_parent_id () , Self :: Maybe (node) => node . get_parent_id () , Self :: Object (node) => node . get_parent_id () , Self :: String (node) => node . get_parent_id () , Self :: Struct (node) => node . get_parent_id () , Self :: Typeref (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Array (node) => node . get_range () , Self :: Bool (node) => node . get_range () , Self :: Dict (node) => node . get_range () , Self :: Enum (node) => node . get_range () , Self :: Float (node) => node . get_range () , Self :: Int (node) => node . get_range () , Self :: Maybe (node) => node . get_range () , Self :: Object (node) => node . get_range () , Self :: String (node) => node . get_range () , Self :: Struct (node) => node . get_range () , Self :: Typeref (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 37u16 => Ok (Self :: Array (Array :: try_from ((node , db , builder , id , parent_id)) ?)) , 16u16 => Ok (Self :: Bool (Bool :: try_from ((node , db , builder , id , parent_id)) ?)) , 38u16 => Ok (Self :: Dict (Dict :: try_from ((node , db , builder , id , parent_id)) ?)) , 33u16 => Ok (Self :: Enum (Enum :: try_from ((node , db , builder , id , parent_id)) ?)) , 18u16 => Ok (Self :: Float (Float :: try_from ((node , db , builder , id , parent_id)) ?)) , 17u16 => Ok (Self :: Int (Int :: try_from ((node , db , builder , id , parent_id)) ?)) , 35u16 => Ok (Self :: Maybe (Maybe :: try_from ((node , db , builder , id , parent_id)) ?)) , 20u16 => Ok (Self :: Object (Object :: try_from ((node , db , builder , id , parent_id)) ?)) , 19u16 => Ok (Self :: String (String :: try_from ((node , db , builder , id , parent_id)) ?)) , 31u16 => Ok (Self :: Struct (Struct :: try_from ((node , db , builder , id , parent_id)) ?)) , 39u16 => Ok (Self :: Typeref (Typeref :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Enum_Struct { Enum (Enum) , Struct (Struct) } impl auto_lsp :: core :: ast :: AstNode for Enum_Struct { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 33u16 | 31u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Enum (node) => node . lower () , Self :: Struct (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Enum (node) => node . get_id () , Self :: Struct (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Enum (node) => node . get_parent_id () , Self :: Struct (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Enum (node) => node . get_range () , Self :: Struct (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Enum_Struct { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 33u16 => Ok (Self :: Enum (Enum :: try_from ((node , db , builder , id , parent_id)) ?)) , 31u16 => Ok (Self :: Struct (Struct :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Enum_Struct) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Comment_Eol { Comment (Comment) , Eol (Eol) } impl auto_lsp :: core :: ast :: AstNode for Comment_Eol { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16 | 3u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Comment (node) => node . lower () , Self :: Eol (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Comment (node) => node . get_id () , Self :: Eol (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Comment (node) => node . get_parent_id () , Self :: Eol (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Comment (node) => node . get_range () , Self :: Eol (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment_Eol { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 2u16 => Ok (Self :: Comment (Comment :: try_from ((node , db , builder , id , parent_id)) ?)) , 3u16 => Ok (Self :: Eol (Eol :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Comment_Eol) , }) } } }
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `AstNodeId` in module `auto_lsp::core::ast`
[INFO] [stdout]   --> src/ast.rs:1:4653
[INFO] [stdout]    |
[INFO] [stdout]  1 | ...AstNodeId < Name > , pub value : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub children : Vec < auto_lsp :: core :: ast :...
[INFO] [stdout]    |                                                                ^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]   ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/auto-lsp-core-0.7.0/src/ast/node.rs:26:1
[INFO] [stdout]    |
[INFO] [stdout] 26 | pub trait AstNode: std::fmt::Debug + Send + Sync + DowncastSync {
[INFO] [stdout]    | --------------------------------------------------------------- similarly named trait `AstNode` defined here
[INFO] [stdout]    |
[INFO] [stdout] help: a trait with a similar name exists
[INFO] [stdout]    |
[INFO] [stdout]  1 - # ! [allow (clippy :: all)] # ! [allow (unused)] # ! [allow (dead_code)] # ! [allow (non_camel_case_types)] # ! [allow (non_snake_case)] # [derive (Debug , Clone , PartialEq)] pub struct Array { pub Type : auto_lsp :: core :: ast :: AstNodeId < Type > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Array { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 37u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Array { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut Type = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Type , 10u16 > (& mut Type) }) ; Ok (Self { Type : Type ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Type) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Dict { pub Type : auto_lsp :: core :: ast :: AstNodeId < Type > , pub children : auto_lsp :: core :: ast :: AstNodeId < String > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Dict { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 38u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Dict { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut Type = Ok (None) ; ; let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Type , 10u16 > (& mut Type) ? . on_children_id (& mut children) }) ; Ok (Self { Type : Type ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Type) , } }) ? , children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (String) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Enum { pub member : Vec < auto_lsp :: core :: ast :: AstNodeId < FieldName >> , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Enum { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 33u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Enum { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut member = vec ! [] ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_vec_field_id :: < FieldName , 6u16 > (& mut member) ? . on_vec_children_id (& mut children) }) ; Ok (Self { member , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Error { pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordError > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub value : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Error { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 29u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Error { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut keyword = Ok (None) ; ; let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < KeywordError , 5u16 > (& mut keyword) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_field_id :: < Struct , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Interface { pub declaration : auto_lsp :: core :: ast :: AstNodeId < InterfaceDeclaration > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol_Error_Method_Typedef >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Interface { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 24u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Interface { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut declaration = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < InterfaceDeclaration , 2u16 > (& mut declaration) ? . on_vec_children_id (& mut children) }) ; Ok (Self { declaration : declaration ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (declaration) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct InterfaceDeclaration { pub name : auto_lsp :: core :: ast :: AstNodeId < InterfaceName > , pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordInterface > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for InterfaceDeclaration { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 27u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for InterfaceDeclaration { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut name = Ok (None) ; ; let mut keyword = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < InterfaceName , 7u16 > (& mut name) ? . on_field_id :: < KeywordInterface , 5u16 > (& mut keyword) ? . on_vec_children_id (& mut children) }) ; Ok (Self { name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Maybe { pub questionmark : auto_lsp :: core :: ast :: AstNodeId < Questionmark > , pub just : auto_lsp :: core :: ast :: AstNodeId < Type > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Maybe { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 35u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Maybe { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut questionmark = Ok (None) ; ; let mut just = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Questionmark , 9u16 > (& mut questionmark) ? . on_field_id :: < Type , 4u16 > (& mut just) }) ; Ok (Self { questionmark : questionmark ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (questionmark) , } }) ? , just : just ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (just) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Method { pub input : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub output : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordMethod > , pub arrow : auto_lsp :: core :: ast :: AstNodeId < Arrow > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Method { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 30u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Method { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut input = Ok (None) ; ; let mut output = Ok (None) ; ; let mut keyword = Ok (None) ; ; let mut arrow = Ok (None) ; ; let mut name = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Struct , 3u16 > (& mut input) ? . on_field_id :: < Struct , 8u16 > (& mut output) ? . on_field_id :: < KeywordMethod , 5u16 > (& mut keyword) ? . on_field_id :: < Arrow , 1u16 > (& mut arrow) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_vec_children_id (& mut children) }) ; Ok (Self { input : input ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (input) , } }) ? , output : output ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (output) , } }) ? , keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , arrow : arrow ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (arrow) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Struct { pub member : Vec < auto_lsp :: core :: ast :: AstNodeId < StructField >> , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Struct { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 31u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Struct { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut member = vec ! [] ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_vec_field_id :: < StructField , 6u16 > (& mut member) ? . on_vec_children_id (& mut children) }) ; Ok (Self { member , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct StructField { pub name : auto_lsp :: core :: ast :: AstNodeId < FieldName > , pub value : auto_lsp :: core :: ast :: AstNodeId < Type > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for StructField { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 32u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for StructField { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < FieldName , 7u16 > (& mut name) ? . on_field_id :: < Type , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Type { pub children : auto_lsp :: core :: ast :: AstNodeId < Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Type { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 34u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Type { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_children_id (& mut children) }) ; Ok (Self { children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Typedef { pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordType > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub value : auto_lsp :: core :: ast :: AstNodeId < Enum_Struct > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Typedef { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 28u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Typedef { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut keyword = Ok (None) ; ; let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < KeywordType , 5u16 > (& mut keyword) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_field_id :: < Enum_Struct , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Typeref { pub children : auto_lsp :: core :: ast :: AstNodeId < Name > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Typeref { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 39u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Typeref { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_children_id (& mut children) }) ; Ok (Self { children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Name) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_LeftParen { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_LeftParen { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 9u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_LeftParen { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_RightParen { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_RightParen { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 11u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_RightParen { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_Comma { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_Comma { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 10u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_Comma { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_Colon { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_Colon { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 12u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_Colon { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_LeftBracket { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_LeftBracket { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 14u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_LeftBracket { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_RightBracket { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_RightBracket { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 15u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_RightBracket { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Arrow { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Arrow { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 8u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Arrow { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Bool { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Bool { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 16u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Bool { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Comment { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Comment { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Eol { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Eol { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 3u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Eol { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct FieldName { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for FieldName { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 22u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for FieldName { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Float { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Float { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 18u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Float { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Int { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Int { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 17u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Int { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct InterfaceName { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for InterfaceName { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 23u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for InterfaceName { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordError { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordError { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 6u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordError { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordInterface { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordInterface { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 4u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordInterface { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordMethod { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordMethod { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 7u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordMethod { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordType { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordType { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 5u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordType { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Name { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Name { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 21u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Name { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Object { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Object { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 20u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Object { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Questionmark { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Questionmark { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 13u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Questionmark { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct String { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for String { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 19u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for String { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub enum Comment_Eol_Error_Method_Typedef { Comment (Comment) , Eol (Eol) , Error (Error) , Method (Method) , Typedef (Typedef) } impl auto_lsp :: core :: ast :: AstNode for Comment_Eol_Error_Method_Typedef { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16 | 3u16 | 29u16 | 30u16 | 28u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Comment (node) => node . lower () , Self :: Eol (node) => node . lower () , Self :: Error (node) => node . lower () , Self :: Method (node) => node . lower () , Self :: Typedef (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Comment (node) => node . get_id () , Self :: Eol (node) => node . get_id () , Self :: Error (node) => node . get_id () , Self :: Method (node) => node . get_id () , Self :: Typedef (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Comment (node) => node . get_parent_id () , Self :: Eol (node) => node . get_parent_id () , Self :: Error (node) => node . get_parent_id () , Self :: Method (node) => node . get_parent_id () , Self :: Typedef (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Comment (node) => node . get_range () , Self :: Eol (node) => node . get_range () , Self :: Error (node) => node . get_range () , Self :: Method (node) => node . get_range () , Self :: Typedef (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment_Eol_Error_Method_Typedef { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 2u16 => Ok (Self :: Comment (Comment :: try_from ((node , db , builder , id , parent_id)) ?)) , 3u16 => Ok (Self :: Eol (Eol :: try_from ((node , db , builder , id , parent_id)) ?)) , 29u16 => Ok (Self :: Error (Error :: try_from ((node , db , builder , id , parent_id)) ?)) , 30u16 => Ok (Self :: Method (Method :: try_from ((node , db , builder , id , parent_id)) ?)) , 28u16 => Ok (Self :: Typedef (Typedef :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Comment_Eol_Error_Method_Typedef) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { Array (Array) , Bool (Bool) , Dict (Dict) , Enum (Enum) , Float (Float) , Int (Int) , Maybe (Maybe) , Object (Object) , String (String) , Struct (Struct) , Typeref (Typeref) } impl auto_lsp :: core :: ast :: AstNode for Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 37u16 | 16u16 | 38u16 | 33u16 | 18u16 | 17u16 | 35u16 | 20u16 | 19u16 | 31u16 | 39u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Array (node) => node . lower () , Self :: Bool (node) => node . lower () , Self :: Dict (node) => node . lower () , Self :: Enum (node) => node . lower () , Self :: Float (node) => node . lower () , Self :: Int (node) => node . lower () , Self :: Maybe (node) => node . lower () , Self :: Object (node) => node . lower () , Self :: String (node) => node . lower () , Self :: Struct (node) => node . lower () , Self :: Typeref (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Array (node) => node . get_id () , Self :: Bool (node) => node . get_id () , Self :: Dict (node) => node . get_id () , Self :: Enum (node) => node . get_id () , Self :: Float (node) => node . get_id () , Self :: Int (node) => node . get_id () , Self :: Maybe (node) => node . get_id () , Self :: Object (node) => node . get_id () , Self :: String (node) => node . get_id () , Self :: Struct (node) => node . get_id () , Self :: Typeref (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Array (node) => node . get_parent_id () , Self :: Bool (node) => node . get_parent_id () , Self :: Dict (node) => node . get_parent_id () , Self :: Enum (node) => node . get_parent_id () , Self :: Float (node) => node . get_parent_id () , Self :: Int (node) => node . get_parent_id () , Self :: Maybe (node) => node . get_parent_id () , Self :: Object (node) => node . get_parent_id () , Self :: String (node) => node . get_parent_id () , Self :: Struct (node) => node . get_parent_id () , Self :: Typeref (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Array (node) => node . get_range () , Self :: Bool (node) => node . get_range () , Self :: Dict (node) => node . get_range () , Self :: Enum (node) => node . get_range () , Self :: Float (node) => node . get_range () , Self :: Int (node) => node . get_range () , Self :: Maybe (node) => node . get_range () , Self :: Object (node) => node . get_range () , Self :: String (node) => node . get_range () , Self :: Struct (node) => node . get_range () , Self :: Typeref (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 37u16 => Ok (Self :: Array (Array :: try_from ((node , db , builder , id , parent_id)) ?)) , 16u16 => Ok (Self :: Bool (Bool :: try_from ((node , db , builder , id , parent_id)) ?)) , 38u16 => Ok (Self :: Dict (Dict :: try_from ((node , db , builder , id , parent_id)) ?)) , 33u16 => Ok (Self :: Enum (Enum :: try_from ((node , db , builder , id , parent_id)) ?)) , 18u16 => Ok (Self :: Float (Float :: try_from ((node , db , builder , id , parent_id)) ?)) , 17u16 => Ok (Self :: Int (Int :: try_from ((node , db , builder , id , parent_id)) ?)) , 35u16 => Ok (Self :: Maybe (Maybe :: try_from ((node , db , builder , id , parent_id)) ?)) , 20u16 => Ok (Self :: Object (Object :: try_from ((node , db , builder , id , parent_id)) ?)) , 19u16 => Ok (Self :: String (String :: try_from ((node , db , builder , id , parent_id)) ?)) , 31u16 => Ok (Self :: Struct (Struct :: try_from ((node , db , builder , id , parent_id)) ?)) , 39u16 => Ok (Self :: Typeref (Typeref :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Enum_Struct { Enum (Enum) , Struct (Struct) } impl auto_lsp :: core :: ast :: AstNode for Enum_Struct { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 33u16 | 31u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Enum (node) => node . lower () , Self :: Struct (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Enum (node) => node . get_id () , Self :: Struct (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Enum (node) => node . get_parent_id () , Self :: Struct (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Enum (node) => node . get_range () , Self :: Struct (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Enum_Struct { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 33u16 => Ok (Self :: Enum (Enum :: try_from ((node , db , builder , id , parent_id)) ?)) , 31u16 => Ok (Self :: Struct (Struct :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Enum_Struct) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Comment_Eol { Comment (Comment) , Eol (Eol) } impl auto_lsp :: core :: ast :: AstNode for Comment_Eol { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16 | 3u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Comment (node) => node . lower () , Self :: Eol (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Comment (node) => node . get_id () , Self :: Eol (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Comment (node) => node . get_parent_id () , Self :: Eol (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Comment (node) => node . get_range () , Self :: Eol (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment_Eol { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 2u16 => Ok (Self :: Comment (Comment :: try_from ((node , db , builder , id , parent_id)) ?)) , 3u16 => Ok (Self :: Eol (Eol :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Comment_Eol) , }) } } }
[INFO] [stdout]  1 + # ! [allow (clippy :: all)] # ! [allow (unused)] # ! [allow (dead_code)] # ! [allow (non_camel_case_types)] # ! [allow (non_snake_case)] # [derive (Debug , Clone , PartialEq)] pub struct Array { pub Type : auto_lsp :: core :: ast :: AstNodeId < Type > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Array { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 37u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Array { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut Type = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Type , 10u16 > (& mut Type) }) ; Ok (Self { Type : Type ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Type) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Dict { pub Type : auto_lsp :: core :: ast :: AstNodeId < Type > , pub children : auto_lsp :: core :: ast :: AstNodeId < String > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Dict { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 38u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Dict { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut Type = Ok (None) ; ; let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Type , 10u16 > (& mut Type) ? . on_children_id (& mut children) }) ; Ok (Self { Type : Type ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Type) , } }) ? , children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (String) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Enum { pub member : Vec < auto_lsp :: core :: ast :: AstNodeId < FieldName >> , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Enum { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 33u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Enum { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut member = vec ! [] ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_vec_field_id :: < FieldName , 6u16 > (& mut member) ? . on_vec_children_id (& mut children) }) ; Ok (Self { member , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Error { pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordError > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub value : auto_lsp :: core :: ast :: AstNode < Struct > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Error { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 29u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Error { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut keyword = Ok (None) ; ; let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < KeywordError , 5u16 > (& mut keyword) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_field_id :: < Struct , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Interface { pub declaration : auto_lsp :: core :: ast :: AstNodeId < InterfaceDeclaration > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol_Error_Method_Typedef >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Interface { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 24u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Interface { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut declaration = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < InterfaceDeclaration , 2u16 > (& mut declaration) ? . on_vec_children_id (& mut children) }) ; Ok (Self { declaration : declaration ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (declaration) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct InterfaceDeclaration { pub name : auto_lsp :: core :: ast :: AstNodeId < InterfaceName > , pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordInterface > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for InterfaceDeclaration { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 27u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for InterfaceDeclaration { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut name = Ok (None) ; ; let mut keyword = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < InterfaceName , 7u16 > (& mut name) ? . on_field_id :: < KeywordInterface , 5u16 > (& mut keyword) ? . on_vec_children_id (& mut children) }) ; Ok (Self { name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Maybe { pub questionmark : auto_lsp :: core :: ast :: AstNodeId < Questionmark > , pub just : auto_lsp :: core :: ast :: AstNodeId < Type > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Maybe { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 35u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Maybe { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut questionmark = Ok (None) ; ; let mut just = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Questionmark , 9u16 > (& mut questionmark) ? . on_field_id :: < Type , 4u16 > (& mut just) }) ; Ok (Self { questionmark : questionmark ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (questionmark) , } }) ? , just : just ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (just) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Method { pub input : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub output : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordMethod > , pub arrow : auto_lsp :: core :: ast :: AstNodeId < Arrow > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Method { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 30u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Method { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut input = Ok (None) ; ; let mut output = Ok (None) ; ; let mut keyword = Ok (None) ; ; let mut arrow = Ok (None) ; ; let mut name = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Struct , 3u16 > (& mut input) ? . on_field_id :: < Struct , 8u16 > (& mut output) ? . on_field_id :: < KeywordMethod , 5u16 > (& mut keyword) ? . on_field_id :: < Arrow , 1u16 > (& mut arrow) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_vec_children_id (& mut children) }) ; Ok (Self { input : input ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (input) , } }) ? , output : output ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (output) , } }) ? , keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , arrow : arrow ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (arrow) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Struct { pub member : Vec < auto_lsp :: core :: ast :: AstNodeId < StructField >> , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Struct { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 31u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Struct { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut member = vec ! [] ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_vec_field_id :: < StructField , 6u16 > (& mut member) ? . on_vec_children_id (& mut children) }) ; Ok (Self { member , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct StructField { pub name : auto_lsp :: core :: ast :: AstNodeId < FieldName > , pub value : auto_lsp :: core :: ast :: AstNodeId < Type > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for StructField { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 32u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for StructField { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < FieldName , 7u16 > (& mut name) ? . on_field_id :: < Type , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Type { pub children : auto_lsp :: core :: ast :: AstNodeId < Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Type { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 34u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Type { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_children_id (& mut children) }) ; Ok (Self { children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Typedef { pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordType > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub value : auto_lsp :: core :: ast :: AstNodeId < Enum_Struct > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Typedef { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 28u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Typedef { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut keyword = Ok (None) ; ; let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < KeywordType , 5u16 > (& mut keyword) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_field_id :: < Enum_Struct , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Typeref { pub children : auto_lsp :: core :: ast :: AstNodeId < Name > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Typeref { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 39u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Typeref { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_children_id (& mut children) }) ; Ok (Self { children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Name) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_LeftParen { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_LeftParen { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 9u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_LeftParen { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_RightParen { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_RightParen { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 11u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_RightParen { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_Comma { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_Comma { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 10u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_Comma { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_Colon { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_Colon { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 12u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_Colon { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_LeftBracket { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_LeftBracket { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 14u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_LeftBracket { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_RightBracket { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_RightBracket { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 15u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_RightBracket { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Arrow { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Arrow { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 8u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Arrow { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Bool { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Bool { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 16u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Bool { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Comment { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Comment { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Eol { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Eol { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 3u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Eol { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct FieldName { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for FieldName { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 22u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for FieldName { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Float { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Float { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 18u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Float { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Int { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Int { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 17u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Int { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct InterfaceName { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for InterfaceName { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 23u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for InterfaceName { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordError { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordError { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 6u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordError { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordInterface { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordInterface { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 4u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordInterface { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordMethod { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordMethod { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 7u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordMethod { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordType { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordType { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 5u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordType { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Name { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Name { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 21u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Name { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Object { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Object { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 20u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Object { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Questionmark { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Questionmark { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 13u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Questionmark { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct String { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for String { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 19u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for String { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub enum Comment_Eol_Error_Method_Typedef { Comment (Comment) , Eol (Eol) , Error (Error) , Method (Method) , Typedef (Typedef) } impl auto_lsp :: core :: ast :: AstNode for Comment_Eol_Error_Method_Typedef { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16 | 3u16 | 29u16 | 30u16 | 28u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Comment (node) => node . lower () , Self :: Eol (node) => node . lower () , Self :: Error (node) => node . lower () , Self :: Method (node) => node . lower () , Self :: Typedef (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Comment (node) => node . get_id () , Self :: Eol (node) => node . get_id () , Self :: Error (node) => node . get_id () , Self :: Method (node) => node . get_id () , Self :: Typedef (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Comment (node) => node . get_parent_id () , Self :: Eol (node) => node . get_parent_id () , Self :: Error (node) => node . get_parent_id () , Self :: Method (node) => node . get_parent_id () , Self :: Typedef (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Comment (node) => node . get_range () , Self :: Eol (node) => node . get_range () , Self :: Error (node) => node . get_range () , Self :: Method (node) => node . get_range () , Self :: Typedef (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment_Eol_Error_Method_Typedef { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 2u16 => Ok (Self :: Comment (Comment :: try_from ((node , db , builder , id , parent_id)) ?)) , 3u16 => Ok (Self :: Eol (Eol :: try_from ((node , db , builder , id , parent_id)) ?)) , 29u16 => Ok (Self :: Error (Error :: try_from ((node , db , builder , id , parent_id)) ?)) , 30u16 => Ok (Self :: Method (Method :: try_from ((node , db , builder , id , parent_id)) ?)) , 28u16 => Ok (Self :: Typedef (Typedef :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Comment_Eol_Error_Method_Typedef) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { Array (Array) , Bool (Bool) , Dict (Dict) , Enum (Enum) , Float (Float) , Int (Int) , Maybe (Maybe) , Object (Object) , String (String) , Struct (Struct) , Typeref (Typeref) } impl auto_lsp :: core :: ast :: AstNode for Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 37u16 | 16u16 | 38u16 | 33u16 | 18u16 | 17u16 | 35u16 | 20u16 | 19u16 | 31u16 | 39u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Array (node) => node . lower () , Self :: Bool (node) => node . lower () , Self :: Dict (node) => node . lower () , Self :: Enum (node) => node . lower () , Self :: Float (node) => node . lower () , Self :: Int (node) => node . lower () , Self :: Maybe (node) => node . lower () , Self :: Object (node) => node . lower () , Self :: String (node) => node . lower () , Self :: Struct (node) => node . lower () , Self :: Typeref (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Array (node) => node . get_id () , Self :: Bool (node) => node . get_id () , Self :: Dict (node) => node . get_id () , Self :: Enum (node) => node . get_id () , Self :: Float (node) => node . get_id () , Self :: Int (node) => node . get_id () , Self :: Maybe (node) => node . get_id () , Self :: Object (node) => node . get_id () , Self :: String (node) => node . get_id () , Self :: Struct (node) => node . get_id () , Self :: Typeref (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Array (node) => node . get_parent_id () , Self :: Bool (node) => node . get_parent_id () , Self :: Dict (node) => node . get_parent_id () , Self :: Enum (node) => node . get_parent_id () , Self :: Float (node) => node . get_parent_id () , Self :: Int (node) => node . get_parent_id () , Self :: Maybe (node) => node . get_parent_id () , Self :: Object (node) => node . get_parent_id () , Self :: String (node) => node . get_parent_id () , Self :: Struct (node) => node . get_parent_id () , Self :: Typeref (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Array (node) => node . get_range () , Self :: Bool (node) => node . get_range () , Self :: Dict (node) => node . get_range () , Self :: Enum (node) => node . get_range () , Self :: Float (node) => node . get_range () , Self :: Int (node) => node . get_range () , Self :: Maybe (node) => node . get_range () , Self :: Object (node) => node . get_range () , Self :: String (node) => node . get_range () , Self :: Struct (node) => node . get_range () , Self :: Typeref (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 37u16 => Ok (Self :: Array (Array :: try_from ((node , db , builder , id , parent_id)) ?)) , 16u16 => Ok (Self :: Bool (Bool :: try_from ((node , db , builder , id , parent_id)) ?)) , 38u16 => Ok (Self :: Dict (Dict :: try_from ((node , db , builder , id , parent_id)) ?)) , 33u16 => Ok (Self :: Enum (Enum :: try_from ((node , db , builder , id , parent_id)) ?)) , 18u16 => Ok (Self :: Float (Float :: try_from ((node , db , builder , id , parent_id)) ?)) , 17u16 => Ok (Self :: Int (Int :: try_from ((node , db , builder , id , parent_id)) ?)) , 35u16 => Ok (Self :: Maybe (Maybe :: try_from ((node , db , builder , id , parent_id)) ?)) , 20u16 => Ok (Self :: Object (Object :: try_from ((node , db , builder , id , parent_id)) ?)) , 19u16 => Ok (Self :: String (String :: try_from ((node , db , builder , id , parent_id)) ?)) , 31u16 => Ok (Self :: Struct (Struct :: try_from ((node , db , builder , id , parent_id)) ?)) , 39u16 => Ok (Self :: Typeref (Typeref :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Enum_Struct { Enum (Enum) , Struct (Struct) } impl auto_lsp :: core :: ast :: AstNode for Enum_Struct { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 33u16 | 31u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Enum (node) => node . lower () , Self :: Struct (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Enum (node) => node . get_id () , Self :: Struct (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Enum (node) => node . get_parent_id () , Self :: Struct (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Enum (node) => node . get_range () , Self :: Struct (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Enum_Struct { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 33u16 => Ok (Self :: Enum (Enum :: try_from ((node , db , builder , id , parent_id)) ?)) , 31u16 => Ok (Self :: Struct (Struct :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Enum_Struct) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Comment_Eol { Comment (Comment) , Eol (Eol) } impl auto_lsp :: core :: ast :: AstNode for Comment_Eol { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16 | 3u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Comment (node) => node . lower () , Self :: Eol (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Comment (node) => node . get_id () , Self :: Eol (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Comment (node) => node . get_parent_id () , Self :: Eol (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Comment (node) => node . get_range () , Self :: Eol (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment_Eol { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 2u16 => Ok (Self :: Comment (Comment :: try_from ((node , db , builder , id , parent_id)) ?)) , 3u16 => Ok (Self :: Eol (Eol :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Comment_Eol) , }) } } }
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `AstNodeId` in module `auto_lsp::core::ast`
[INFO] [stdout]   --> src/ast.rs:1:4724
[INFO] [stdout]    |
[INFO] [stdout]  1 | ... Struct > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Rang...
[INFO] [stdout]    |                                                                ^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]   ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/auto-lsp-core-0.7.0/src/ast/node.rs:26:1
[INFO] [stdout]    |
[INFO] [stdout] 26 | pub trait AstNode: std::fmt::Debug + Send + Sync + DowncastSync {
[INFO] [stdout]    | --------------------------------------------------------------- similarly named trait `AstNode` defined here
[INFO] [stdout]    |
[INFO] [stdout] help: a trait with a similar name exists
[INFO] [stdout]    |
[INFO] [stdout]  1 - # ! [allow (clippy :: all)] # ! [allow (unused)] # ! [allow (dead_code)] # ! [allow (non_camel_case_types)] # ! [allow (non_snake_case)] # [derive (Debug , Clone , PartialEq)] pub struct Array { pub Type : auto_lsp :: core :: ast :: AstNodeId < Type > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Array { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 37u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Array { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut Type = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Type , 10u16 > (& mut Type) }) ; Ok (Self { Type : Type ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Type) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Dict { pub Type : auto_lsp :: core :: ast :: AstNodeId < Type > , pub children : auto_lsp :: core :: ast :: AstNodeId < String > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Dict { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 38u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Dict { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut Type = Ok (None) ; ; let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Type , 10u16 > (& mut Type) ? . on_children_id (& mut children) }) ; Ok (Self { Type : Type ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Type) , } }) ? , children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (String) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Enum { pub member : Vec < auto_lsp :: core :: ast :: AstNodeId < FieldName >> , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Enum { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 33u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Enum { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut member = vec ! [] ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_vec_field_id :: < FieldName , 6u16 > (& mut member) ? . on_vec_children_id (& mut children) }) ; Ok (Self { member , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Error { pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordError > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub value : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Error { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 29u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Error { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut keyword = Ok (None) ; ; let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < KeywordError , 5u16 > (& mut keyword) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_field_id :: < Struct , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Interface { pub declaration : auto_lsp :: core :: ast :: AstNodeId < InterfaceDeclaration > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol_Error_Method_Typedef >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Interface { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 24u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Interface { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut declaration = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < InterfaceDeclaration , 2u16 > (& mut declaration) ? . on_vec_children_id (& mut children) }) ; Ok (Self { declaration : declaration ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (declaration) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct InterfaceDeclaration { pub name : auto_lsp :: core :: ast :: AstNodeId < InterfaceName > , pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordInterface > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for InterfaceDeclaration { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 27u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for InterfaceDeclaration { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut name = Ok (None) ; ; let mut keyword = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < InterfaceName , 7u16 > (& mut name) ? . on_field_id :: < KeywordInterface , 5u16 > (& mut keyword) ? . on_vec_children_id (& mut children) }) ; Ok (Self { name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Maybe { pub questionmark : auto_lsp :: core :: ast :: AstNodeId < Questionmark > , pub just : auto_lsp :: core :: ast :: AstNodeId < Type > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Maybe { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 35u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Maybe { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut questionmark = Ok (None) ; ; let mut just = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Questionmark , 9u16 > (& mut questionmark) ? . on_field_id :: < Type , 4u16 > (& mut just) }) ; Ok (Self { questionmark : questionmark ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (questionmark) , } }) ? , just : just ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (just) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Method { pub input : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub output : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordMethod > , pub arrow : auto_lsp :: core :: ast :: AstNodeId < Arrow > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Method { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 30u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Method { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut input = Ok (None) ; ; let mut output = Ok (None) ; ; let mut keyword = Ok (None) ; ; let mut arrow = Ok (None) ; ; let mut name = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Struct , 3u16 > (& mut input) ? . on_field_id :: < Struct , 8u16 > (& mut output) ? . on_field_id :: < KeywordMethod , 5u16 > (& mut keyword) ? . on_field_id :: < Arrow , 1u16 > (& mut arrow) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_vec_children_id (& mut children) }) ; Ok (Self { input : input ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (input) , } }) ? , output : output ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (output) , } }) ? , keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , arrow : arrow ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (arrow) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Struct { pub member : Vec < auto_lsp :: core :: ast :: AstNodeId < StructField >> , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Struct { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 31u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Struct { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut member = vec ! [] ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_vec_field_id :: < StructField , 6u16 > (& mut member) ? . on_vec_children_id (& mut children) }) ; Ok (Self { member , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct StructField { pub name : auto_lsp :: core :: ast :: AstNodeId < FieldName > , pub value : auto_lsp :: core :: ast :: AstNodeId < Type > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for StructField { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 32u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for StructField { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < FieldName , 7u16 > (& mut name) ? . on_field_id :: < Type , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Type { pub children : auto_lsp :: core :: ast :: AstNodeId < Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Type { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 34u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Type { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_children_id (& mut children) }) ; Ok (Self { children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Typedef { pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordType > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub value : auto_lsp :: core :: ast :: AstNodeId < Enum_Struct > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Typedef { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 28u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Typedef { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut keyword = Ok (None) ; ; let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < KeywordType , 5u16 > (& mut keyword) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_field_id :: < Enum_Struct , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Typeref { pub children : auto_lsp :: core :: ast :: AstNodeId < Name > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Typeref { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 39u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Typeref { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_children_id (& mut children) }) ; Ok (Self { children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Name) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_LeftParen { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_LeftParen { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 9u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_LeftParen { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_RightParen { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_RightParen { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 11u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_RightParen { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_Comma { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_Comma { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 10u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_Comma { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_Colon { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_Colon { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 12u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_Colon { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_LeftBracket { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_LeftBracket { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 14u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_LeftBracket { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_RightBracket { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_RightBracket { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 15u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_RightBracket { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Arrow { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Arrow { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 8u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Arrow { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Bool { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Bool { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 16u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Bool { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Comment { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Comment { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Eol { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Eol { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 3u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Eol { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct FieldName { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for FieldName { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 22u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for FieldName { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Float { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Float { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 18u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Float { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Int { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Int { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 17u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Int { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct InterfaceName { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for InterfaceName { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 23u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for InterfaceName { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordError { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordError { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 6u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordError { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordInterface { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordInterface { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 4u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordInterface { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordMethod { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordMethod { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 7u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordMethod { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordType { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordType { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 5u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordType { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Name { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Name { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 21u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Name { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Object { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Object { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 20u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Object { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Questionmark { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Questionmark { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 13u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Questionmark { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct String { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for String { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 19u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for String { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub enum Comment_Eol_Error_Method_Typedef { Comment (Comment) , Eol (Eol) , Error (Error) , Method (Method) , Typedef (Typedef) } impl auto_lsp :: core :: ast :: AstNode for Comment_Eol_Error_Method_Typedef { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16 | 3u16 | 29u16 | 30u16 | 28u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Comment (node) => node . lower () , Self :: Eol (node) => node . lower () , Self :: Error (node) => node . lower () , Self :: Method (node) => node . lower () , Self :: Typedef (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Comment (node) => node . get_id () , Self :: Eol (node) => node . get_id () , Self :: Error (node) => node . get_id () , Self :: Method (node) => node . get_id () , Self :: Typedef (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Comment (node) => node . get_parent_id () , Self :: Eol (node) => node . get_parent_id () , Self :: Error (node) => node . get_parent_id () , Self :: Method (node) => node . get_parent_id () , Self :: Typedef (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Comment (node) => node . get_range () , Self :: Eol (node) => node . get_range () , Self :: Error (node) => node . get_range () , Self :: Method (node) => node . get_range () , Self :: Typedef (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment_Eol_Error_Method_Typedef { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 2u16 => Ok (Self :: Comment (Comment :: try_from ((node , db , builder , id , parent_id)) ?)) , 3u16 => Ok (Self :: Eol (Eol :: try_from ((node , db , builder , id , parent_id)) ?)) , 29u16 => Ok (Self :: Error (Error :: try_from ((node , db , builder , id , parent_id)) ?)) , 30u16 => Ok (Self :: Method (Method :: try_from ((node , db , builder , id , parent_id)) ?)) , 28u16 => Ok (Self :: Typedef (Typedef :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Comment_Eol_Error_Method_Typedef) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { Array (Array) , Bool (Bool) , Dict (Dict) , Enum (Enum) , Float (Float) , Int (Int) , Maybe (Maybe) , Object (Object) , String (String) , Struct (Struct) , Typeref (Typeref) } impl auto_lsp :: core :: ast :: AstNode for Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 37u16 | 16u16 | 38u16 | 33u16 | 18u16 | 17u16 | 35u16 | 20u16 | 19u16 | 31u16 | 39u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Array (node) => node . lower () , Self :: Bool (node) => node . lower () , Self :: Dict (node) => node . lower () , Self :: Enum (node) => node . lower () , Self :: Float (node) => node . lower () , Self :: Int (node) => node . lower () , Self :: Maybe (node) => node . lower () , Self :: Object (node) => node . lower () , Self :: String (node) => node . lower () , Self :: Struct (node) => node . lower () , Self :: Typeref (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Array (node) => node . get_id () , Self :: Bool (node) => node . get_id () , Self :: Dict (node) => node . get_id () , Self :: Enum (node) => node . get_id () , Self :: Float (node) => node . get_id () , Self :: Int (node) => node . get_id () , Self :: Maybe (node) => node . get_id () , Self :: Object (node) => node . get_id () , Self :: String (node) => node . get_id () , Self :: Struct (node) => node . get_id () , Self :: Typeref (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Array (node) => node . get_parent_id () , Self :: Bool (node) => node . get_parent_id () , Self :: Dict (node) => node . get_parent_id () , Self :: Enum (node) => node . get_parent_id () , Self :: Float (node) => node . get_parent_id () , Self :: Int (node) => node . get_parent_id () , Self :: Maybe (node) => node . get_parent_id () , Self :: Object (node) => node . get_parent_id () , Self :: String (node) => node . get_parent_id () , Self :: Struct (node) => node . get_parent_id () , Self :: Typeref (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Array (node) => node . get_range () , Self :: Bool (node) => node . get_range () , Self :: Dict (node) => node . get_range () , Self :: Enum (node) => node . get_range () , Self :: Float (node) => node . get_range () , Self :: Int (node) => node . get_range () , Self :: Maybe (node) => node . get_range () , Self :: Object (node) => node . get_range () , Self :: String (node) => node . get_range () , Self :: Struct (node) => node . get_range () , Self :: Typeref (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 37u16 => Ok (Self :: Array (Array :: try_from ((node , db , builder , id , parent_id)) ?)) , 16u16 => Ok (Self :: Bool (Bool :: try_from ((node , db , builder , id , parent_id)) ?)) , 38u16 => Ok (Self :: Dict (Dict :: try_from ((node , db , builder , id , parent_id)) ?)) , 33u16 => Ok (Self :: Enum (Enum :: try_from ((node , db , builder , id , parent_id)) ?)) , 18u16 => Ok (Self :: Float (Float :: try_from ((node , db , builder , id , parent_id)) ?)) , 17u16 => Ok (Self :: Int (Int :: try_from ((node , db , builder , id , parent_id)) ?)) , 35u16 => Ok (Self :: Maybe (Maybe :: try_from ((node , db , builder , id , parent_id)) ?)) , 20u16 => Ok (Self :: Object (Object :: try_from ((node , db , builder , id , parent_id)) ?)) , 19u16 => Ok (Self :: String (String :: try_from ((node , db , builder , id , parent_id)) ?)) , 31u16 => Ok (Self :: Struct (Struct :: try_from ((node , db , builder , id , parent_id)) ?)) , 39u16 => Ok (Self :: Typeref (Typeref :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Enum_Struct { Enum (Enum) , Struct (Struct) } impl auto_lsp :: core :: ast :: AstNode for Enum_Struct { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 33u16 | 31u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Enum (node) => node . lower () , Self :: Struct (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Enum (node) => node . get_id () , Self :: Struct (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Enum (node) => node . get_parent_id () , Self :: Struct (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Enum (node) => node . get_range () , Self :: Struct (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Enum_Struct { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 33u16 => Ok (Self :: Enum (Enum :: try_from ((node , db , builder , id , parent_id)) ?)) , 31u16 => Ok (Self :: Struct (Struct :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Enum_Struct) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Comment_Eol { Comment (Comment) , Eol (Eol) } impl auto_lsp :: core :: ast :: AstNode for Comment_Eol { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16 | 3u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Comment (node) => node . lower () , Self :: Eol (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Comment (node) => node . get_id () , Self :: Eol (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Comment (node) => node . get_parent_id () , Self :: Eol (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Comment (node) => node . get_range () , Self :: Eol (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment_Eol { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 2u16 => Ok (Self :: Comment (Comment :: try_from ((node , db , builder , id , parent_id)) ?)) , 3u16 => Ok (Self :: Eol (Eol :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Comment_Eol) , }) } } }
[INFO] [stdout]  1 + # ! [allow (clippy :: all)] # ! [allow (unused)] # ! [allow (dead_code)] # ! [allow (non_camel_case_types)] # ! [allow (non_snake_case)] # [derive (Debug , Clone , PartialEq)] pub struct Array { pub Type : auto_lsp :: core :: ast :: AstNodeId < Type > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Array { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 37u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Array { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut Type = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Type , 10u16 > (& mut Type) }) ; Ok (Self { Type : Type ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Type) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Dict { pub Type : auto_lsp :: core :: ast :: AstNodeId < Type > , pub children : auto_lsp :: core :: ast :: AstNodeId < String > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Dict { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 38u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Dict { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut Type = Ok (None) ; ; let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Type , 10u16 > (& mut Type) ? . on_children_id (& mut children) }) ; Ok (Self { Type : Type ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Type) , } }) ? , children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (String) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Enum { pub member : Vec < auto_lsp :: core :: ast :: AstNodeId < FieldName >> , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Enum { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 33u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Enum { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut member = vec ! [] ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_vec_field_id :: < FieldName , 6u16 > (& mut member) ? . on_vec_children_id (& mut children) }) ; Ok (Self { member , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Error { pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordError > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub value : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub children : Vec < auto_lsp :: core :: ast :: AstNode < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Error { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 29u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Error { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut keyword = Ok (None) ; ; let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < KeywordError , 5u16 > (& mut keyword) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_field_id :: < Struct , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Interface { pub declaration : auto_lsp :: core :: ast :: AstNodeId < InterfaceDeclaration > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol_Error_Method_Typedef >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Interface { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 24u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Interface { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut declaration = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < InterfaceDeclaration , 2u16 > (& mut declaration) ? . on_vec_children_id (& mut children) }) ; Ok (Self { declaration : declaration ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (declaration) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct InterfaceDeclaration { pub name : auto_lsp :: core :: ast :: AstNodeId < InterfaceName > , pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordInterface > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for InterfaceDeclaration { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 27u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for InterfaceDeclaration { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut name = Ok (None) ; ; let mut keyword = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < InterfaceName , 7u16 > (& mut name) ? . on_field_id :: < KeywordInterface , 5u16 > (& mut keyword) ? . on_vec_children_id (& mut children) }) ; Ok (Self { name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Maybe { pub questionmark : auto_lsp :: core :: ast :: AstNodeId < Questionmark > , pub just : auto_lsp :: core :: ast :: AstNodeId < Type > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Maybe { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 35u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Maybe { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut questionmark = Ok (None) ; ; let mut just = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Questionmark , 9u16 > (& mut questionmark) ? . on_field_id :: < Type , 4u16 > (& mut just) }) ; Ok (Self { questionmark : questionmark ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (questionmark) , } }) ? , just : just ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (just) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Method { pub input : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub output : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordMethod > , pub arrow : auto_lsp :: core :: ast :: AstNodeId < Arrow > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Method { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 30u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Method { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut input = Ok (None) ; ; let mut output = Ok (None) ; ; let mut keyword = Ok (None) ; ; let mut arrow = Ok (None) ; ; let mut name = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Struct , 3u16 > (& mut input) ? . on_field_id :: < Struct , 8u16 > (& mut output) ? . on_field_id :: < KeywordMethod , 5u16 > (& mut keyword) ? . on_field_id :: < Arrow , 1u16 > (& mut arrow) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_vec_children_id (& mut children) }) ; Ok (Self { input : input ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (input) , } }) ? , output : output ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (output) , } }) ? , keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , arrow : arrow ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (arrow) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Struct { pub member : Vec < auto_lsp :: core :: ast :: AstNodeId < StructField >> , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Struct { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 31u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Struct { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut member = vec ! [] ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_vec_field_id :: < StructField , 6u16 > (& mut member) ? . on_vec_children_id (& mut children) }) ; Ok (Self { member , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct StructField { pub name : auto_lsp :: core :: ast :: AstNodeId < FieldName > , pub value : auto_lsp :: core :: ast :: AstNodeId < Type > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for StructField { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 32u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for StructField { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < FieldName , 7u16 > (& mut name) ? . on_field_id :: < Type , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Type { pub children : auto_lsp :: core :: ast :: AstNodeId < Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Type { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 34u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Type { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_children_id (& mut children) }) ; Ok (Self { children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Typedef { pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordType > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub value : auto_lsp :: core :: ast :: AstNodeId < Enum_Struct > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Typedef { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 28u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Typedef { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut keyword = Ok (None) ; ; let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < KeywordType , 5u16 > (& mut keyword) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_field_id :: < Enum_Struct , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Typeref { pub children : auto_lsp :: core :: ast :: AstNodeId < Name > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Typeref { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 39u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Typeref { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_children_id (& mut children) }) ; Ok (Self { children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Name) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_LeftParen { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_LeftParen { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 9u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_LeftParen { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_RightParen { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_RightParen { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 11u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_RightParen { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_Comma { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_Comma { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 10u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_Comma { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_Colon { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_Colon { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 12u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_Colon { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_LeftBracket { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_LeftBracket { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 14u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_LeftBracket { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_RightBracket { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_RightBracket { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 15u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_RightBracket { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Arrow { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Arrow { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 8u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Arrow { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Bool { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Bool { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 16u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Bool { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Comment { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Comment { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Eol { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Eol { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 3u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Eol { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct FieldName { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for FieldName { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 22u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for FieldName { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Float { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Float { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 18u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Float { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Int { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Int { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 17u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Int { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct InterfaceName { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for InterfaceName { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 23u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for InterfaceName { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordError { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordError { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 6u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordError { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordInterface { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordInterface { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 4u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordInterface { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordMethod { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordMethod { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 7u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordMethod { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordType { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordType { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 5u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordType { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Name { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Name { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 21u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Name { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Object { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Object { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 20u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Object { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Questionmark { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Questionmark { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 13u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Questionmark { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct String { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for String { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 19u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for String { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub enum Comment_Eol_Error_Method_Typedef { Comment (Comment) , Eol (Eol) , Error (Error) , Method (Method) , Typedef (Typedef) } impl auto_lsp :: core :: ast :: AstNode for Comment_Eol_Error_Method_Typedef { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16 | 3u16 | 29u16 | 30u16 | 28u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Comment (node) => node . lower () , Self :: Eol (node) => node . lower () , Self :: Error (node) => node . lower () , Self :: Method (node) => node . lower () , Self :: Typedef (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Comment (node) => node . get_id () , Self :: Eol (node) => node . get_id () , Self :: Error (node) => node . get_id () , Self :: Method (node) => node . get_id () , Self :: Typedef (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Comment (node) => node . get_parent_id () , Self :: Eol (node) => node . get_parent_id () , Self :: Error (node) => node . get_parent_id () , Self :: Method (node) => node . get_parent_id () , Self :: Typedef (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Comment (node) => node . get_range () , Self :: Eol (node) => node . get_range () , Self :: Error (node) => node . get_range () , Self :: Method (node) => node . get_range () , Self :: Typedef (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment_Eol_Error_Method_Typedef { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 2u16 => Ok (Self :: Comment (Comment :: try_from ((node , db , builder , id , parent_id)) ?)) , 3u16 => Ok (Self :: Eol (Eol :: try_from ((node , db , builder , id , parent_id)) ?)) , 29u16 => Ok (Self :: Error (Error :: try_from ((node , db , builder , id , parent_id)) ?)) , 30u16 => Ok (Self :: Method (Method :: try_from ((node , db , builder , id , parent_id)) ?)) , 28u16 => Ok (Self :: Typedef (Typedef :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Comment_Eol_Error_Method_Typedef) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { Array (Array) , Bool (Bool) , Dict (Dict) , Enum (Enum) , Float (Float) , Int (Int) , Maybe (Maybe) , Object (Object) , String (String) , Struct (Struct) , Typeref (Typeref) } impl auto_lsp :: core :: ast :: AstNode for Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 37u16 | 16u16 | 38u16 | 33u16 | 18u16 | 17u16 | 35u16 | 20u16 | 19u16 | 31u16 | 39u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Array (node) => node . lower () , Self :: Bool (node) => node . lower () , Self :: Dict (node) => node . lower () , Self :: Enum (node) => node . lower () , Self :: Float (node) => node . lower () , Self :: Int (node) => node . lower () , Self :: Maybe (node) => node . lower () , Self :: Object (node) => node . lower () , Self :: String (node) => node . lower () , Self :: Struct (node) => node . lower () , Self :: Typeref (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Array (node) => node . get_id () , Self :: Bool (node) => node . get_id () , Self :: Dict (node) => node . get_id () , Self :: Enum (node) => node . get_id () , Self :: Float (node) => node . get_id () , Self :: Int (node) => node . get_id () , Self :: Maybe (node) => node . get_id () , Self :: Object (node) => node . get_id () , Self :: String (node) => node . get_id () , Self :: Struct (node) => node . get_id () , Self :: Typeref (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Array (node) => node . get_parent_id () , Self :: Bool (node) => node . get_parent_id () , Self :: Dict (node) => node . get_parent_id () , Self :: Enum (node) => node . get_parent_id () , Self :: Float (node) => node . get_parent_id () , Self :: Int (node) => node . get_parent_id () , Self :: Maybe (node) => node . get_parent_id () , Self :: Object (node) => node . get_parent_id () , Self :: String (node) => node . get_parent_id () , Self :: Struct (node) => node . get_parent_id () , Self :: Typeref (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Array (node) => node . get_range () , Self :: Bool (node) => node . get_range () , Self :: Dict (node) => node . get_range () , Self :: Enum (node) => node . get_range () , Self :: Float (node) => node . get_range () , Self :: Int (node) => node . get_range () , Self :: Maybe (node) => node . get_range () , Self :: Object (node) => node . get_range () , Self :: String (node) => node . get_range () , Self :: Struct (node) => node . get_range () , Self :: Typeref (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 37u16 => Ok (Self :: Array (Array :: try_from ((node , db , builder , id , parent_id)) ?)) , 16u16 => Ok (Self :: Bool (Bool :: try_from ((node , db , builder , id , parent_id)) ?)) , 38u16 => Ok (Self :: Dict (Dict :: try_from ((node , db , builder , id , parent_id)) ?)) , 33u16 => Ok (Self :: Enum (Enum :: try_from ((node , db , builder , id , parent_id)) ?)) , 18u16 => Ok (Self :: Float (Float :: try_from ((node , db , builder , id , parent_id)) ?)) , 17u16 => Ok (Self :: Int (Int :: try_from ((node , db , builder , id , parent_id)) ?)) , 35u16 => Ok (Self :: Maybe (Maybe :: try_from ((node , db , builder , id , parent_id)) ?)) , 20u16 => Ok (Self :: Object (Object :: try_from ((node , db , builder , id , parent_id)) ?)) , 19u16 => Ok (Self :: String (String :: try_from ((node , db , builder , id , parent_id)) ?)) , 31u16 => Ok (Self :: Struct (Struct :: try_from ((node , db , builder , id , parent_id)) ?)) , 39u16 => Ok (Self :: Typeref (Typeref :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Enum_Struct { Enum (Enum) , Struct (Struct) } impl auto_lsp :: core :: ast :: AstNode for Enum_Struct { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 33u16 | 31u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Enum (node) => node . lower () , Self :: Struct (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Enum (node) => node . get_id () , Self :: Struct (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Enum (node) => node . get_parent_id () , Self :: Struct (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Enum (node) => node . get_range () , Self :: Struct (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Enum_Struct { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 33u16 => Ok (Self :: Enum (Enum :: try_from ((node , db , builder , id , parent_id)) ?)) , 31u16 => Ok (Self :: Struct (Struct :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Enum_Struct) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Comment_Eol { Comment (Comment) , Eol (Eol) } impl auto_lsp :: core :: ast :: AstNode for Comment_Eol { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16 | 3u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Comment (node) => node . lower () , Self :: Eol (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Comment (node) => node . get_id () , Self :: Eol (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Comment (node) => node . get_parent_id () , Self :: Eol (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Comment (node) => node . get_range () , Self :: Eol (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment_Eol { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 2u16 => Ok (Self :: Comment (Comment :: try_from ((node , db , builder , id , parent_id)) ?)) , 3u16 => Ok (Self :: Eol (Eol :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Comment_Eol) , }) } } }
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `AstNodeId` in module `auto_lsp::core::ast`
[INFO] [stdout]   --> src/ast.rs:1:6709
[INFO] [stdout]    |
[INFO] [stdout]  1 | ...ct Interface { pub declaration : auto_lsp :: core :: ast :: AstNodeId < InterfaceDeclaration > , pub children : Vec < auto_lsp ::...
[INFO] [stdout]    |                                                                ^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]   ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/auto-lsp-core-0.7.0/src/ast/node.rs:26:1
[INFO] [stdout]    |
[INFO] [stdout] 26 | pub trait AstNode: std::fmt::Debug + Send + Sync + DowncastSync {
[INFO] [stdout]    | --------------------------------------------------------------- similarly named trait `AstNode` defined here
[INFO] [stdout]    |
[INFO] [stdout] help: a trait with a similar name exists
[INFO] [stdout]    |
[INFO] [stdout]  1 - # ! [allow (clippy :: all)] # ! [allow (unused)] # ! [allow (dead_code)] # ! [allow (non_camel_case_types)] # ! [allow (non_snake_case)] # [derive (Debug , Clone , PartialEq)] pub struct Array { pub Type : auto_lsp :: core :: ast :: AstNodeId < Type > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Array { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 37u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Array { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut Type = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Type , 10u16 > (& mut Type) }) ; Ok (Self { Type : Type ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Type) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Dict { pub Type : auto_lsp :: core :: ast :: AstNodeId < Type > , pub children : auto_lsp :: core :: ast :: AstNodeId < String > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Dict { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 38u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Dict { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut Type = Ok (None) ; ; let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Type , 10u16 > (& mut Type) ? . on_children_id (& mut children) }) ; Ok (Self { Type : Type ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Type) , } }) ? , children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (String) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Enum { pub member : Vec < auto_lsp :: core :: ast :: AstNodeId < FieldName >> , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Enum { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 33u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Enum { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut member = vec ! [] ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_vec_field_id :: < FieldName , 6u16 > (& mut member) ? . on_vec_children_id (& mut children) }) ; Ok (Self { member , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Error { pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordError > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub value : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Error { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 29u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Error { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut keyword = Ok (None) ; ; let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < KeywordError , 5u16 > (& mut keyword) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_field_id :: < Struct , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Interface { pub declaration : auto_lsp :: core :: ast :: AstNodeId < InterfaceDeclaration > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol_Error_Method_Typedef >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Interface { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 24u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Interface { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut declaration = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < InterfaceDeclaration , 2u16 > (& mut declaration) ? . on_vec_children_id (& mut children) }) ; Ok (Self { declaration : declaration ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (declaration) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct InterfaceDeclaration { pub name : auto_lsp :: core :: ast :: AstNodeId < InterfaceName > , pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordInterface > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for InterfaceDeclaration { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 27u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for InterfaceDeclaration { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut name = Ok (None) ; ; let mut keyword = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < InterfaceName , 7u16 > (& mut name) ? . on_field_id :: < KeywordInterface , 5u16 > (& mut keyword) ? . on_vec_children_id (& mut children) }) ; Ok (Self { name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Maybe { pub questionmark : auto_lsp :: core :: ast :: AstNodeId < Questionmark > , pub just : auto_lsp :: core :: ast :: AstNodeId < Type > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Maybe { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 35u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Maybe { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut questionmark = Ok (None) ; ; let mut just = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Questionmark , 9u16 > (& mut questionmark) ? . on_field_id :: < Type , 4u16 > (& mut just) }) ; Ok (Self { questionmark : questionmark ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (questionmark) , } }) ? , just : just ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (just) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Method { pub input : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub output : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordMethod > , pub arrow : auto_lsp :: core :: ast :: AstNodeId < Arrow > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Method { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 30u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Method { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut input = Ok (None) ; ; let mut output = Ok (None) ; ; let mut keyword = Ok (None) ; ; let mut arrow = Ok (None) ; ; let mut name = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Struct , 3u16 > (& mut input) ? . on_field_id :: < Struct , 8u16 > (& mut output) ? . on_field_id :: < KeywordMethod , 5u16 > (& mut keyword) ? . on_field_id :: < Arrow , 1u16 > (& mut arrow) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_vec_children_id (& mut children) }) ; Ok (Self { input : input ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (input) , } }) ? , output : output ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (output) , } }) ? , keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , arrow : arrow ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (arrow) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Struct { pub member : Vec < auto_lsp :: core :: ast :: AstNodeId < StructField >> , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Struct { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 31u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Struct { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut member = vec ! [] ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_vec_field_id :: < StructField , 6u16 > (& mut member) ? . on_vec_children_id (& mut children) }) ; Ok (Self { member , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct StructField { pub name : auto_lsp :: core :: ast :: AstNodeId < FieldName > , pub value : auto_lsp :: core :: ast :: AstNodeId < Type > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for StructField { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 32u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for StructField { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < FieldName , 7u16 > (& mut name) ? . on_field_id :: < Type , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Type { pub children : auto_lsp :: core :: ast :: AstNodeId < Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Type { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 34u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Type { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_children_id (& mut children) }) ; Ok (Self { children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Typedef { pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordType > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub value : auto_lsp :: core :: ast :: AstNodeId < Enum_Struct > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Typedef { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 28u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Typedef { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut keyword = Ok (None) ; ; let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < KeywordType , 5u16 > (& mut keyword) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_field_id :: < Enum_Struct , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Typeref { pub children : auto_lsp :: core :: ast :: AstNodeId < Name > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Typeref { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 39u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Typeref { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_children_id (& mut children) }) ; Ok (Self { children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Name) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_LeftParen { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_LeftParen { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 9u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_LeftParen { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_RightParen { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_RightParen { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 11u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_RightParen { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_Comma { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_Comma { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 10u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_Comma { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_Colon { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_Colon { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 12u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_Colon { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_LeftBracket { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_LeftBracket { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 14u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_LeftBracket { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_RightBracket { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_RightBracket { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 15u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_RightBracket { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Arrow { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Arrow { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 8u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Arrow { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Bool { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Bool { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 16u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Bool { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Comment { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Comment { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Eol { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Eol { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 3u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Eol { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct FieldName { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for FieldName { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 22u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for FieldName { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Float { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Float { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 18u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Float { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Int { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Int { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 17u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Int { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct InterfaceName { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for InterfaceName { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 23u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for InterfaceName { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordError { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordError { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 6u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordError { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordInterface { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordInterface { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 4u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordInterface { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordMethod { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordMethod { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 7u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordMethod { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordType { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordType { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 5u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordType { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Name { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Name { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 21u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Name { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Object { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Object { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 20u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Object { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Questionmark { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Questionmark { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 13u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Questionmark { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct String { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for String { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 19u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for String { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub enum Comment_Eol_Error_Method_Typedef { Comment (Comment) , Eol (Eol) , Error (Error) , Method (Method) , Typedef (Typedef) } impl auto_lsp :: core :: ast :: AstNode for Comment_Eol_Error_Method_Typedef { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16 | 3u16 | 29u16 | 30u16 | 28u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Comment (node) => node . lower () , Self :: Eol (node) => node . lower () , Self :: Error (node) => node . lower () , Self :: Method (node) => node . lower () , Self :: Typedef (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Comment (node) => node . get_id () , Self :: Eol (node) => node . get_id () , Self :: Error (node) => node . get_id () , Self :: Method (node) => node . get_id () , Self :: Typedef (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Comment (node) => node . get_parent_id () , Self :: Eol (node) => node . get_parent_id () , Self :: Error (node) => node . get_parent_id () , Self :: Method (node) => node . get_parent_id () , Self :: Typedef (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Comment (node) => node . get_range () , Self :: Eol (node) => node . get_range () , Self :: Error (node) => node . get_range () , Self :: Method (node) => node . get_range () , Self :: Typedef (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment_Eol_Error_Method_Typedef { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 2u16 => Ok (Self :: Comment (Comment :: try_from ((node , db , builder , id , parent_id)) ?)) , 3u16 => Ok (Self :: Eol (Eol :: try_from ((node , db , builder , id , parent_id)) ?)) , 29u16 => Ok (Self :: Error (Error :: try_from ((node , db , builder , id , parent_id)) ?)) , 30u16 => Ok (Self :: Method (Method :: try_from ((node , db , builder , id , parent_id)) ?)) , 28u16 => Ok (Self :: Typedef (Typedef :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Comment_Eol_Error_Method_Typedef) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { Array (Array) , Bool (Bool) , Dict (Dict) , Enum (Enum) , Float (Float) , Int (Int) , Maybe (Maybe) , Object (Object) , String (String) , Struct (Struct) , Typeref (Typeref) } impl auto_lsp :: core :: ast :: AstNode for Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 37u16 | 16u16 | 38u16 | 33u16 | 18u16 | 17u16 | 35u16 | 20u16 | 19u16 | 31u16 | 39u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Array (node) => node . lower () , Self :: Bool (node) => node . lower () , Self :: Dict (node) => node . lower () , Self :: Enum (node) => node . lower () , Self :: Float (node) => node . lower () , Self :: Int (node) => node . lower () , Self :: Maybe (node) => node . lower () , Self :: Object (node) => node . lower () , Self :: String (node) => node . lower () , Self :: Struct (node) => node . lower () , Self :: Typeref (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Array (node) => node . get_id () , Self :: Bool (node) => node . get_id () , Self :: Dict (node) => node . get_id () , Self :: Enum (node) => node . get_id () , Self :: Float (node) => node . get_id () , Self :: Int (node) => node . get_id () , Self :: Maybe (node) => node . get_id () , Self :: Object (node) => node . get_id () , Self :: String (node) => node . get_id () , Self :: Struct (node) => node . get_id () , Self :: Typeref (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Array (node) => node . get_parent_id () , Self :: Bool (node) => node . get_parent_id () , Self :: Dict (node) => node . get_parent_id () , Self :: Enum (node) => node . get_parent_id () , Self :: Float (node) => node . get_parent_id () , Self :: Int (node) => node . get_parent_id () , Self :: Maybe (node) => node . get_parent_id () , Self :: Object (node) => node . get_parent_id () , Self :: String (node) => node . get_parent_id () , Self :: Struct (node) => node . get_parent_id () , Self :: Typeref (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Array (node) => node . get_range () , Self :: Bool (node) => node . get_range () , Self :: Dict (node) => node . get_range () , Self :: Enum (node) => node . get_range () , Self :: Float (node) => node . get_range () , Self :: Int (node) => node . get_range () , Self :: Maybe (node) => node . get_range () , Self :: Object (node) => node . get_range () , Self :: String (node) => node . get_range () , Self :: Struct (node) => node . get_range () , Self :: Typeref (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 37u16 => Ok (Self :: Array (Array :: try_from ((node , db , builder , id , parent_id)) ?)) , 16u16 => Ok (Self :: Bool (Bool :: try_from ((node , db , builder , id , parent_id)) ?)) , 38u16 => Ok (Self :: Dict (Dict :: try_from ((node , db , builder , id , parent_id)) ?)) , 33u16 => Ok (Self :: Enum (Enum :: try_from ((node , db , builder , id , parent_id)) ?)) , 18u16 => Ok (Self :: Float (Float :: try_from ((node , db , builder , id , parent_id)) ?)) , 17u16 => Ok (Self :: Int (Int :: try_from ((node , db , builder , id , parent_id)) ?)) , 35u16 => Ok (Self :: Maybe (Maybe :: try_from ((node , db , builder , id , parent_id)) ?)) , 20u16 => Ok (Self :: Object (Object :: try_from ((node , db , builder , id , parent_id)) ?)) , 19u16 => Ok (Self :: String (String :: try_from ((node , db , builder , id , parent_id)) ?)) , 31u16 => Ok (Self :: Struct (Struct :: try_from ((node , db , builder , id , parent_id)) ?)) , 39u16 => Ok (Self :: Typeref (Typeref :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Enum_Struct { Enum (Enum) , Struct (Struct) } impl auto_lsp :: core :: ast :: AstNode for Enum_Struct { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 33u16 | 31u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Enum (node) => node . lower () , Self :: Struct (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Enum (node) => node . get_id () , Self :: Struct (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Enum (node) => node . get_parent_id () , Self :: Struct (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Enum (node) => node . get_range () , Self :: Struct (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Enum_Struct { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 33u16 => Ok (Self :: Enum (Enum :: try_from ((node , db , builder , id , parent_id)) ?)) , 31u16 => Ok (Self :: Struct (Struct :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Enum_Struct) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Comment_Eol { Comment (Comment) , Eol (Eol) } impl auto_lsp :: core :: ast :: AstNode for Comment_Eol { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16 | 3u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Comment (node) => node . lower () , Self :: Eol (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Comment (node) => node . get_id () , Self :: Eol (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Comment (node) => node . get_parent_id () , Self :: Eol (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Comment (node) => node . get_range () , Self :: Eol (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment_Eol { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 2u16 => Ok (Self :: Comment (Comment :: try_from ((node , db , builder , id , parent_id)) ?)) , 3u16 => Ok (Self :: Eol (Eol :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Comment_Eol) , }) } } }
[INFO] [stdout]  1 + # ! [allow (clippy :: all)] # ! [allow (unused)] # ! [allow (dead_code)] # ! [allow (non_camel_case_types)] # ! [allow (non_snake_case)] # [derive (Debug , Clone , PartialEq)] pub struct Array { pub Type : auto_lsp :: core :: ast :: AstNodeId < Type > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Array { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 37u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Array { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut Type = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Type , 10u16 > (& mut Type) }) ; Ok (Self { Type : Type ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Type) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Dict { pub Type : auto_lsp :: core :: ast :: AstNodeId < Type > , pub children : auto_lsp :: core :: ast :: AstNodeId < String > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Dict { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 38u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Dict { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut Type = Ok (None) ; ; let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Type , 10u16 > (& mut Type) ? . on_children_id (& mut children) }) ; Ok (Self { Type : Type ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Type) , } }) ? , children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (String) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Enum { pub member : Vec < auto_lsp :: core :: ast :: AstNodeId < FieldName >> , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Enum { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 33u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Enum { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut member = vec ! [] ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_vec_field_id :: < FieldName , 6u16 > (& mut member) ? . on_vec_children_id (& mut children) }) ; Ok (Self { member , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Error { pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordError > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub value : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Error { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 29u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Error { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut keyword = Ok (None) ; ; let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < KeywordError , 5u16 > (& mut keyword) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_field_id :: < Struct , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Interface { pub declaration : auto_lsp :: core :: ast :: AstNode < InterfaceDeclaration > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol_Error_Method_Typedef >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Interface { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 24u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Interface { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut declaration = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < InterfaceDeclaration , 2u16 > (& mut declaration) ? . on_vec_children_id (& mut children) }) ; Ok (Self { declaration : declaration ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (declaration) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct InterfaceDeclaration { pub name : auto_lsp :: core :: ast :: AstNodeId < InterfaceName > , pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordInterface > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for InterfaceDeclaration { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 27u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for InterfaceDeclaration { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut name = Ok (None) ; ; let mut keyword = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < InterfaceName , 7u16 > (& mut name) ? . on_field_id :: < KeywordInterface , 5u16 > (& mut keyword) ? . on_vec_children_id (& mut children) }) ; Ok (Self { name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Maybe { pub questionmark : auto_lsp :: core :: ast :: AstNodeId < Questionmark > , pub just : auto_lsp :: core :: ast :: AstNodeId < Type > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Maybe { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 35u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Maybe { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut questionmark = Ok (None) ; ; let mut just = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Questionmark , 9u16 > (& mut questionmark) ? . on_field_id :: < Type , 4u16 > (& mut just) }) ; Ok (Self { questionmark : questionmark ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (questionmark) , } }) ? , just : just ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (just) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Method { pub input : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub output : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordMethod > , pub arrow : auto_lsp :: core :: ast :: AstNodeId < Arrow > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Method { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 30u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Method { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut input = Ok (None) ; ; let mut output = Ok (None) ; ; let mut keyword = Ok (None) ; ; let mut arrow = Ok (None) ; ; let mut name = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Struct , 3u16 > (& mut input) ? . on_field_id :: < Struct , 8u16 > (& mut output) ? . on_field_id :: < KeywordMethod , 5u16 > (& mut keyword) ? . on_field_id :: < Arrow , 1u16 > (& mut arrow) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_vec_children_id (& mut children) }) ; Ok (Self { input : input ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (input) , } }) ? , output : output ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (output) , } }) ? , keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , arrow : arrow ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (arrow) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Struct { pub member : Vec < auto_lsp :: core :: ast :: AstNodeId < StructField >> , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Struct { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 31u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Struct { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut member = vec ! [] ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_vec_field_id :: < StructField , 6u16 > (& mut member) ? . on_vec_children_id (& mut children) }) ; Ok (Self { member , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct StructField { pub name : auto_lsp :: core :: ast :: AstNodeId < FieldName > , pub value : auto_lsp :: core :: ast :: AstNodeId < Type > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for StructField { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 32u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for StructField { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < FieldName , 7u16 > (& mut name) ? . on_field_id :: < Type , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Type { pub children : auto_lsp :: core :: ast :: AstNodeId < Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Type { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 34u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Type { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_children_id (& mut children) }) ; Ok (Self { children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Typedef { pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordType > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub value : auto_lsp :: core :: ast :: AstNodeId < Enum_Struct > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Typedef { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 28u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Typedef { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut keyword = Ok (None) ; ; let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < KeywordType , 5u16 > (& mut keyword) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_field_id :: < Enum_Struct , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Typeref { pub children : auto_lsp :: core :: ast :: AstNodeId < Name > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Typeref { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 39u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Typeref { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_children_id (& mut children) }) ; Ok (Self { children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Name) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_LeftParen { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_LeftParen { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 9u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_LeftParen { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_RightParen { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_RightParen { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 11u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_RightParen { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_Comma { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_Comma { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 10u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_Comma { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_Colon { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_Colon { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 12u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_Colon { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_LeftBracket { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_LeftBracket { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 14u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_LeftBracket { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_RightBracket { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_RightBracket { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 15u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_RightBracket { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Arrow { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Arrow { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 8u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Arrow { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Bool { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Bool { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 16u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Bool { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Comment { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Comment { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Eol { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Eol { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 3u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Eol { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct FieldName { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for FieldName { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 22u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for FieldName { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Float { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Float { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 18u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Float { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Int { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Int { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 17u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Int { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct InterfaceName { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for InterfaceName { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 23u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for InterfaceName { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordError { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordError { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 6u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordError { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordInterface { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordInterface { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 4u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordInterface { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordMethod { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordMethod { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 7u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordMethod { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordType { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordType { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 5u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordType { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Name { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Name { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 21u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Name { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Object { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Object { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 20u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Object { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Questionmark { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Questionmark { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 13u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Questionmark { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct String { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for String { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 19u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for String { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub enum Comment_Eol_Error_Method_Typedef { Comment (Comment) , Eol (Eol) , Error (Error) , Method (Method) , Typedef (Typedef) } impl auto_lsp :: core :: ast :: AstNode for Comment_Eol_Error_Method_Typedef { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16 | 3u16 | 29u16 | 30u16 | 28u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Comment (node) => node . lower () , Self :: Eol (node) => node . lower () , Self :: Error (node) => node . lower () , Self :: Method (node) => node . lower () , Self :: Typedef (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Comment (node) => node . get_id () , Self :: Eol (node) => node . get_id () , Self :: Error (node) => node . get_id () , Self :: Method (node) => node . get_id () , Self :: Typedef (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Comment (node) => node . get_parent_id () , Self :: Eol (node) => node . get_parent_id () , Self :: Error (node) => node . get_parent_id () , Self :: Method (node) => node . get_parent_id () , Self :: Typedef (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Comment (node) => node . get_range () , Self :: Eol (node) => node . get_range () , Self :: Error (node) => node . get_range () , Self :: Method (node) => node . get_range () , Self :: Typedef (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment_Eol_Error_Method_Typedef { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 2u16 => Ok (Self :: Comment (Comment :: try_from ((node , db , builder , id , parent_id)) ?)) , 3u16 => Ok (Self :: Eol (Eol :: try_from ((node , db , builder , id , parent_id)) ?)) , 29u16 => Ok (Self :: Error (Error :: try_from ((node , db , builder , id , parent_id)) ?)) , 30u16 => Ok (Self :: Method (Method :: try_from ((node , db , builder , id , parent_id)) ?)) , 28u16 => Ok (Self :: Typedef (Typedef :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Comment_Eol_Error_Method_Typedef) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { Array (Array) , Bool (Bool) , Dict (Dict) , Enum (Enum) , Float (Float) , Int (Int) , Maybe (Maybe) , Object (Object) , String (String) , Struct (Struct) , Typeref (Typeref) } impl auto_lsp :: core :: ast :: AstNode for Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 37u16 | 16u16 | 38u16 | 33u16 | 18u16 | 17u16 | 35u16 | 20u16 | 19u16 | 31u16 | 39u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Array (node) => node . lower () , Self :: Bool (node) => node . lower () , Self :: Dict (node) => node . lower () , Self :: Enum (node) => node . lower () , Self :: Float (node) => node . lower () , Self :: Int (node) => node . lower () , Self :: Maybe (node) => node . lower () , Self :: Object (node) => node . lower () , Self :: String (node) => node . lower () , Self :: Struct (node) => node . lower () , Self :: Typeref (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Array (node) => node . get_id () , Self :: Bool (node) => node . get_id () , Self :: Dict (node) => node . get_id () , Self :: Enum (node) => node . get_id () , Self :: Float (node) => node . get_id () , Self :: Int (node) => node . get_id () , Self :: Maybe (node) => node . get_id () , Self :: Object (node) => node . get_id () , Self :: String (node) => node . get_id () , Self :: Struct (node) => node . get_id () , Self :: Typeref (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Array (node) => node . get_parent_id () , Self :: Bool (node) => node . get_parent_id () , Self :: Dict (node) => node . get_parent_id () , Self :: Enum (node) => node . get_parent_id () , Self :: Float (node) => node . get_parent_id () , Self :: Int (node) => node . get_parent_id () , Self :: Maybe (node) => node . get_parent_id () , Self :: Object (node) => node . get_parent_id () , Self :: String (node) => node . get_parent_id () , Self :: Struct (node) => node . get_parent_id () , Self :: Typeref (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Array (node) => node . get_range () , Self :: Bool (node) => node . get_range () , Self :: Dict (node) => node . get_range () , Self :: Enum (node) => node . get_range () , Self :: Float (node) => node . get_range () , Self :: Int (node) => node . get_range () , Self :: Maybe (node) => node . get_range () , Self :: Object (node) => node . get_range () , Self :: String (node) => node . get_range () , Self :: Struct (node) => node . get_range () , Self :: Typeref (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 37u16 => Ok (Self :: Array (Array :: try_from ((node , db , builder , id , parent_id)) ?)) , 16u16 => Ok (Self :: Bool (Bool :: try_from ((node , db , builder , id , parent_id)) ?)) , 38u16 => Ok (Self :: Dict (Dict :: try_from ((node , db , builder , id , parent_id)) ?)) , 33u16 => Ok (Self :: Enum (Enum :: try_from ((node , db , builder , id , parent_id)) ?)) , 18u16 => Ok (Self :: Float (Float :: try_from ((node , db , builder , id , parent_id)) ?)) , 17u16 => Ok (Self :: Int (Int :: try_from ((node , db , builder , id , parent_id)) ?)) , 35u16 => Ok (Self :: Maybe (Maybe :: try_from ((node , db , builder , id , parent_id)) ?)) , 20u16 => Ok (Self :: Object (Object :: try_from ((node , db , builder , id , parent_id)) ?)) , 19u16 => Ok (Self :: String (String :: try_from ((node , db , builder , id , parent_id)) ?)) , 31u16 => Ok (Self :: Struct (Struct :: try_from ((node , db , builder , id , parent_id)) ?)) , 39u16 => Ok (Self :: Typeref (Typeref :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Enum_Struct { Enum (Enum) , Struct (Struct) } impl auto_lsp :: core :: ast :: AstNode for Enum_Struct { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 33u16 | 31u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Enum (node) => node . lower () , Self :: Struct (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Enum (node) => node . get_id () , Self :: Struct (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Enum (node) => node . get_parent_id () , Self :: Struct (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Enum (node) => node . get_range () , Self :: Struct (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Enum_Struct { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 33u16 => Ok (Self :: Enum (Enum :: try_from ((node , db , builder , id , parent_id)) ?)) , 31u16 => Ok (Self :: Struct (Struct :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Enum_Struct) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Comment_Eol { Comment (Comment) , Eol (Eol) } impl auto_lsp :: core :: ast :: AstNode for Comment_Eol { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16 | 3u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Comment (node) => node . lower () , Self :: Eol (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Comment (node) => node . get_id () , Self :: Eol (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Comment (node) => node . get_parent_id () , Self :: Eol (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Comment (node) => node . get_range () , Self :: Eol (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment_Eol { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 2u16 => Ok (Self :: Comment (Comment :: try_from ((node , db , builder , id , parent_id)) ?)) , 3u16 => Ok (Self :: Eol (Eol :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Comment_Eol) , }) } } }
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `AstNodeId` in module `auto_lsp::core::ast`
[INFO] [stdout]   --> src/ast.rs:1:6794
[INFO] [stdout]    |
[INFO] [stdout]  1 | ...aration > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol_Error_Method_Typedef >> , _range : auto_lsp :...
[INFO] [stdout]    |                                                                ^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]   ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/auto-lsp-core-0.7.0/src/ast/node.rs:26:1
[INFO] [stdout]    |
[INFO] [stdout] 26 | pub trait AstNode: std::fmt::Debug + Send + Sync + DowncastSync {
[INFO] [stdout]    | --------------------------------------------------------------- similarly named trait `AstNode` defined here
[INFO] [stdout]    |
[INFO] [stdout] help: a trait with a similar name exists
[INFO] [stdout]    |
[INFO] [stdout]  1 - # ! [allow (clippy :: all)] # ! [allow (unused)] # ! [allow (dead_code)] # ! [allow (non_camel_case_types)] # ! [allow (non_snake_case)] # [derive (Debug , Clone , PartialEq)] pub struct Array { pub Type : auto_lsp :: core :: ast :: AstNodeId < Type > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Array { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 37u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Array { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut Type = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Type , 10u16 > (& mut Type) }) ; Ok (Self { Type : Type ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Type) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Dict { pub Type : auto_lsp :: core :: ast :: AstNodeId < Type > , pub children : auto_lsp :: core :: ast :: AstNodeId < String > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Dict { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 38u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Dict { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut Type = Ok (None) ; ; let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Type , 10u16 > (& mut Type) ? . on_children_id (& mut children) }) ; Ok (Self { Type : Type ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Type) , } }) ? , children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (String) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Enum { pub member : Vec < auto_lsp :: core :: ast :: AstNodeId < FieldName >> , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Enum { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 33u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Enum { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut member = vec ! [] ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_vec_field_id :: < FieldName , 6u16 > (& mut member) ? . on_vec_children_id (& mut children) }) ; Ok (Self { member , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Error { pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordError > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub value : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Error { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 29u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Error { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut keyword = Ok (None) ; ; let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < KeywordError , 5u16 > (& mut keyword) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_field_id :: < Struct , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Interface { pub declaration : auto_lsp :: core :: ast :: AstNodeId < InterfaceDeclaration > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol_Error_Method_Typedef >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Interface { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 24u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Interface { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut declaration = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < InterfaceDeclaration , 2u16 > (& mut declaration) ? . on_vec_children_id (& mut children) }) ; Ok (Self { declaration : declaration ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (declaration) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct InterfaceDeclaration { pub name : auto_lsp :: core :: ast :: AstNodeId < InterfaceName > , pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordInterface > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for InterfaceDeclaration { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 27u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for InterfaceDeclaration { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut name = Ok (None) ; ; let mut keyword = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < InterfaceName , 7u16 > (& mut name) ? . on_field_id :: < KeywordInterface , 5u16 > (& mut keyword) ? . on_vec_children_id (& mut children) }) ; Ok (Self { name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Maybe { pub questionmark : auto_lsp :: core :: ast :: AstNodeId < Questionmark > , pub just : auto_lsp :: core :: ast :: AstNodeId < Type > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Maybe { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 35u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Maybe { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut questionmark = Ok (None) ; ; let mut just = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Questionmark , 9u16 > (& mut questionmark) ? . on_field_id :: < Type , 4u16 > (& mut just) }) ; Ok (Self { questionmark : questionmark ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (questionmark) , } }) ? , just : just ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (just) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Method { pub input : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub output : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordMethod > , pub arrow : auto_lsp :: core :: ast :: AstNodeId < Arrow > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Method { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 30u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Method { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut input = Ok (None) ; ; let mut output = Ok (None) ; ; let mut keyword = Ok (None) ; ; let mut arrow = Ok (None) ; ; let mut name = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Struct , 3u16 > (& mut input) ? . on_field_id :: < Struct , 8u16 > (& mut output) ? . on_field_id :: < KeywordMethod , 5u16 > (& mut keyword) ? . on_field_id :: < Arrow , 1u16 > (& mut arrow) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_vec_children_id (& mut children) }) ; Ok (Self { input : input ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (input) , } }) ? , output : output ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (output) , } }) ? , keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , arrow : arrow ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (arrow) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Struct { pub member : Vec < auto_lsp :: core :: ast :: AstNodeId < StructField >> , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Struct { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 31u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Struct { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut member = vec ! [] ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_vec_field_id :: < StructField , 6u16 > (& mut member) ? . on_vec_children_id (& mut children) }) ; Ok (Self { member , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct StructField { pub name : auto_lsp :: core :: ast :: AstNodeId < FieldName > , pub value : auto_lsp :: core :: ast :: AstNodeId < Type > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for StructField { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 32u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for StructField { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < FieldName , 7u16 > (& mut name) ? . on_field_id :: < Type , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Type { pub children : auto_lsp :: core :: ast :: AstNodeId < Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Type { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 34u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Type { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_children_id (& mut children) }) ; Ok (Self { children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Typedef { pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordType > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub value : auto_lsp :: core :: ast :: AstNodeId < Enum_Struct > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Typedef { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 28u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Typedef { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut keyword = Ok (None) ; ; let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < KeywordType , 5u16 > (& mut keyword) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_field_id :: < Enum_Struct , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Typeref { pub children : auto_lsp :: core :: ast :: AstNodeId < Name > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Typeref { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 39u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Typeref { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_children_id (& mut children) }) ; Ok (Self { children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Name) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_LeftParen { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_LeftParen { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 9u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_LeftParen { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_RightParen { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_RightParen { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 11u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_RightParen { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_Comma { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_Comma { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 10u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_Comma { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_Colon { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_Colon { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 12u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_Colon { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_LeftBracket { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_LeftBracket { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 14u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_LeftBracket { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_RightBracket { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_RightBracket { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 15u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_RightBracket { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Arrow { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Arrow { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 8u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Arrow { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Bool { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Bool { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 16u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Bool { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Comment { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Comment { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Eol { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Eol { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 3u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Eol { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct FieldName { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for FieldName { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 22u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for FieldName { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Float { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Float { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 18u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Float { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Int { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Int { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 17u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Int { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct InterfaceName { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for InterfaceName { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 23u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for InterfaceName { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordError { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordError { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 6u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordError { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordInterface { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordInterface { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 4u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordInterface { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordMethod { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordMethod { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 7u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordMethod { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordType { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordType { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 5u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordType { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Name { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Name { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 21u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Name { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Object { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Object { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 20u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Object { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Questionmark { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Questionmark { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 13u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Questionmark { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct String { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for String { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 19u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for String { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub enum Comment_Eol_Error_Method_Typedef { Comment (Comment) , Eol (Eol) , Error (Error) , Method (Method) , Typedef (Typedef) } impl auto_lsp :: core :: ast :: AstNode for Comment_Eol_Error_Method_Typedef { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16 | 3u16 | 29u16 | 30u16 | 28u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Comment (node) => node . lower () , Self :: Eol (node) => node . lower () , Self :: Error (node) => node . lower () , Self :: Method (node) => node . lower () , Self :: Typedef (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Comment (node) => node . get_id () , Self :: Eol (node) => node . get_id () , Self :: Error (node) => node . get_id () , Self :: Method (node) => node . get_id () , Self :: Typedef (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Comment (node) => node . get_parent_id () , Self :: Eol (node) => node . get_parent_id () , Self :: Error (node) => node . get_parent_id () , Self :: Method (node) => node . get_parent_id () , Self :: Typedef (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Comment (node) => node . get_range () , Self :: Eol (node) => node . get_range () , Self :: Error (node) => node . get_range () , Self :: Method (node) => node . get_range () , Self :: Typedef (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment_Eol_Error_Method_Typedef { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 2u16 => Ok (Self :: Comment (Comment :: try_from ((node , db , builder , id , parent_id)) ?)) , 3u16 => Ok (Self :: Eol (Eol :: try_from ((node , db , builder , id , parent_id)) ?)) , 29u16 => Ok (Self :: Error (Error :: try_from ((node , db , builder , id , parent_id)) ?)) , 30u16 => Ok (Self :: Method (Method :: try_from ((node , db , builder , id , parent_id)) ?)) , 28u16 => Ok (Self :: Typedef (Typedef :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Comment_Eol_Error_Method_Typedef) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { Array (Array) , Bool (Bool) , Dict (Dict) , Enum (Enum) , Float (Float) , Int (Int) , Maybe (Maybe) , Object (Object) , String (String) , Struct (Struct) , Typeref (Typeref) } impl auto_lsp :: core :: ast :: AstNode for Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 37u16 | 16u16 | 38u16 | 33u16 | 18u16 | 17u16 | 35u16 | 20u16 | 19u16 | 31u16 | 39u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Array (node) => node . lower () , Self :: Bool (node) => node . lower () , Self :: Dict (node) => node . lower () , Self :: Enum (node) => node . lower () , Self :: Float (node) => node . lower () , Self :: Int (node) => node . lower () , Self :: Maybe (node) => node . lower () , Self :: Object (node) => node . lower () , Self :: String (node) => node . lower () , Self :: Struct (node) => node . lower () , Self :: Typeref (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Array (node) => node . get_id () , Self :: Bool (node) => node . get_id () , Self :: Dict (node) => node . get_id () , Self :: Enum (node) => node . get_id () , Self :: Float (node) => node . get_id () , Self :: Int (node) => node . get_id () , Self :: Maybe (node) => node . get_id () , Self :: Object (node) => node . get_id () , Self :: String (node) => node . get_id () , Self :: Struct (node) => node . get_id () , Self :: Typeref (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Array (node) => node . get_parent_id () , Self :: Bool (node) => node . get_parent_id () , Self :: Dict (node) => node . get_parent_id () , Self :: Enum (node) => node . get_parent_id () , Self :: Float (node) => node . get_parent_id () , Self :: Int (node) => node . get_parent_id () , Self :: Maybe (node) => node . get_parent_id () , Self :: Object (node) => node . get_parent_id () , Self :: String (node) => node . get_parent_id () , Self :: Struct (node) => node . get_parent_id () , Self :: Typeref (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Array (node) => node . get_range () , Self :: Bool (node) => node . get_range () , Self :: Dict (node) => node . get_range () , Self :: Enum (node) => node . get_range () , Self :: Float (node) => node . get_range () , Self :: Int (node) => node . get_range () , Self :: Maybe (node) => node . get_range () , Self :: Object (node) => node . get_range () , Self :: String (node) => node . get_range () , Self :: Struct (node) => node . get_range () , Self :: Typeref (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 37u16 => Ok (Self :: Array (Array :: try_from ((node , db , builder , id , parent_id)) ?)) , 16u16 => Ok (Self :: Bool (Bool :: try_from ((node , db , builder , id , parent_id)) ?)) , 38u16 => Ok (Self :: Dict (Dict :: try_from ((node , db , builder , id , parent_id)) ?)) , 33u16 => Ok (Self :: Enum (Enum :: try_from ((node , db , builder , id , parent_id)) ?)) , 18u16 => Ok (Self :: Float (Float :: try_from ((node , db , builder , id , parent_id)) ?)) , 17u16 => Ok (Self :: Int (Int :: try_from ((node , db , builder , id , parent_id)) ?)) , 35u16 => Ok (Self :: Maybe (Maybe :: try_from ((node , db , builder , id , parent_id)) ?)) , 20u16 => Ok (Self :: Object (Object :: try_from ((node , db , builder , id , parent_id)) ?)) , 19u16 => Ok (Self :: String (String :: try_from ((node , db , builder , id , parent_id)) ?)) , 31u16 => Ok (Self :: Struct (Struct :: try_from ((node , db , builder , id , parent_id)) ?)) , 39u16 => Ok (Self :: Typeref (Typeref :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Enum_Struct { Enum (Enum) , Struct (Struct) } impl auto_lsp :: core :: ast :: AstNode for Enum_Struct { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 33u16 | 31u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Enum (node) => node . lower () , Self :: Struct (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Enum (node) => node . get_id () , Self :: Struct (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Enum (node) => node . get_parent_id () , Self :: Struct (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Enum (node) => node . get_range () , Self :: Struct (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Enum_Struct { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 33u16 => Ok (Self :: Enum (Enum :: try_from ((node , db , builder , id , parent_id)) ?)) , 31u16 => Ok (Self :: Struct (Struct :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Enum_Struct) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Comment_Eol { Comment (Comment) , Eol (Eol) } impl auto_lsp :: core :: ast :: AstNode for Comment_Eol { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16 | 3u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Comment (node) => node . lower () , Self :: Eol (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Comment (node) => node . get_id () , Self :: Eol (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Comment (node) => node . get_parent_id () , Self :: Eol (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Comment (node) => node . get_range () , Self :: Eol (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment_Eol { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 2u16 => Ok (Self :: Comment (Comment :: try_from ((node , db , builder , id , parent_id)) ?)) , 3u16 => Ok (Self :: Eol (Eol :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Comment_Eol) , }) } } }
[INFO] [stdout]  1 + # ! [allow (clippy :: all)] # ! [allow (unused)] # ! [allow (dead_code)] # ! [allow (non_camel_case_types)] # ! [allow (non_snake_case)] # [derive (Debug , Clone , PartialEq)] pub struct Array { pub Type : auto_lsp :: core :: ast :: AstNodeId < Type > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Array { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 37u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Array { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut Type = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Type , 10u16 > (& mut Type) }) ; Ok (Self { Type : Type ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Type) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Dict { pub Type : auto_lsp :: core :: ast :: AstNodeId < Type > , pub children : auto_lsp :: core :: ast :: AstNodeId < String > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Dict { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 38u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Dict { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut Type = Ok (None) ; ; let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Type , 10u16 > (& mut Type) ? . on_children_id (& mut children) }) ; Ok (Self { Type : Type ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Type) , } }) ? , children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (String) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Enum { pub member : Vec < auto_lsp :: core :: ast :: AstNodeId < FieldName >> , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Enum { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 33u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Enum { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut member = vec ! [] ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_vec_field_id :: < FieldName , 6u16 > (& mut member) ? . on_vec_children_id (& mut children) }) ; Ok (Self { member , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Error { pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordError > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub value : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Error { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 29u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Error { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut keyword = Ok (None) ; ; let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < KeywordError , 5u16 > (& mut keyword) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_field_id :: < Struct , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Interface { pub declaration : auto_lsp :: core :: ast :: AstNodeId < InterfaceDeclaration > , pub children : Vec < auto_lsp :: core :: ast :: AstNode < Comment_Eol_Error_Method_Typedef >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Interface { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 24u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Interface { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut declaration = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < InterfaceDeclaration , 2u16 > (& mut declaration) ? . on_vec_children_id (& mut children) }) ; Ok (Self { declaration : declaration ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (declaration) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct InterfaceDeclaration { pub name : auto_lsp :: core :: ast :: AstNodeId < InterfaceName > , pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordInterface > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for InterfaceDeclaration { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 27u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for InterfaceDeclaration { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut name = Ok (None) ; ; let mut keyword = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < InterfaceName , 7u16 > (& mut name) ? . on_field_id :: < KeywordInterface , 5u16 > (& mut keyword) ? . on_vec_children_id (& mut children) }) ; Ok (Self { name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Maybe { pub questionmark : auto_lsp :: core :: ast :: AstNodeId < Questionmark > , pub just : auto_lsp :: core :: ast :: AstNodeId < Type > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Maybe { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 35u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Maybe { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut questionmark = Ok (None) ; ; let mut just = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Questionmark , 9u16 > (& mut questionmark) ? . on_field_id :: < Type , 4u16 > (& mut just) }) ; Ok (Self { questionmark : questionmark ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (questionmark) , } }) ? , just : just ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (just) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Method { pub input : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub output : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordMethod > , pub arrow : auto_lsp :: core :: ast :: AstNodeId < Arrow > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Method { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 30u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Method { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut input = Ok (None) ; ; let mut output = Ok (None) ; ; let mut keyword = Ok (None) ; ; let mut arrow = Ok (None) ; ; let mut name = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Struct , 3u16 > (& mut input) ? . on_field_id :: < Struct , 8u16 > (& mut output) ? . on_field_id :: < KeywordMethod , 5u16 > (& mut keyword) ? . on_field_id :: < Arrow , 1u16 > (& mut arrow) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_vec_children_id (& mut children) }) ; Ok (Self { input : input ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (input) , } }) ? , output : output ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (output) , } }) ? , keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , arrow : arrow ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (arrow) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Struct { pub member : Vec < auto_lsp :: core :: ast :: AstNodeId < StructField >> , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Struct { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 31u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Struct { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut member = vec ! [] ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_vec_field_id :: < StructField , 6u16 > (& mut member) ? . on_vec_children_id (& mut children) }) ; Ok (Self { member , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct StructField { pub name : auto_lsp :: core :: ast :: AstNodeId < FieldName > , pub value : auto_lsp :: core :: ast :: AstNodeId < Type > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for StructField { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 32u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for StructField { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < FieldName , 7u16 > (& mut name) ? . on_field_id :: < Type , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Type { pub children : auto_lsp :: core :: ast :: AstNodeId < Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Type { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 34u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Type { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_children_id (& mut children) }) ; Ok (Self { children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Typedef { pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordType > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub value : auto_lsp :: core :: ast :: AstNodeId < Enum_Struct > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Typedef { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 28u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Typedef { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut keyword = Ok (None) ; ; let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < KeywordType , 5u16 > (& mut keyword) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_field_id :: < Enum_Struct , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Typeref { pub children : auto_lsp :: core :: ast :: AstNodeId < Name > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Typeref { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 39u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Typeref { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_children_id (& mut children) }) ; Ok (Self { children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Name) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_LeftParen { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_LeftParen { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 9u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_LeftParen { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_RightParen { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_RightParen { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 11u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_RightParen { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_Comma { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_Comma { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 10u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_Comma { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_Colon { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_Colon { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 12u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_Colon { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_LeftBracket { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_LeftBracket { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 14u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_LeftBracket { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_RightBracket { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_RightBracket { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 15u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_RightBracket { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Arrow { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Arrow { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 8u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Arrow { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Bool { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Bool { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 16u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Bool { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Comment { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Comment { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Eol { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Eol { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 3u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Eol { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct FieldName { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for FieldName { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 22u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for FieldName { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Float { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Float { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 18u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Float { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Int { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Int { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 17u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Int { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct InterfaceName { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for InterfaceName { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 23u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for InterfaceName { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordError { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordError { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 6u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordError { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordInterface { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordInterface { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 4u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordInterface { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordMethod { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordMethod { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 7u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordMethod { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordType { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordType { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 5u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordType { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Name { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Name { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 21u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Name { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Object { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Object { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 20u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Object { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Questionmark { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Questionmark { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 13u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Questionmark { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct String { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for String { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 19u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for String { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub enum Comment_Eol_Error_Method_Typedef { Comment (Comment) , Eol (Eol) , Error (Error) , Method (Method) , Typedef (Typedef) } impl auto_lsp :: core :: ast :: AstNode for Comment_Eol_Error_Method_Typedef { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16 | 3u16 | 29u16 | 30u16 | 28u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Comment (node) => node . lower () , Self :: Eol (node) => node . lower () , Self :: Error (node) => node . lower () , Self :: Method (node) => node . lower () , Self :: Typedef (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Comment (node) => node . get_id () , Self :: Eol (node) => node . get_id () , Self :: Error (node) => node . get_id () , Self :: Method (node) => node . get_id () , Self :: Typedef (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Comment (node) => node . get_parent_id () , Self :: Eol (node) => node . get_parent_id () , Self :: Error (node) => node . get_parent_id () , Self :: Method (node) => node . get_parent_id () , Self :: Typedef (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Comment (node) => node . get_range () , Self :: Eol (node) => node . get_range () , Self :: Error (node) => node . get_range () , Self :: Method (node) => node . get_range () , Self :: Typedef (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment_Eol_Error_Method_Typedef { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 2u16 => Ok (Self :: Comment (Comment :: try_from ((node , db , builder , id , parent_id)) ?)) , 3u16 => Ok (Self :: Eol (Eol :: try_from ((node , db , builder , id , parent_id)) ?)) , 29u16 => Ok (Self :: Error (Error :: try_from ((node , db , builder , id , parent_id)) ?)) , 30u16 => Ok (Self :: Method (Method :: try_from ((node , db , builder , id , parent_id)) ?)) , 28u16 => Ok (Self :: Typedef (Typedef :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Comment_Eol_Error_Method_Typedef) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { Array (Array) , Bool (Bool) , Dict (Dict) , Enum (Enum) , Float (Float) , Int (Int) , Maybe (Maybe) , Object (Object) , String (String) , Struct (Struct) , Typeref (Typeref) } impl auto_lsp :: core :: ast :: AstNode for Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 37u16 | 16u16 | 38u16 | 33u16 | 18u16 | 17u16 | 35u16 | 20u16 | 19u16 | 31u16 | 39u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Array (node) => node . lower () , Self :: Bool (node) => node . lower () , Self :: Dict (node) => node . lower () , Self :: Enum (node) => node . lower () , Self :: Float (node) => node . lower () , Self :: Int (node) => node . lower () , Self :: Maybe (node) => node . lower () , Self :: Object (node) => node . lower () , Self :: String (node) => node . lower () , Self :: Struct (node) => node . lower () , Self :: Typeref (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Array (node) => node . get_id () , Self :: Bool (node) => node . get_id () , Self :: Dict (node) => node . get_id () , Self :: Enum (node) => node . get_id () , Self :: Float (node) => node . get_id () , Self :: Int (node) => node . get_id () , Self :: Maybe (node) => node . get_id () , Self :: Object (node) => node . get_id () , Self :: String (node) => node . get_id () , Self :: Struct (node) => node . get_id () , Self :: Typeref (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Array (node) => node . get_parent_id () , Self :: Bool (node) => node . get_parent_id () , Self :: Dict (node) => node . get_parent_id () , Self :: Enum (node) => node . get_parent_id () , Self :: Float (node) => node . get_parent_id () , Self :: Int (node) => node . get_parent_id () , Self :: Maybe (node) => node . get_parent_id () , Self :: Object (node) => node . get_parent_id () , Self :: String (node) => node . get_parent_id () , Self :: Struct (node) => node . get_parent_id () , Self :: Typeref (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Array (node) => node . get_range () , Self :: Bool (node) => node . get_range () , Self :: Dict (node) => node . get_range () , Self :: Enum (node) => node . get_range () , Self :: Float (node) => node . get_range () , Self :: Int (node) => node . get_range () , Self :: Maybe (node) => node . get_range () , Self :: Object (node) => node . get_range () , Self :: String (node) => node . get_range () , Self :: Struct (node) => node . get_range () , Self :: Typeref (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 37u16 => Ok (Self :: Array (Array :: try_from ((node , db , builder , id , parent_id)) ?)) , 16u16 => Ok (Self :: Bool (Bool :: try_from ((node , db , builder , id , parent_id)) ?)) , 38u16 => Ok (Self :: Dict (Dict :: try_from ((node , db , builder , id , parent_id)) ?)) , 33u16 => Ok (Self :: Enum (Enum :: try_from ((node , db , builder , id , parent_id)) ?)) , 18u16 => Ok (Self :: Float (Float :: try_from ((node , db , builder , id , parent_id)) ?)) , 17u16 => Ok (Self :: Int (Int :: try_from ((node , db , builder , id , parent_id)) ?)) , 35u16 => Ok (Self :: Maybe (Maybe :: try_from ((node , db , builder , id , parent_id)) ?)) , 20u16 => Ok (Self :: Object (Object :: try_from ((node , db , builder , id , parent_id)) ?)) , 19u16 => Ok (Self :: String (String :: try_from ((node , db , builder , id , parent_id)) ?)) , 31u16 => Ok (Self :: Struct (Struct :: try_from ((node , db , builder , id , parent_id)) ?)) , 39u16 => Ok (Self :: Typeref (Typeref :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Enum_Struct { Enum (Enum) , Struct (Struct) } impl auto_lsp :: core :: ast :: AstNode for Enum_Struct { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 33u16 | 31u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Enum (node) => node . lower () , Self :: Struct (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Enum (node) => node . get_id () , Self :: Struct (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Enum (node) => node . get_parent_id () , Self :: Struct (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Enum (node) => node . get_range () , Self :: Struct (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Enum_Struct { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 33u16 => Ok (Self :: Enum (Enum :: try_from ((node , db , builder , id , parent_id)) ?)) , 31u16 => Ok (Self :: Struct (Struct :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Enum_Struct) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Comment_Eol { Comment (Comment) , Eol (Eol) } impl auto_lsp :: core :: ast :: AstNode for Comment_Eol { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16 | 3u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Comment (node) => node . lower () , Self :: Eol (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Comment (node) => node . get_id () , Self :: Eol (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Comment (node) => node . get_parent_id () , Self :: Eol (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Comment (node) => node . get_range () , Self :: Eol (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment_Eol { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 2u16 => Ok (Self :: Comment (Comment :: try_from ((node , db , builder , id , parent_id)) ?)) , 3u16 => Ok (Self :: Eol (Eol :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Comment_Eol) , }) } } }
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `AstNodeId` in module `auto_lsp::core::ast`
[INFO] [stdout]   --> src/ast.rs:1:8298
[INFO] [stdout]    |
[INFO] [stdout]  1 | ...nterfaceDeclaration { pub name : auto_lsp :: core :: ast :: AstNodeId < InterfaceName > , pub keyword : auto_lsp :: core :: ast :...
[INFO] [stdout]    |                                                                ^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]   ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/auto-lsp-core-0.7.0/src/ast/node.rs:26:1
[INFO] [stdout]    |
[INFO] [stdout] 26 | pub trait AstNode: std::fmt::Debug + Send + Sync + DowncastSync {
[INFO] [stdout]    | --------------------------------------------------------------- similarly named trait `AstNode` defined here
[INFO] [stdout]    |
[INFO] [stdout] help: a trait with a similar name exists
[INFO] [stdout]    |
[INFO] [stdout]  1 - # ! [allow (clippy :: all)] # ! [allow (unused)] # ! [allow (dead_code)] # ! [allow (non_camel_case_types)] # ! [allow (non_snake_case)] # [derive (Debug , Clone , PartialEq)] pub struct Array { pub Type : auto_lsp :: core :: ast :: AstNodeId < Type > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Array { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 37u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Array { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut Type = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Type , 10u16 > (& mut Type) }) ; Ok (Self { Type : Type ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Type) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Dict { pub Type : auto_lsp :: core :: ast :: AstNodeId < Type > , pub children : auto_lsp :: core :: ast :: AstNodeId < String > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Dict { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 38u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Dict { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut Type = Ok (None) ; ; let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Type , 10u16 > (& mut Type) ? . on_children_id (& mut children) }) ; Ok (Self { Type : Type ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Type) , } }) ? , children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (String) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Enum { pub member : Vec < auto_lsp :: core :: ast :: AstNodeId < FieldName >> , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Enum { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 33u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Enum { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut member = vec ! [] ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_vec_field_id :: < FieldName , 6u16 > (& mut member) ? . on_vec_children_id (& mut children) }) ; Ok (Self { member , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Error { pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordError > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub value : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Error { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 29u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Error { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut keyword = Ok (None) ; ; let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < KeywordError , 5u16 > (& mut keyword) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_field_id :: < Struct , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Interface { pub declaration : auto_lsp :: core :: ast :: AstNodeId < InterfaceDeclaration > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol_Error_Method_Typedef >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Interface { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 24u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Interface { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut declaration = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < InterfaceDeclaration , 2u16 > (& mut declaration) ? . on_vec_children_id (& mut children) }) ; Ok (Self { declaration : declaration ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (declaration) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct InterfaceDeclaration { pub name : auto_lsp :: core :: ast :: AstNodeId < InterfaceName > , pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordInterface > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for InterfaceDeclaration { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 27u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for InterfaceDeclaration { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut name = Ok (None) ; ; let mut keyword = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < InterfaceName , 7u16 > (& mut name) ? . on_field_id :: < KeywordInterface , 5u16 > (& mut keyword) ? . on_vec_children_id (& mut children) }) ; Ok (Self { name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Maybe { pub questionmark : auto_lsp :: core :: ast :: AstNodeId < Questionmark > , pub just : auto_lsp :: core :: ast :: AstNodeId < Type > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Maybe { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 35u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Maybe { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut questionmark = Ok (None) ; ; let mut just = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Questionmark , 9u16 > (& mut questionmark) ? . on_field_id :: < Type , 4u16 > (& mut just) }) ; Ok (Self { questionmark : questionmark ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (questionmark) , } }) ? , just : just ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (just) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Method { pub input : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub output : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordMethod > , pub arrow : auto_lsp :: core :: ast :: AstNodeId < Arrow > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Method { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 30u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Method { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut input = Ok (None) ; ; let mut output = Ok (None) ; ; let mut keyword = Ok (None) ; ; let mut arrow = Ok (None) ; ; let mut name = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Struct , 3u16 > (& mut input) ? . on_field_id :: < Struct , 8u16 > (& mut output) ? . on_field_id :: < KeywordMethod , 5u16 > (& mut keyword) ? . on_field_id :: < Arrow , 1u16 > (& mut arrow) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_vec_children_id (& mut children) }) ; Ok (Self { input : input ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (input) , } }) ? , output : output ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (output) , } }) ? , keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , arrow : arrow ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (arrow) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Struct { pub member : Vec < auto_lsp :: core :: ast :: AstNodeId < StructField >> , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Struct { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 31u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Struct { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut member = vec ! [] ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_vec_field_id :: < StructField , 6u16 > (& mut member) ? . on_vec_children_id (& mut children) }) ; Ok (Self { member , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct StructField { pub name : auto_lsp :: core :: ast :: AstNodeId < FieldName > , pub value : auto_lsp :: core :: ast :: AstNodeId < Type > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for StructField { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 32u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for StructField { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < FieldName , 7u16 > (& mut name) ? . on_field_id :: < Type , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Type { pub children : auto_lsp :: core :: ast :: AstNodeId < Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Type { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 34u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Type { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_children_id (& mut children) }) ; Ok (Self { children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Typedef { pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordType > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub value : auto_lsp :: core :: ast :: AstNodeId < Enum_Struct > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Typedef { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 28u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Typedef { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut keyword = Ok (None) ; ; let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < KeywordType , 5u16 > (& mut keyword) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_field_id :: < Enum_Struct , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Typeref { pub children : auto_lsp :: core :: ast :: AstNodeId < Name > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Typeref { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 39u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Typeref { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_children_id (& mut children) }) ; Ok (Self { children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Name) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_LeftParen { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_LeftParen { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 9u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_LeftParen { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_RightParen { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_RightParen { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 11u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_RightParen { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_Comma { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_Comma { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 10u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_Comma { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_Colon { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_Colon { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 12u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_Colon { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_LeftBracket { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_LeftBracket { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 14u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_LeftBracket { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_RightBracket { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_RightBracket { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 15u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_RightBracket { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Arrow { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Arrow { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 8u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Arrow { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Bool { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Bool { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 16u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Bool { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Comment { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Comment { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Eol { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Eol { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 3u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Eol { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct FieldName { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for FieldName { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 22u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for FieldName { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Float { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Float { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 18u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Float { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Int { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Int { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 17u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Int { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct InterfaceName { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for InterfaceName { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 23u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for InterfaceName { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordError { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordError { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 6u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordError { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordInterface { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordInterface { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 4u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordInterface { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordMethod { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordMethod { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 7u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordMethod { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordType { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordType { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 5u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordType { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Name { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Name { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 21u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Name { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Object { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Object { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 20u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Object { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Questionmark { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Questionmark { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 13u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Questionmark { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct String { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for String { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 19u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for String { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub enum Comment_Eol_Error_Method_Typedef { Comment (Comment) , Eol (Eol) , Error (Error) , Method (Method) , Typedef (Typedef) } impl auto_lsp :: core :: ast :: AstNode for Comment_Eol_Error_Method_Typedef { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16 | 3u16 | 29u16 | 30u16 | 28u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Comment (node) => node . lower () , Self :: Eol (node) => node . lower () , Self :: Error (node) => node . lower () , Self :: Method (node) => node . lower () , Self :: Typedef (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Comment (node) => node . get_id () , Self :: Eol (node) => node . get_id () , Self :: Error (node) => node . get_id () , Self :: Method (node) => node . get_id () , Self :: Typedef (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Comment (node) => node . get_parent_id () , Self :: Eol (node) => node . get_parent_id () , Self :: Error (node) => node . get_parent_id () , Self :: Method (node) => node . get_parent_id () , Self :: Typedef (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Comment (node) => node . get_range () , Self :: Eol (node) => node . get_range () , Self :: Error (node) => node . get_range () , Self :: Method (node) => node . get_range () , Self :: Typedef (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment_Eol_Error_Method_Typedef { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 2u16 => Ok (Self :: Comment (Comment :: try_from ((node , db , builder , id , parent_id)) ?)) , 3u16 => Ok (Self :: Eol (Eol :: try_from ((node , db , builder , id , parent_id)) ?)) , 29u16 => Ok (Self :: Error (Error :: try_from ((node , db , builder , id , parent_id)) ?)) , 30u16 => Ok (Self :: Method (Method :: try_from ((node , db , builder , id , parent_id)) ?)) , 28u16 => Ok (Self :: Typedef (Typedef :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Comment_Eol_Error_Method_Typedef) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { Array (Array) , Bool (Bool) , Dict (Dict) , Enum (Enum) , Float (Float) , Int (Int) , Maybe (Maybe) , Object (Object) , String (String) , Struct (Struct) , Typeref (Typeref) } impl auto_lsp :: core :: ast :: AstNode for Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 37u16 | 16u16 | 38u16 | 33u16 | 18u16 | 17u16 | 35u16 | 20u16 | 19u16 | 31u16 | 39u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Array (node) => node . lower () , Self :: Bool (node) => node . lower () , Self :: Dict (node) => node . lower () , Self :: Enum (node) => node . lower () , Self :: Float (node) => node . lower () , Self :: Int (node) => node . lower () , Self :: Maybe (node) => node . lower () , Self :: Object (node) => node . lower () , Self :: String (node) => node . lower () , Self :: Struct (node) => node . lower () , Self :: Typeref (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Array (node) => node . get_id () , Self :: Bool (node) => node . get_id () , Self :: Dict (node) => node . get_id () , Self :: Enum (node) => node . get_id () , Self :: Float (node) => node . get_id () , Self :: Int (node) => node . get_id () , Self :: Maybe (node) => node . get_id () , Self :: Object (node) => node . get_id () , Self :: String (node) => node . get_id () , Self :: Struct (node) => node . get_id () , Self :: Typeref (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Array (node) => node . get_parent_id () , Self :: Bool (node) => node . get_parent_id () , Self :: Dict (node) => node . get_parent_id () , Self :: Enum (node) => node . get_parent_id () , Self :: Float (node) => node . get_parent_id () , Self :: Int (node) => node . get_parent_id () , Self :: Maybe (node) => node . get_parent_id () , Self :: Object (node) => node . get_parent_id () , Self :: String (node) => node . get_parent_id () , Self :: Struct (node) => node . get_parent_id () , Self :: Typeref (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Array (node) => node . get_range () , Self :: Bool (node) => node . get_range () , Self :: Dict (node) => node . get_range () , Self :: Enum (node) => node . get_range () , Self :: Float (node) => node . get_range () , Self :: Int (node) => node . get_range () , Self :: Maybe (node) => node . get_range () , Self :: Object (node) => node . get_range () , Self :: String (node) => node . get_range () , Self :: Struct (node) => node . get_range () , Self :: Typeref (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 37u16 => Ok (Self :: Array (Array :: try_from ((node , db , builder , id , parent_id)) ?)) , 16u16 => Ok (Self :: Bool (Bool :: try_from ((node , db , builder , id , parent_id)) ?)) , 38u16 => Ok (Self :: Dict (Dict :: try_from ((node , db , builder , id , parent_id)) ?)) , 33u16 => Ok (Self :: Enum (Enum :: try_from ((node , db , builder , id , parent_id)) ?)) , 18u16 => Ok (Self :: Float (Float :: try_from ((node , db , builder , id , parent_id)) ?)) , 17u16 => Ok (Self :: Int (Int :: try_from ((node , db , builder , id , parent_id)) ?)) , 35u16 => Ok (Self :: Maybe (Maybe :: try_from ((node , db , builder , id , parent_id)) ?)) , 20u16 => Ok (Self :: Object (Object :: try_from ((node , db , builder , id , parent_id)) ?)) , 19u16 => Ok (Self :: String (String :: try_from ((node , db , builder , id , parent_id)) ?)) , 31u16 => Ok (Self :: Struct (Struct :: try_from ((node , db , builder , id , parent_id)) ?)) , 39u16 => Ok (Self :: Typeref (Typeref :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Enum_Struct { Enum (Enum) , Struct (Struct) } impl auto_lsp :: core :: ast :: AstNode for Enum_Struct { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 33u16 | 31u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Enum (node) => node . lower () , Self :: Struct (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Enum (node) => node . get_id () , Self :: Struct (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Enum (node) => node . get_parent_id () , Self :: Struct (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Enum (node) => node . get_range () , Self :: Struct (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Enum_Struct { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 33u16 => Ok (Self :: Enum (Enum :: try_from ((node , db , builder , id , parent_id)) ?)) , 31u16 => Ok (Self :: Struct (Struct :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Enum_Struct) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Comment_Eol { Comment (Comment) , Eol (Eol) } impl auto_lsp :: core :: ast :: AstNode for Comment_Eol { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16 | 3u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Comment (node) => node . lower () , Self :: Eol (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Comment (node) => node . get_id () , Self :: Eol (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Comment (node) => node . get_parent_id () , Self :: Eol (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Comment (node) => node . get_range () , Self :: Eol (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment_Eol { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 2u16 => Ok (Self :: Comment (Comment :: try_from ((node , db , builder , id , parent_id)) ?)) , 3u16 => Ok (Self :: Eol (Eol :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Comment_Eol) , }) } } }
[INFO] [stdout]  1 + # ! [allow (clippy :: all)] # ! [allow (unused)] # ! [allow (dead_code)] # ! [allow (non_camel_case_types)] # ! [allow (non_snake_case)] # [derive (Debug , Clone , PartialEq)] pub struct Array { pub Type : auto_lsp :: core :: ast :: AstNodeId < Type > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Array { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 37u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Array { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut Type = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Type , 10u16 > (& mut Type) }) ; Ok (Self { Type : Type ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Type) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Dict { pub Type : auto_lsp :: core :: ast :: AstNodeId < Type > , pub children : auto_lsp :: core :: ast :: AstNodeId < String > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Dict { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 38u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Dict { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut Type = Ok (None) ; ; let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Type , 10u16 > (& mut Type) ? . on_children_id (& mut children) }) ; Ok (Self { Type : Type ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Type) , } }) ? , children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (String) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Enum { pub member : Vec < auto_lsp :: core :: ast :: AstNodeId < FieldName >> , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Enum { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 33u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Enum { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut member = vec ! [] ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_vec_field_id :: < FieldName , 6u16 > (& mut member) ? . on_vec_children_id (& mut children) }) ; Ok (Self { member , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Error { pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordError > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub value : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Error { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 29u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Error { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut keyword = Ok (None) ; ; let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < KeywordError , 5u16 > (& mut keyword) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_field_id :: < Struct , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Interface { pub declaration : auto_lsp :: core :: ast :: AstNodeId < InterfaceDeclaration > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol_Error_Method_Typedef >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Interface { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 24u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Interface { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut declaration = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < InterfaceDeclaration , 2u16 > (& mut declaration) ? . on_vec_children_id (& mut children) }) ; Ok (Self { declaration : declaration ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (declaration) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct InterfaceDeclaration { pub name : auto_lsp :: core :: ast :: AstNode < InterfaceName > , pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordInterface > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for InterfaceDeclaration { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 27u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for InterfaceDeclaration { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut name = Ok (None) ; ; let mut keyword = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < InterfaceName , 7u16 > (& mut name) ? . on_field_id :: < KeywordInterface , 5u16 > (& mut keyword) ? . on_vec_children_id (& mut children) }) ; Ok (Self { name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Maybe { pub questionmark : auto_lsp :: core :: ast :: AstNodeId < Questionmark > , pub just : auto_lsp :: core :: ast :: AstNodeId < Type > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Maybe { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 35u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Maybe { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut questionmark = Ok (None) ; ; let mut just = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Questionmark , 9u16 > (& mut questionmark) ? . on_field_id :: < Type , 4u16 > (& mut just) }) ; Ok (Self { questionmark : questionmark ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (questionmark) , } }) ? , just : just ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (just) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Method { pub input : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub output : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordMethod > , pub arrow : auto_lsp :: core :: ast :: AstNodeId < Arrow > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Method { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 30u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Method { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut input = Ok (None) ; ; let mut output = Ok (None) ; ; let mut keyword = Ok (None) ; ; let mut arrow = Ok (None) ; ; let mut name = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Struct , 3u16 > (& mut input) ? . on_field_id :: < Struct , 8u16 > (& mut output) ? . on_field_id :: < KeywordMethod , 5u16 > (& mut keyword) ? . on_field_id :: < Arrow , 1u16 > (& mut arrow) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_vec_children_id (& mut children) }) ; Ok (Self { input : input ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (input) , } }) ? , output : output ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (output) , } }) ? , keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , arrow : arrow ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (arrow) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Struct { pub member : Vec < auto_lsp :: core :: ast :: AstNodeId < StructField >> , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Struct { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 31u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Struct { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut member = vec ! [] ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_vec_field_id :: < StructField , 6u16 > (& mut member) ? . on_vec_children_id (& mut children) }) ; Ok (Self { member , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct StructField { pub name : auto_lsp :: core :: ast :: AstNodeId < FieldName > , pub value : auto_lsp :: core :: ast :: AstNodeId < Type > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for StructField { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 32u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for StructField { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < FieldName , 7u16 > (& mut name) ? . on_field_id :: < Type , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Type { pub children : auto_lsp :: core :: ast :: AstNodeId < Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Type { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 34u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Type { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_children_id (& mut children) }) ; Ok (Self { children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Typedef { pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordType > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub value : auto_lsp :: core :: ast :: AstNodeId < Enum_Struct > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Typedef { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 28u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Typedef { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut keyword = Ok (None) ; ; let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < KeywordType , 5u16 > (& mut keyword) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_field_id :: < Enum_Struct , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Typeref { pub children : auto_lsp :: core :: ast :: AstNodeId < Name > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Typeref { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 39u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Typeref { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_children_id (& mut children) }) ; Ok (Self { children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Name) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_LeftParen { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_LeftParen { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 9u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_LeftParen { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_RightParen { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_RightParen { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 11u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_RightParen { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_Comma { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_Comma { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 10u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_Comma { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_Colon { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_Colon { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 12u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_Colon { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_LeftBracket { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_LeftBracket { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 14u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_LeftBracket { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_RightBracket { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_RightBracket { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 15u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_RightBracket { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Arrow { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Arrow { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 8u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Arrow { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Bool { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Bool { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 16u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Bool { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Comment { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Comment { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Eol { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Eol { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 3u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Eol { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct FieldName { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for FieldName { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 22u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for FieldName { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Float { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Float { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 18u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Float { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Int { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Int { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 17u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Int { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct InterfaceName { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for InterfaceName { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 23u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for InterfaceName { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordError { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordError { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 6u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordError { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordInterface { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordInterface { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 4u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordInterface { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordMethod { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordMethod { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 7u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordMethod { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordType { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordType { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 5u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordType { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Name { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Name { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 21u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Name { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Object { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Object { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 20u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Object { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Questionmark { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Questionmark { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 13u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Questionmark { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct String { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for String { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 19u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for String { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub enum Comment_Eol_Error_Method_Typedef { Comment (Comment) , Eol (Eol) , Error (Error) , Method (Method) , Typedef (Typedef) } impl auto_lsp :: core :: ast :: AstNode for Comment_Eol_Error_Method_Typedef { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16 | 3u16 | 29u16 | 30u16 | 28u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Comment (node) => node . lower () , Self :: Eol (node) => node . lower () , Self :: Error (node) => node . lower () , Self :: Method (node) => node . lower () , Self :: Typedef (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Comment (node) => node . get_id () , Self :: Eol (node) => node . get_id () , Self :: Error (node) => node . get_id () , Self :: Method (node) => node . get_id () , Self :: Typedef (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Comment (node) => node . get_parent_id () , Self :: Eol (node) => node . get_parent_id () , Self :: Error (node) => node . get_parent_id () , Self :: Method (node) => node . get_parent_id () , Self :: Typedef (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Comment (node) => node . get_range () , Self :: Eol (node) => node . get_range () , Self :: Error (node) => node . get_range () , Self :: Method (node) => node . get_range () , Self :: Typedef (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment_Eol_Error_Method_Typedef { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 2u16 => Ok (Self :: Comment (Comment :: try_from ((node , db , builder , id , parent_id)) ?)) , 3u16 => Ok (Self :: Eol (Eol :: try_from ((node , db , builder , id , parent_id)) ?)) , 29u16 => Ok (Self :: Error (Error :: try_from ((node , db , builder , id , parent_id)) ?)) , 30u16 => Ok (Self :: Method (Method :: try_from ((node , db , builder , id , parent_id)) ?)) , 28u16 => Ok (Self :: Typedef (Typedef :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Comment_Eol_Error_Method_Typedef) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { Array (Array) , Bool (Bool) , Dict (Dict) , Enum (Enum) , Float (Float) , Int (Int) , Maybe (Maybe) , Object (Object) , String (String) , Struct (Struct) , Typeref (Typeref) } impl auto_lsp :: core :: ast :: AstNode for Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 37u16 | 16u16 | 38u16 | 33u16 | 18u16 | 17u16 | 35u16 | 20u16 | 19u16 | 31u16 | 39u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Array (node) => node . lower () , Self :: Bool (node) => node . lower () , Self :: Dict (node) => node . lower () , Self :: Enum (node) => node . lower () , Self :: Float (node) => node . lower () , Self :: Int (node) => node . lower () , Self :: Maybe (node) => node . lower () , Self :: Object (node) => node . lower () , Self :: String (node) => node . lower () , Self :: Struct (node) => node . lower () , Self :: Typeref (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Array (node) => node . get_id () , Self :: Bool (node) => node . get_id () , Self :: Dict (node) => node . get_id () , Self :: Enum (node) => node . get_id () , Self :: Float (node) => node . get_id () , Self :: Int (node) => node . get_id () , Self :: Maybe (node) => node . get_id () , Self :: Object (node) => node . get_id () , Self :: String (node) => node . get_id () , Self :: Struct (node) => node . get_id () , Self :: Typeref (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Array (node) => node . get_parent_id () , Self :: Bool (node) => node . get_parent_id () , Self :: Dict (node) => node . get_parent_id () , Self :: Enum (node) => node . get_parent_id () , Self :: Float (node) => node . get_parent_id () , Self :: Int (node) => node . get_parent_id () , Self :: Maybe (node) => node . get_parent_id () , Self :: Object (node) => node . get_parent_id () , Self :: String (node) => node . get_parent_id () , Self :: Struct (node) => node . get_parent_id () , Self :: Typeref (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Array (node) => node . get_range () , Self :: Bool (node) => node . get_range () , Self :: Dict (node) => node . get_range () , Self :: Enum (node) => node . get_range () , Self :: Float (node) => node . get_range () , Self :: Int (node) => node . get_range () , Self :: Maybe (node) => node . get_range () , Self :: Object (node) => node . get_range () , Self :: String (node) => node . get_range () , Self :: Struct (node) => node . get_range () , Self :: Typeref (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 37u16 => Ok (Self :: Array (Array :: try_from ((node , db , builder , id , parent_id)) ?)) , 16u16 => Ok (Self :: Bool (Bool :: try_from ((node , db , builder , id , parent_id)) ?)) , 38u16 => Ok (Self :: Dict (Dict :: try_from ((node , db , builder , id , parent_id)) ?)) , 33u16 => Ok (Self :: Enum (Enum :: try_from ((node , db , builder , id , parent_id)) ?)) , 18u16 => Ok (Self :: Float (Float :: try_from ((node , db , builder , id , parent_id)) ?)) , 17u16 => Ok (Self :: Int (Int :: try_from ((node , db , builder , id , parent_id)) ?)) , 35u16 => Ok (Self :: Maybe (Maybe :: try_from ((node , db , builder , id , parent_id)) ?)) , 20u16 => Ok (Self :: Object (Object :: try_from ((node , db , builder , id , parent_id)) ?)) , 19u16 => Ok (Self :: String (String :: try_from ((node , db , builder , id , parent_id)) ?)) , 31u16 => Ok (Self :: Struct (Struct :: try_from ((node , db , builder , id , parent_id)) ?)) , 39u16 => Ok (Self :: Typeref (Typeref :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Enum_Struct { Enum (Enum) , Struct (Struct) } impl auto_lsp :: core :: ast :: AstNode for Enum_Struct { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 33u16 | 31u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Enum (node) => node . lower () , Self :: Struct (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Enum (node) => node . get_id () , Self :: Struct (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Enum (node) => node . get_parent_id () , Self :: Struct (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Enum (node) => node . get_range () , Self :: Struct (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Enum_Struct { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 33u16 => Ok (Self :: Enum (Enum :: try_from ((node , db , builder , id , parent_id)) ?)) , 31u16 => Ok (Self :: Struct (Struct :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Enum_Struct) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Comment_Eol { Comment (Comment) , Eol (Eol) } impl auto_lsp :: core :: ast :: AstNode for Comment_Eol { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16 | 3u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Comment (node) => node . lower () , Self :: Eol (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Comment (node) => node . get_id () , Self :: Eol (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Comment (node) => node . get_parent_id () , Self :: Eol (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Comment (node) => node . get_range () , Self :: Eol (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment_Eol { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 2u16 => Ok (Self :: Comment (Comment :: try_from ((node , db , builder , id , parent_id)) ?)) , 3u16 => Ok (Self :: Eol (Eol :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Comment_Eol) , }) } } }
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `AstNodeId` in module `auto_lsp::core::ast`
[INFO] [stdout]   --> src/ast.rs:1:8369
[INFO] [stdout]    |
[INFO] [stdout]  1 | ... InterfaceName > , pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordInterface > , pub children : Vec < auto_lsp :: cor...
[INFO] [stdout]    |                                                                ^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]   ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/auto-lsp-core-0.7.0/src/ast/node.rs:26:1
[INFO] [stdout]    |
[INFO] [stdout] 26 | pub trait AstNode: std::fmt::Debug + Send + Sync + DowncastSync {
[INFO] [stdout]    | --------------------------------------------------------------- similarly named trait `AstNode` defined here
[INFO] [stdout]    |
[INFO] [stdout] help: a trait with a similar name exists
[INFO] [stdout]    |
[INFO] [stdout]  1 - # ! [allow (clippy :: all)] # ! [allow (unused)] # ! [allow (dead_code)] # ! [allow (non_camel_case_types)] # ! [allow (non_snake_case)] # [derive (Debug , Clone , PartialEq)] pub struct Array { pub Type : auto_lsp :: core :: ast :: AstNodeId < Type > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Array { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 37u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Array { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut Type = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Type , 10u16 > (& mut Type) }) ; Ok (Self { Type : Type ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Type) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Dict { pub Type : auto_lsp :: core :: ast :: AstNodeId < Type > , pub children : auto_lsp :: core :: ast :: AstNodeId < String > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Dict { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 38u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Dict { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut Type = Ok (None) ; ; let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Type , 10u16 > (& mut Type) ? . on_children_id (& mut children) }) ; Ok (Self { Type : Type ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Type) , } }) ? , children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (String) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Enum { pub member : Vec < auto_lsp :: core :: ast :: AstNodeId < FieldName >> , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Enum { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 33u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Enum { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut member = vec ! [] ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_vec_field_id :: < FieldName , 6u16 > (& mut member) ? . on_vec_children_id (& mut children) }) ; Ok (Self { member , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Error { pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordError > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub value : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Error { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 29u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Error { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut keyword = Ok (None) ; ; let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < KeywordError , 5u16 > (& mut keyword) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_field_id :: < Struct , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Interface { pub declaration : auto_lsp :: core :: ast :: AstNodeId < InterfaceDeclaration > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol_Error_Method_Typedef >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Interface { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 24u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Interface { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut declaration = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < InterfaceDeclaration , 2u16 > (& mut declaration) ? . on_vec_children_id (& mut children) }) ; Ok (Self { declaration : declaration ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (declaration) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct InterfaceDeclaration { pub name : auto_lsp :: core :: ast :: AstNodeId < InterfaceName > , pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordInterface > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for InterfaceDeclaration { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 27u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for InterfaceDeclaration { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut name = Ok (None) ; ; let mut keyword = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < InterfaceName , 7u16 > (& mut name) ? . on_field_id :: < KeywordInterface , 5u16 > (& mut keyword) ? . on_vec_children_id (& mut children) }) ; Ok (Self { name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Maybe { pub questionmark : auto_lsp :: core :: ast :: AstNodeId < Questionmark > , pub just : auto_lsp :: core :: ast :: AstNodeId < Type > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Maybe { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 35u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Maybe { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut questionmark = Ok (None) ; ; let mut just = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Questionmark , 9u16 > (& mut questionmark) ? . on_field_id :: < Type , 4u16 > (& mut just) }) ; Ok (Self { questionmark : questionmark ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (questionmark) , } }) ? , just : just ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (just) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Method { pub input : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub output : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordMethod > , pub arrow : auto_lsp :: core :: ast :: AstNodeId < Arrow > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Method { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 30u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Method { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut input = Ok (None) ; ; let mut output = Ok (None) ; ; let mut keyword = Ok (None) ; ; let mut arrow = Ok (None) ; ; let mut name = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Struct , 3u16 > (& mut input) ? . on_field_id :: < Struct , 8u16 > (& mut output) ? . on_field_id :: < KeywordMethod , 5u16 > (& mut keyword) ? . on_field_id :: < Arrow , 1u16 > (& mut arrow) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_vec_children_id (& mut children) }) ; Ok (Self { input : input ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (input) , } }) ? , output : output ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (output) , } }) ? , keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , arrow : arrow ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (arrow) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Struct { pub member : Vec < auto_lsp :: core :: ast :: AstNodeId < StructField >> , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Struct { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 31u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Struct { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut member = vec ! [] ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_vec_field_id :: < StructField , 6u16 > (& mut member) ? . on_vec_children_id (& mut children) }) ; Ok (Self { member , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct StructField { pub name : auto_lsp :: core :: ast :: AstNodeId < FieldName > , pub value : auto_lsp :: core :: ast :: AstNodeId < Type > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for StructField { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 32u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for StructField { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < FieldName , 7u16 > (& mut name) ? . on_field_id :: < Type , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Type { pub children : auto_lsp :: core :: ast :: AstNodeId < Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Type { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 34u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Type { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_children_id (& mut children) }) ; Ok (Self { children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Typedef { pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordType > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub value : auto_lsp :: core :: ast :: AstNodeId < Enum_Struct > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Typedef { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 28u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Typedef { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut keyword = Ok (None) ; ; let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < KeywordType , 5u16 > (& mut keyword) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_field_id :: < Enum_Struct , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Typeref { pub children : auto_lsp :: core :: ast :: AstNodeId < Name > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Typeref { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 39u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Typeref { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_children_id (& mut children) }) ; Ok (Self { children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Name) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_LeftParen { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_LeftParen { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 9u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_LeftParen { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_RightParen { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_RightParen { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 11u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_RightParen { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_Comma { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_Comma { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 10u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_Comma { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_Colon { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_Colon { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 12u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_Colon { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_LeftBracket { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_LeftBracket { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 14u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_LeftBracket { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_RightBracket { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_RightBracket { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 15u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_RightBracket { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Arrow { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Arrow { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 8u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Arrow { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Bool { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Bool { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 16u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Bool { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Comment { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Comment { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Eol { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Eol { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 3u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Eol { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct FieldName { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for FieldName { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 22u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for FieldName { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Float { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Float { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 18u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Float { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Int { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Int { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 17u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Int { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct InterfaceName { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for InterfaceName { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 23u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for InterfaceName { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordError { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordError { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 6u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordError { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordInterface { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordInterface { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 4u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordInterface { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordMethod { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordMethod { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 7u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordMethod { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordType { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordType { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 5u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordType { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Name { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Name { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 21u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Name { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Object { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Object { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 20u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Object { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Questionmark { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Questionmark { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 13u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Questionmark { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct String { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for String { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 19u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for String { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub enum Comment_Eol_Error_Method_Typedef { Comment (Comment) , Eol (Eol) , Error (Error) , Method (Method) , Typedef (Typedef) } impl auto_lsp :: core :: ast :: AstNode for Comment_Eol_Error_Method_Typedef { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16 | 3u16 | 29u16 | 30u16 | 28u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Comment (node) => node . lower () , Self :: Eol (node) => node . lower () , Self :: Error (node) => node . lower () , Self :: Method (node) => node . lower () , Self :: Typedef (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Comment (node) => node . get_id () , Self :: Eol (node) => node . get_id () , Self :: Error (node) => node . get_id () , Self :: Method (node) => node . get_id () , Self :: Typedef (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Comment (node) => node . get_parent_id () , Self :: Eol (node) => node . get_parent_id () , Self :: Error (node) => node . get_parent_id () , Self :: Method (node) => node . get_parent_id () , Self :: Typedef (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Comment (node) => node . get_range () , Self :: Eol (node) => node . get_range () , Self :: Error (node) => node . get_range () , Self :: Method (node) => node . get_range () , Self :: Typedef (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment_Eol_Error_Method_Typedef { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 2u16 => Ok (Self :: Comment (Comment :: try_from ((node , db , builder , id , parent_id)) ?)) , 3u16 => Ok (Self :: Eol (Eol :: try_from ((node , db , builder , id , parent_id)) ?)) , 29u16 => Ok (Self :: Error (Error :: try_from ((node , db , builder , id , parent_id)) ?)) , 30u16 => Ok (Self :: Method (Method :: try_from ((node , db , builder , id , parent_id)) ?)) , 28u16 => Ok (Self :: Typedef (Typedef :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Comment_Eol_Error_Method_Typedef) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { Array (Array) , Bool (Bool) , Dict (Dict) , Enum (Enum) , Float (Float) , Int (Int) , Maybe (Maybe) , Object (Object) , String (String) , Struct (Struct) , Typeref (Typeref) } impl auto_lsp :: core :: ast :: AstNode for Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 37u16 | 16u16 | 38u16 | 33u16 | 18u16 | 17u16 | 35u16 | 20u16 | 19u16 | 31u16 | 39u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Array (node) => node . lower () , Self :: Bool (node) => node . lower () , Self :: Dict (node) => node . lower () , Self :: Enum (node) => node . lower () , Self :: Float (node) => node . lower () , Self :: Int (node) => node . lower () , Self :: Maybe (node) => node . lower () , Self :: Object (node) => node . lower () , Self :: String (node) => node . lower () , Self :: Struct (node) => node . lower () , Self :: Typeref (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Array (node) => node . get_id () , Self :: Bool (node) => node . get_id () , Self :: Dict (node) => node . get_id () , Self :: Enum (node) => node . get_id () , Self :: Float (node) => node . get_id () , Self :: Int (node) => node . get_id () , Self :: Maybe (node) => node . get_id () , Self :: Object (node) => node . get_id () , Self :: String (node) => node . get_id () , Self :: Struct (node) => node . get_id () , Self :: Typeref (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Array (node) => node . get_parent_id () , Self :: Bool (node) => node . get_parent_id () , Self :: Dict (node) => node . get_parent_id () , Self :: Enum (node) => node . get_parent_id () , Self :: Float (node) => node . get_parent_id () , Self :: Int (node) => node . get_parent_id () , Self :: Maybe (node) => node . get_parent_id () , Self :: Object (node) => node . get_parent_id () , Self :: String (node) => node . get_parent_id () , Self :: Struct (node) => node . get_parent_id () , Self :: Typeref (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Array (node) => node . get_range () , Self :: Bool (node) => node . get_range () , Self :: Dict (node) => node . get_range () , Self :: Enum (node) => node . get_range () , Self :: Float (node) => node . get_range () , Self :: Int (node) => node . get_range () , Self :: Maybe (node) => node . get_range () , Self :: Object (node) => node . get_range () , Self :: String (node) => node . get_range () , Self :: Struct (node) => node . get_range () , Self :: Typeref (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 37u16 => Ok (Self :: Array (Array :: try_from ((node , db , builder , id , parent_id)) ?)) , 16u16 => Ok (Self :: Bool (Bool :: try_from ((node , db , builder , id , parent_id)) ?)) , 38u16 => Ok (Self :: Dict (Dict :: try_from ((node , db , builder , id , parent_id)) ?)) , 33u16 => Ok (Self :: Enum (Enum :: try_from ((node , db , builder , id , parent_id)) ?)) , 18u16 => Ok (Self :: Float (Float :: try_from ((node , db , builder , id , parent_id)) ?)) , 17u16 => Ok (Self :: Int (Int :: try_from ((node , db , builder , id , parent_id)) ?)) , 35u16 => Ok (Self :: Maybe (Maybe :: try_from ((node , db , builder , id , parent_id)) ?)) , 20u16 => Ok (Self :: Object (Object :: try_from ((node , db , builder , id , parent_id)) ?)) , 19u16 => Ok (Self :: String (String :: try_from ((node , db , builder , id , parent_id)) ?)) , 31u16 => Ok (Self :: Struct (Struct :: try_from ((node , db , builder , id , parent_id)) ?)) , 39u16 => Ok (Self :: Typeref (Typeref :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Enum_Struct { Enum (Enum) , Struct (Struct) } impl auto_lsp :: core :: ast :: AstNode for Enum_Struct { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 33u16 | 31u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Enum (node) => node . lower () , Self :: Struct (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Enum (node) => node . get_id () , Self :: Struct (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Enum (node) => node . get_parent_id () , Self :: Struct (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Enum (node) => node . get_range () , Self :: Struct (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Enum_Struct { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 33u16 => Ok (Self :: Enum (Enum :: try_from ((node , db , builder , id , parent_id)) ?)) , 31u16 => Ok (Self :: Struct (Struct :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Enum_Struct) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Comment_Eol { Comment (Comment) , Eol (Eol) } impl auto_lsp :: core :: ast :: AstNode for Comment_Eol { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16 | 3u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Comment (node) => node . lower () , Self :: Eol (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Comment (node) => node . get_id () , Self :: Eol (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Comment (node) => node . get_parent_id () , Self :: Eol (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Comment (node) => node . get_range () , Self :: Eol (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment_Eol { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 2u16 => Ok (Self :: Comment (Comment :: try_from ((node , db , builder , id , parent_id)) ?)) , 3u16 => Ok (Self :: Eol (Eol :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Comment_Eol) , }) } } }
[INFO] [stdout]  1 + # ! [allow (clippy :: all)] # ! [allow (unused)] # ! [allow (dead_code)] # ! [allow (non_camel_case_types)] # ! [allow (non_snake_case)] # [derive (Debug , Clone , PartialEq)] pub struct Array { pub Type : auto_lsp :: core :: ast :: AstNodeId < Type > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Array { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 37u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Array { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut Type = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Type , 10u16 > (& mut Type) }) ; Ok (Self { Type : Type ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Type) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Dict { pub Type : auto_lsp :: core :: ast :: AstNodeId < Type > , pub children : auto_lsp :: core :: ast :: AstNodeId < String > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Dict { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 38u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Dict { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut Type = Ok (None) ; ; let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Type , 10u16 > (& mut Type) ? . on_children_id (& mut children) }) ; Ok (Self { Type : Type ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Type) , } }) ? , children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (String) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Enum { pub member : Vec < auto_lsp :: core :: ast :: AstNodeId < FieldName >> , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Enum { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 33u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Enum { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut member = vec ! [] ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_vec_field_id :: < FieldName , 6u16 > (& mut member) ? . on_vec_children_id (& mut children) }) ; Ok (Self { member , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Error { pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordError > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub value : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Error { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 29u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Error { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut keyword = Ok (None) ; ; let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < KeywordError , 5u16 > (& mut keyword) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_field_id :: < Struct , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Interface { pub declaration : auto_lsp :: core :: ast :: AstNodeId < InterfaceDeclaration > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol_Error_Method_Typedef >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Interface { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 24u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Interface { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut declaration = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < InterfaceDeclaration , 2u16 > (& mut declaration) ? . on_vec_children_id (& mut children) }) ; Ok (Self { declaration : declaration ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (declaration) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct InterfaceDeclaration { pub name : auto_lsp :: core :: ast :: AstNodeId < InterfaceName > , pub keyword : auto_lsp :: core :: ast :: AstNode < KeywordInterface > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for InterfaceDeclaration { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 27u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for InterfaceDeclaration { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut name = Ok (None) ; ; let mut keyword = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < InterfaceName , 7u16 > (& mut name) ? . on_field_id :: < KeywordInterface , 5u16 > (& mut keyword) ? . on_vec_children_id (& mut children) }) ; Ok (Self { name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Maybe { pub questionmark : auto_lsp :: core :: ast :: AstNodeId < Questionmark > , pub just : auto_lsp :: core :: ast :: AstNodeId < Type > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Maybe { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 35u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Maybe { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut questionmark = Ok (None) ; ; let mut just = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Questionmark , 9u16 > (& mut questionmark) ? . on_field_id :: < Type , 4u16 > (& mut just) }) ; Ok (Self { questionmark : questionmark ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (questionmark) , } }) ? , just : just ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (just) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Method { pub input : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub output : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordMethod > , pub arrow : auto_lsp :: core :: ast :: AstNodeId < Arrow > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Method { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 30u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Method { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut input = Ok (None) ; ; let mut output = Ok (None) ; ; let mut keyword = Ok (None) ; ; let mut arrow = Ok (None) ; ; let mut name = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Struct , 3u16 > (& mut input) ? . on_field_id :: < Struct , 8u16 > (& mut output) ? . on_field_id :: < KeywordMethod , 5u16 > (& mut keyword) ? . on_field_id :: < Arrow , 1u16 > (& mut arrow) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_vec_children_id (& mut children) }) ; Ok (Self { input : input ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (input) , } }) ? , output : output ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (output) , } }) ? , keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , arrow : arrow ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (arrow) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Struct { pub member : Vec < auto_lsp :: core :: ast :: AstNodeId < StructField >> , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Struct { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 31u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Struct { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut member = vec ! [] ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_vec_field_id :: < StructField , 6u16 > (& mut member) ? . on_vec_children_id (& mut children) }) ; Ok (Self { member , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct StructField { pub name : auto_lsp :: core :: ast :: AstNodeId < FieldName > , pub value : auto_lsp :: core :: ast :: AstNodeId < Type > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for StructField { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 32u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for StructField { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < FieldName , 7u16 > (& mut name) ? . on_field_id :: < Type , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Type { pub children : auto_lsp :: core :: ast :: AstNodeId < Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Type { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 34u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Type { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_children_id (& mut children) }) ; Ok (Self { children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Typedef { pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordType > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub value : auto_lsp :: core :: ast :: AstNodeId < Enum_Struct > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Typedef { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 28u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Typedef { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut keyword = Ok (None) ; ; let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < KeywordType , 5u16 > (& mut keyword) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_field_id :: < Enum_Struct , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Typeref { pub children : auto_lsp :: core :: ast :: AstNodeId < Name > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Typeref { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 39u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Typeref { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_children_id (& mut children) }) ; Ok (Self { children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Name) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_LeftParen { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_LeftParen { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 9u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_LeftParen { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_RightParen { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_RightParen { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 11u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_RightParen { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_Comma { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_Comma { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 10u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_Comma { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_Colon { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_Colon { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 12u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_Colon { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_LeftBracket { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_LeftBracket { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 14u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_LeftBracket { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_RightBracket { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_RightBracket { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 15u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_RightBracket { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Arrow { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Arrow { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 8u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Arrow { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Bool { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Bool { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 16u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Bool { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Comment { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Comment { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Eol { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Eol { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 3u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Eol { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct FieldName { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for FieldName { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 22u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for FieldName { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Float { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Float { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 18u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Float { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Int { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Int { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 17u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Int { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct InterfaceName { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for InterfaceName { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 23u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for InterfaceName { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordError { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordError { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 6u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordError { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordInterface { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordInterface { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 4u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordInterface { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordMethod { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordMethod { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 7u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordMethod { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordType { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordType { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 5u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordType { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Name { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Name { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 21u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Name { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Object { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Object { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 20u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Object { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Questionmark { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Questionmark { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 13u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Questionmark { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct String { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for String { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 19u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for String { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub enum Comment_Eol_Error_Method_Typedef { Comment (Comment) , Eol (Eol) , Error (Error) , Method (Method) , Typedef (Typedef) } impl auto_lsp :: core :: ast :: AstNode for Comment_Eol_Error_Method_Typedef { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16 | 3u16 | 29u16 | 30u16 | 28u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Comment (node) => node . lower () , Self :: Eol (node) => node . lower () , Self :: Error (node) => node . lower () , Self :: Method (node) => node . lower () , Self :: Typedef (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Comment (node) => node . get_id () , Self :: Eol (node) => node . get_id () , Self :: Error (node) => node . get_id () , Self :: Method (node) => node . get_id () , Self :: Typedef (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Comment (node) => node . get_parent_id () , Self :: Eol (node) => node . get_parent_id () , Self :: Error (node) => node . get_parent_id () , Self :: Method (node) => node . get_parent_id () , Self :: Typedef (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Comment (node) => node . get_range () , Self :: Eol (node) => node . get_range () , Self :: Error (node) => node . get_range () , Self :: Method (node) => node . get_range () , Self :: Typedef (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment_Eol_Error_Method_Typedef { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 2u16 => Ok (Self :: Comment (Comment :: try_from ((node , db , builder , id , parent_id)) ?)) , 3u16 => Ok (Self :: Eol (Eol :: try_from ((node , db , builder , id , parent_id)) ?)) , 29u16 => Ok (Self :: Error (Error :: try_from ((node , db , builder , id , parent_id)) ?)) , 30u16 => Ok (Self :: Method (Method :: try_from ((node , db , builder , id , parent_id)) ?)) , 28u16 => Ok (Self :: Typedef (Typedef :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Comment_Eol_Error_Method_Typedef) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { Array (Array) , Bool (Bool) , Dict (Dict) , Enum (Enum) , Float (Float) , Int (Int) , Maybe (Maybe) , Object (Object) , String (String) , Struct (Struct) , Typeref (Typeref) } impl auto_lsp :: core :: ast :: AstNode for Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 37u16 | 16u16 | 38u16 | 33u16 | 18u16 | 17u16 | 35u16 | 20u16 | 19u16 | 31u16 | 39u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Array (node) => node . lower () , Self :: Bool (node) => node . lower () , Self :: Dict (node) => node . lower () , Self :: Enum (node) => node . lower () , Self :: Float (node) => node . lower () , Self :: Int (node) => node . lower () , Self :: Maybe (node) => node . lower () , Self :: Object (node) => node . lower () , Self :: String (node) => node . lower () , Self :: Struct (node) => node . lower () , Self :: Typeref (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Array (node) => node . get_id () , Self :: Bool (node) => node . get_id () , Self :: Dict (node) => node . get_id () , Self :: Enum (node) => node . get_id () , Self :: Float (node) => node . get_id () , Self :: Int (node) => node . get_id () , Self :: Maybe (node) => node . get_id () , Self :: Object (node) => node . get_id () , Self :: String (node) => node . get_id () , Self :: Struct (node) => node . get_id () , Self :: Typeref (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Array (node) => node . get_parent_id () , Self :: Bool (node) => node . get_parent_id () , Self :: Dict (node) => node . get_parent_id () , Self :: Enum (node) => node . get_parent_id () , Self :: Float (node) => node . get_parent_id () , Self :: Int (node) => node . get_parent_id () , Self :: Maybe (node) => node . get_parent_id () , Self :: Object (node) => node . get_parent_id () , Self :: String (node) => node . get_parent_id () , Self :: Struct (node) => node . get_parent_id () , Self :: Typeref (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Array (node) => node . get_range () , Self :: Bool (node) => node . get_range () , Self :: Dict (node) => node . get_range () , Self :: Enum (node) => node . get_range () , Self :: Float (node) => node . get_range () , Self :: Int (node) => node . get_range () , Self :: Maybe (node) => node . get_range () , Self :: Object (node) => node . get_range () , Self :: String (node) => node . get_range () , Self :: Struct (node) => node . get_range () , Self :: Typeref (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 37u16 => Ok (Self :: Array (Array :: try_from ((node , db , builder , id , parent_id)) ?)) , 16u16 => Ok (Self :: Bool (Bool :: try_from ((node , db , builder , id , parent_id)) ?)) , 38u16 => Ok (Self :: Dict (Dict :: try_from ((node , db , builder , id , parent_id)) ?)) , 33u16 => Ok (Self :: Enum (Enum :: try_from ((node , db , builder , id , parent_id)) ?)) , 18u16 => Ok (Self :: Float (Float :: try_from ((node , db , builder , id , parent_id)) ?)) , 17u16 => Ok (Self :: Int (Int :: try_from ((node , db , builder , id , parent_id)) ?)) , 35u16 => Ok (Self :: Maybe (Maybe :: try_from ((node , db , builder , id , parent_id)) ?)) , 20u16 => Ok (Self :: Object (Object :: try_from ((node , db , builder , id , parent_id)) ?)) , 19u16 => Ok (Self :: String (String :: try_from ((node , db , builder , id , parent_id)) ?)) , 31u16 => Ok (Self :: Struct (Struct :: try_from ((node , db , builder , id , parent_id)) ?)) , 39u16 => Ok (Self :: Typeref (Typeref :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Enum_Struct { Enum (Enum) , Struct (Struct) } impl auto_lsp :: core :: ast :: AstNode for Enum_Struct { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 33u16 | 31u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Enum (node) => node . lower () , Self :: Struct (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Enum (node) => node . get_id () , Self :: Struct (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Enum (node) => node . get_parent_id () , Self :: Struct (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Enum (node) => node . get_range () , Self :: Struct (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Enum_Struct { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 33u16 => Ok (Self :: Enum (Enum :: try_from ((node , db , builder , id , parent_id)) ?)) , 31u16 => Ok (Self :: Struct (Struct :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Enum_Struct) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Comment_Eol { Comment (Comment) , Eol (Eol) } impl auto_lsp :: core :: ast :: AstNode for Comment_Eol { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16 | 3u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Comment (node) => node . lower () , Self :: Eol (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Comment (node) => node . get_id () , Self :: Eol (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Comment (node) => node . get_parent_id () , Self :: Eol (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Comment (node) => node . get_range () , Self :: Eol (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment_Eol { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 2u16 => Ok (Self :: Comment (Comment :: try_from ((node , db , builder , id , parent_id)) ?)) , 3u16 => Ok (Self :: Eol (Eol :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Comment_Eol) , }) } } }
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `AstNodeId` in module `auto_lsp::core::ast`
[INFO] [stdout]   --> src/ast.rs:1:8450
[INFO] [stdout]    |
[INFO] [stdout]  1 | ...terface > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Rang...
[INFO] [stdout]    |                                                                ^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]   ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/auto-lsp-core-0.7.0/src/ast/node.rs:26:1
[INFO] [stdout]    |
[INFO] [stdout] 26 | pub trait AstNode: std::fmt::Debug + Send + Sync + DowncastSync {
[INFO] [stdout]    | --------------------------------------------------------------- similarly named trait `AstNode` defined here
[INFO] [stdout]    |
[INFO] [stdout] help: a trait with a similar name exists
[INFO] [stdout]    |
[INFO] [stdout]  1 - # ! [allow (clippy :: all)] # ! [allow (unused)] # ! [allow (dead_code)] # ! [allow (non_camel_case_types)] # ! [allow (non_snake_case)] # [derive (Debug , Clone , PartialEq)] pub struct Array { pub Type : auto_lsp :: core :: ast :: AstNodeId < Type > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Array { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 37u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Array { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut Type = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Type , 10u16 > (& mut Type) }) ; Ok (Self { Type : Type ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Type) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Dict { pub Type : auto_lsp :: core :: ast :: AstNodeId < Type > , pub children : auto_lsp :: core :: ast :: AstNodeId < String > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Dict { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 38u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Dict { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut Type = Ok (None) ; ; let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Type , 10u16 > (& mut Type) ? . on_children_id (& mut children) }) ; Ok (Self { Type : Type ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Type) , } }) ? , children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (String) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Enum { pub member : Vec < auto_lsp :: core :: ast :: AstNodeId < FieldName >> , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Enum { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 33u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Enum { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut member = vec ! [] ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_vec_field_id :: < FieldName , 6u16 > (& mut member) ? . on_vec_children_id (& mut children) }) ; Ok (Self { member , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Error { pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordError > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub value : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Error { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 29u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Error { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut keyword = Ok (None) ; ; let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < KeywordError , 5u16 > (& mut keyword) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_field_id :: < Struct , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Interface { pub declaration : auto_lsp :: core :: ast :: AstNodeId < InterfaceDeclaration > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol_Error_Method_Typedef >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Interface { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 24u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Interface { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut declaration = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < InterfaceDeclaration , 2u16 > (& mut declaration) ? . on_vec_children_id (& mut children) }) ; Ok (Self { declaration : declaration ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (declaration) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct InterfaceDeclaration { pub name : auto_lsp :: core :: ast :: AstNodeId < InterfaceName > , pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordInterface > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for InterfaceDeclaration { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 27u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for InterfaceDeclaration { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut name = Ok (None) ; ; let mut keyword = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < InterfaceName , 7u16 > (& mut name) ? . on_field_id :: < KeywordInterface , 5u16 > (& mut keyword) ? . on_vec_children_id (& mut children) }) ; Ok (Self { name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Maybe { pub questionmark : auto_lsp :: core :: ast :: AstNodeId < Questionmark > , pub just : auto_lsp :: core :: ast :: AstNodeId < Type > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Maybe { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 35u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Maybe { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut questionmark = Ok (None) ; ; let mut just = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Questionmark , 9u16 > (& mut questionmark) ? . on_field_id :: < Type , 4u16 > (& mut just) }) ; Ok (Self { questionmark : questionmark ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (questionmark) , } }) ? , just : just ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (just) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Method { pub input : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub output : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordMethod > , pub arrow : auto_lsp :: core :: ast :: AstNodeId < Arrow > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Method { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 30u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Method { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut input = Ok (None) ; ; let mut output = Ok (None) ; ; let mut keyword = Ok (None) ; ; let mut arrow = Ok (None) ; ; let mut name = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Struct , 3u16 > (& mut input) ? . on_field_id :: < Struct , 8u16 > (& mut output) ? . on_field_id :: < KeywordMethod , 5u16 > (& mut keyword) ? . on_field_id :: < Arrow , 1u16 > (& mut arrow) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_vec_children_id (& mut children) }) ; Ok (Self { input : input ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (input) , } }) ? , output : output ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (output) , } }) ? , keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , arrow : arrow ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (arrow) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Struct { pub member : Vec < auto_lsp :: core :: ast :: AstNodeId < StructField >> , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Struct { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 31u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Struct { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut member = vec ! [] ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_vec_field_id :: < StructField , 6u16 > (& mut member) ? . on_vec_children_id (& mut children) }) ; Ok (Self { member , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct StructField { pub name : auto_lsp :: core :: ast :: AstNodeId < FieldName > , pub value : auto_lsp :: core :: ast :: AstNodeId < Type > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for StructField { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 32u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for StructField { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < FieldName , 7u16 > (& mut name) ? . on_field_id :: < Type , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Type { pub children : auto_lsp :: core :: ast :: AstNodeId < Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Type { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 34u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Type { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_children_id (& mut children) }) ; Ok (Self { children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Typedef { pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordType > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub value : auto_lsp :: core :: ast :: AstNodeId < Enum_Struct > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Typedef { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 28u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Typedef { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut keyword = Ok (None) ; ; let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < KeywordType , 5u16 > (& mut keyword) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_field_id :: < Enum_Struct , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Typeref { pub children : auto_lsp :: core :: ast :: AstNodeId < Name > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Typeref { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 39u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Typeref { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_children_id (& mut children) }) ; Ok (Self { children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Name) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_LeftParen { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_LeftParen { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 9u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_LeftParen { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_RightParen { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_RightParen { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 11u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_RightParen { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_Comma { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_Comma { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 10u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_Comma { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_Colon { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_Colon { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 12u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_Colon { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_LeftBracket { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_LeftBracket { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 14u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_LeftBracket { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_RightBracket { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_RightBracket { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 15u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_RightBracket { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Arrow { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Arrow { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 8u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Arrow { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Bool { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Bool { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 16u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Bool { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Comment { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Comment { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Eol { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Eol { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 3u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Eol { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct FieldName { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for FieldName { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 22u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for FieldName { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Float { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Float { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 18u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Float { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Int { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Int { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 17u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Int { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct InterfaceName { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for InterfaceName { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 23u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for InterfaceName { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordError { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordError { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 6u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordError { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordInterface { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordInterface { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 4u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordInterface { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordMethod { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordMethod { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 7u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordMethod { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordType { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordType { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 5u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordType { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Name { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Name { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 21u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Name { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Object { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Object { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 20u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Object { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Questionmark { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Questionmark { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 13u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Questionmark { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct String { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for String { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 19u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for String { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub enum Comment_Eol_Error_Method_Typedef { Comment (Comment) , Eol (Eol) , Error (Error) , Method (Method) , Typedef (Typedef) } impl auto_lsp :: core :: ast :: AstNode for Comment_Eol_Error_Method_Typedef { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16 | 3u16 | 29u16 | 30u16 | 28u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Comment (node) => node . lower () , Self :: Eol (node) => node . lower () , Self :: Error (node) => node . lower () , Self :: Method (node) => node . lower () , Self :: Typedef (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Comment (node) => node . get_id () , Self :: Eol (node) => node . get_id () , Self :: Error (node) => node . get_id () , Self :: Method (node) => node . get_id () , Self :: Typedef (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Comment (node) => node . get_parent_id () , Self :: Eol (node) => node . get_parent_id () , Self :: Error (node) => node . get_parent_id () , Self :: Method (node) => node . get_parent_id () , Self :: Typedef (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Comment (node) => node . get_range () , Self :: Eol (node) => node . get_range () , Self :: Error (node) => node . get_range () , Self :: Method (node) => node . get_range () , Self :: Typedef (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment_Eol_Error_Method_Typedef { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 2u16 => Ok (Self :: Comment (Comment :: try_from ((node , db , builder , id , parent_id)) ?)) , 3u16 => Ok (Self :: Eol (Eol :: try_from ((node , db , builder , id , parent_id)) ?)) , 29u16 => Ok (Self :: Error (Error :: try_from ((node , db , builder , id , parent_id)) ?)) , 30u16 => Ok (Self :: Method (Method :: try_from ((node , db , builder , id , parent_id)) ?)) , 28u16 => Ok (Self :: Typedef (Typedef :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Comment_Eol_Error_Method_Typedef) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { Array (Array) , Bool (Bool) , Dict (Dict) , Enum (Enum) , Float (Float) , Int (Int) , Maybe (Maybe) , Object (Object) , String (String) , Struct (Struct) , Typeref (Typeref) } impl auto_lsp :: core :: ast :: AstNode for Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 37u16 | 16u16 | 38u16 | 33u16 | 18u16 | 17u16 | 35u16 | 20u16 | 19u16 | 31u16 | 39u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Array (node) => node . lower () , Self :: Bool (node) => node . lower () , Self :: Dict (node) => node . lower () , Self :: Enum (node) => node . lower () , Self :: Float (node) => node . lower () , Self :: Int (node) => node . lower () , Self :: Maybe (node) => node . lower () , Self :: Object (node) => node . lower () , Self :: String (node) => node . lower () , Self :: Struct (node) => node . lower () , Self :: Typeref (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Array (node) => node . get_id () , Self :: Bool (node) => node . get_id () , Self :: Dict (node) => node . get_id () , Self :: Enum (node) => node . get_id () , Self :: Float (node) => node . get_id () , Self :: Int (node) => node . get_id () , Self :: Maybe (node) => node . get_id () , Self :: Object (node) => node . get_id () , Self :: String (node) => node . get_id () , Self :: Struct (node) => node . get_id () , Self :: Typeref (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Array (node) => node . get_parent_id () , Self :: Bool (node) => node . get_parent_id () , Self :: Dict (node) => node . get_parent_id () , Self :: Enum (node) => node . get_parent_id () , Self :: Float (node) => node . get_parent_id () , Self :: Int (node) => node . get_parent_id () , Self :: Maybe (node) => node . get_parent_id () , Self :: Object (node) => node . get_parent_id () , Self :: String (node) => node . get_parent_id () , Self :: Struct (node) => node . get_parent_id () , Self :: Typeref (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Array (node) => node . get_range () , Self :: Bool (node) => node . get_range () , Self :: Dict (node) => node . get_range () , Self :: Enum (node) => node . get_range () , Self :: Float (node) => node . get_range () , Self :: Int (node) => node . get_range () , Self :: Maybe (node) => node . get_range () , Self :: Object (node) => node . get_range () , Self :: String (node) => node . get_range () , Self :: Struct (node) => node . get_range () , Self :: Typeref (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 37u16 => Ok (Self :: Array (Array :: try_from ((node , db , builder , id , parent_id)) ?)) , 16u16 => Ok (Self :: Bool (Bool :: try_from ((node , db , builder , id , parent_id)) ?)) , 38u16 => Ok (Self :: Dict (Dict :: try_from ((node , db , builder , id , parent_id)) ?)) , 33u16 => Ok (Self :: Enum (Enum :: try_from ((node , db , builder , id , parent_id)) ?)) , 18u16 => Ok (Self :: Float (Float :: try_from ((node , db , builder , id , parent_id)) ?)) , 17u16 => Ok (Self :: Int (Int :: try_from ((node , db , builder , id , parent_id)) ?)) , 35u16 => Ok (Self :: Maybe (Maybe :: try_from ((node , db , builder , id , parent_id)) ?)) , 20u16 => Ok (Self :: Object (Object :: try_from ((node , db , builder , id , parent_id)) ?)) , 19u16 => Ok (Self :: String (String :: try_from ((node , db , builder , id , parent_id)) ?)) , 31u16 => Ok (Self :: Struct (Struct :: try_from ((node , db , builder , id , parent_id)) ?)) , 39u16 => Ok (Self :: Typeref (Typeref :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Enum_Struct { Enum (Enum) , Struct (Struct) } impl auto_lsp :: core :: ast :: AstNode for Enum_Struct { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 33u16 | 31u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Enum (node) => node . lower () , Self :: Struct (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Enum (node) => node . get_id () , Self :: Struct (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Enum (node) => node . get_parent_id () , Self :: Struct (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Enum (node) => node . get_range () , Self :: Struct (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Enum_Struct { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 33u16 => Ok (Self :: Enum (Enum :: try_from ((node , db , builder , id , parent_id)) ?)) , 31u16 => Ok (Self :: Struct (Struct :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Enum_Struct) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Comment_Eol { Comment (Comment) , Eol (Eol) } impl auto_lsp :: core :: ast :: AstNode for Comment_Eol { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16 | 3u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Comment (node) => node . lower () , Self :: Eol (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Comment (node) => node . get_id () , Self :: Eol (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Comment (node) => node . get_parent_id () , Self :: Eol (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Comment (node) => node . get_range () , Self :: Eol (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment_Eol { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 2u16 => Ok (Self :: Comment (Comment :: try_from ((node , db , builder , id , parent_id)) ?)) , 3u16 => Ok (Self :: Eol (Eol :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Comment_Eol) , }) } } }
[INFO] [stdout]  1 + # ! [allow (clippy :: all)] # ! [allow (unused)] # ! [allow (dead_code)] # ! [allow (non_camel_case_types)] # ! [allow (non_snake_case)] # [derive (Debug , Clone , PartialEq)] pub struct Array { pub Type : auto_lsp :: core :: ast :: AstNodeId < Type > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Array { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 37u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Array { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut Type = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Type , 10u16 > (& mut Type) }) ; Ok (Self { Type : Type ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Type) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Dict { pub Type : auto_lsp :: core :: ast :: AstNodeId < Type > , pub children : auto_lsp :: core :: ast :: AstNodeId < String > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Dict { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 38u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Dict { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut Type = Ok (None) ; ; let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Type , 10u16 > (& mut Type) ? . on_children_id (& mut children) }) ; Ok (Self { Type : Type ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Type) , } }) ? , children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (String) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Enum { pub member : Vec < auto_lsp :: core :: ast :: AstNodeId < FieldName >> , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Enum { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 33u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Enum { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut member = vec ! [] ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_vec_field_id :: < FieldName , 6u16 > (& mut member) ? . on_vec_children_id (& mut children) }) ; Ok (Self { member , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Error { pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordError > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub value : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Error { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 29u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Error { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut keyword = Ok (None) ; ; let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < KeywordError , 5u16 > (& mut keyword) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_field_id :: < Struct , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Interface { pub declaration : auto_lsp :: core :: ast :: AstNodeId < InterfaceDeclaration > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol_Error_Method_Typedef >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Interface { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 24u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Interface { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut declaration = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < InterfaceDeclaration , 2u16 > (& mut declaration) ? . on_vec_children_id (& mut children) }) ; Ok (Self { declaration : declaration ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (declaration) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct InterfaceDeclaration { pub name : auto_lsp :: core :: ast :: AstNodeId < InterfaceName > , pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordInterface > , pub children : Vec < auto_lsp :: core :: ast :: AstNode < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for InterfaceDeclaration { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 27u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for InterfaceDeclaration { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut name = Ok (None) ; ; let mut keyword = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < InterfaceName , 7u16 > (& mut name) ? . on_field_id :: < KeywordInterface , 5u16 > (& mut keyword) ? . on_vec_children_id (& mut children) }) ; Ok (Self { name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Maybe { pub questionmark : auto_lsp :: core :: ast :: AstNodeId < Questionmark > , pub just : auto_lsp :: core :: ast :: AstNodeId < Type > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Maybe { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 35u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Maybe { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut questionmark = Ok (None) ; ; let mut just = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Questionmark , 9u16 > (& mut questionmark) ? . on_field_id :: < Type , 4u16 > (& mut just) }) ; Ok (Self { questionmark : questionmark ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (questionmark) , } }) ? , just : just ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (just) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Method { pub input : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub output : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordMethod > , pub arrow : auto_lsp :: core :: ast :: AstNodeId < Arrow > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Method { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 30u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Method { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut input = Ok (None) ; ; let mut output = Ok (None) ; ; let mut keyword = Ok (None) ; ; let mut arrow = Ok (None) ; ; let mut name = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Struct , 3u16 > (& mut input) ? . on_field_id :: < Struct , 8u16 > (& mut output) ? . on_field_id :: < KeywordMethod , 5u16 > (& mut keyword) ? . on_field_id :: < Arrow , 1u16 > (& mut arrow) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_vec_children_id (& mut children) }) ; Ok (Self { input : input ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (input) , } }) ? , output : output ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (output) , } }) ? , keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , arrow : arrow ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (arrow) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Struct { pub member : Vec < auto_lsp :: core :: ast :: AstNodeId < StructField >> , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Struct { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 31u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Struct { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut member = vec ! [] ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_vec_field_id :: < StructField , 6u16 > (& mut member) ? . on_vec_children_id (& mut children) }) ; Ok (Self { member , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct StructField { pub name : auto_lsp :: core :: ast :: AstNodeId < FieldName > , pub value : auto_lsp :: core :: ast :: AstNodeId < Type > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for StructField { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 32u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for StructField { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < FieldName , 7u16 > (& mut name) ? . on_field_id :: < Type , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Type { pub children : auto_lsp :: core :: ast :: AstNodeId < Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Type { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 34u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Type { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_children_id (& mut children) }) ; Ok (Self { children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Typedef { pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordType > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub value : auto_lsp :: core :: ast :: AstNodeId < Enum_Struct > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Typedef { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 28u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Typedef { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut keyword = Ok (None) ; ; let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < KeywordType , 5u16 > (& mut keyword) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_field_id :: < Enum_Struct , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Typeref { pub children : auto_lsp :: core :: ast :: AstNodeId < Name > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Typeref { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 39u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Typeref { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_children_id (& mut children) }) ; Ok (Self { children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Name) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_LeftParen { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_LeftParen { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 9u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_LeftParen { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_RightParen { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_RightParen { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 11u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_RightParen { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_Comma { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_Comma { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 10u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_Comma { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_Colon { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_Colon { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 12u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_Colon { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_LeftBracket { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_LeftBracket { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 14u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_LeftBracket { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_RightBracket { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_RightBracket { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 15u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_RightBracket { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Arrow { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Arrow { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 8u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Arrow { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Bool { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Bool { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 16u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Bool { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Comment { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Comment { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Eol { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Eol { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 3u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Eol { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct FieldName { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for FieldName { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 22u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for FieldName { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Float { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Float { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 18u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Float { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Int { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Int { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 17u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Int { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct InterfaceName { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for InterfaceName { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 23u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for InterfaceName { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordError { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordError { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 6u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordError { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordInterface { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordInterface { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 4u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordInterface { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordMethod { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordMethod { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 7u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordMethod { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordType { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordType { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 5u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordType { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Name { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Name { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 21u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Name { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Object { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Object { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 20u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Object { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Questionmark { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Questionmark { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 13u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Questionmark { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct String { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for String { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 19u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for String { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub enum Comment_Eol_Error_Method_Typedef { Comment (Comment) , Eol (Eol) , Error (Error) , Method (Method) , Typedef (Typedef) } impl auto_lsp :: core :: ast :: AstNode for Comment_Eol_Error_Method_Typedef { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16 | 3u16 | 29u16 | 30u16 | 28u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Comment (node) => node . lower () , Self :: Eol (node) => node . lower () , Self :: Error (node) => node . lower () , Self :: Method (node) => node . lower () , Self :: Typedef (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Comment (node) => node . get_id () , Self :: Eol (node) => node . get_id () , Self :: Error (node) => node . get_id () , Self :: Method (node) => node . get_id () , Self :: Typedef (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Comment (node) => node . get_parent_id () , Self :: Eol (node) => node . get_parent_id () , Self :: Error (node) => node . get_parent_id () , Self :: Method (node) => node . get_parent_id () , Self :: Typedef (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Comment (node) => node . get_range () , Self :: Eol (node) => node . get_range () , Self :: Error (node) => node . get_range () , Self :: Method (node) => node . get_range () , Self :: Typedef (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment_Eol_Error_Method_Typedef { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 2u16 => Ok (Self :: Comment (Comment :: try_from ((node , db , builder , id , parent_id)) ?)) , 3u16 => Ok (Self :: Eol (Eol :: try_from ((node , db , builder , id , parent_id)) ?)) , 29u16 => Ok (Self :: Error (Error :: try_from ((node , db , builder , id , parent_id)) ?)) , 30u16 => Ok (Self :: Method (Method :: try_from ((node , db , builder , id , parent_id)) ?)) , 28u16 => Ok (Self :: Typedef (Typedef :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Comment_Eol_Error_Method_Typedef) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { Array (Array) , Bool (Bool) , Dict (Dict) , Enum (Enum) , Float (Float) , Int (Int) , Maybe (Maybe) , Object (Object) , String (String) , Struct (Struct) , Typeref (Typeref) } impl auto_lsp :: core :: ast :: AstNode for Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 37u16 | 16u16 | 38u16 | 33u16 | 18u16 | 17u16 | 35u16 | 20u16 | 19u16 | 31u16 | 39u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Array (node) => node . lower () , Self :: Bool (node) => node . lower () , Self :: Dict (node) => node . lower () , Self :: Enum (node) => node . lower () , Self :: Float (node) => node . lower () , Self :: Int (node) => node . lower () , Self :: Maybe (node) => node . lower () , Self :: Object (node) => node . lower () , Self :: String (node) => node . lower () , Self :: Struct (node) => node . lower () , Self :: Typeref (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Array (node) => node . get_id () , Self :: Bool (node) => node . get_id () , Self :: Dict (node) => node . get_id () , Self :: Enum (node) => node . get_id () , Self :: Float (node) => node . get_id () , Self :: Int (node) => node . get_id () , Self :: Maybe (node) => node . get_id () , Self :: Object (node) => node . get_id () , Self :: String (node) => node . get_id () , Self :: Struct (node) => node . get_id () , Self :: Typeref (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Array (node) => node . get_parent_id () , Self :: Bool (node) => node . get_parent_id () , Self :: Dict (node) => node . get_parent_id () , Self :: Enum (node) => node . get_parent_id () , Self :: Float (node) => node . get_parent_id () , Self :: Int (node) => node . get_parent_id () , Self :: Maybe (node) => node . get_parent_id () , Self :: Object (node) => node . get_parent_id () , Self :: String (node) => node . get_parent_id () , Self :: Struct (node) => node . get_parent_id () , Self :: Typeref (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Array (node) => node . get_range () , Self :: Bool (node) => node . get_range () , Self :: Dict (node) => node . get_range () , Self :: Enum (node) => node . get_range () , Self :: Float (node) => node . get_range () , Self :: Int (node) => node . get_range () , Self :: Maybe (node) => node . get_range () , Self :: Object (node) => node . get_range () , Self :: String (node) => node . get_range () , Self :: Struct (node) => node . get_range () , Self :: Typeref (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 37u16 => Ok (Self :: Array (Array :: try_from ((node , db , builder , id , parent_id)) ?)) , 16u16 => Ok (Self :: Bool (Bool :: try_from ((node , db , builder , id , parent_id)) ?)) , 38u16 => Ok (Self :: Dict (Dict :: try_from ((node , db , builder , id , parent_id)) ?)) , 33u16 => Ok (Self :: Enum (Enum :: try_from ((node , db , builder , id , parent_id)) ?)) , 18u16 => Ok (Self :: Float (Float :: try_from ((node , db , builder , id , parent_id)) ?)) , 17u16 => Ok (Self :: Int (Int :: try_from ((node , db , builder , id , parent_id)) ?)) , 35u16 => Ok (Self :: Maybe (Maybe :: try_from ((node , db , builder , id , parent_id)) ?)) , 20u16 => Ok (Self :: Object (Object :: try_from ((node , db , builder , id , parent_id)) ?)) , 19u16 => Ok (Self :: String (String :: try_from ((node , db , builder , id , parent_id)) ?)) , 31u16 => Ok (Self :: Struct (Struct :: try_from ((node , db , builder , id , parent_id)) ?)) , 39u16 => Ok (Self :: Typeref (Typeref :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Enum_Struct { Enum (Enum) , Struct (Struct) } impl auto_lsp :: core :: ast :: AstNode for Enum_Struct { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 33u16 | 31u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Enum (node) => node . lower () , Self :: Struct (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Enum (node) => node . get_id () , Self :: Struct (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Enum (node) => node . get_parent_id () , Self :: Struct (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Enum (node) => node . get_range () , Self :: Struct (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Enum_Struct { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 33u16 => Ok (Self :: Enum (Enum :: try_from ((node , db , builder , id , parent_id)) ?)) , 31u16 => Ok (Self :: Struct (Struct :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Enum_Struct) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Comment_Eol { Comment (Comment) , Eol (Eol) } impl auto_lsp :: core :: ast :: AstNode for Comment_Eol { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16 | 3u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Comment (node) => node . lower () , Self :: Eol (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Comment (node) => node . get_id () , Self :: Eol (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Comment (node) => node . get_parent_id () , Self :: Eol (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Comment (node) => node . get_range () , Self :: Eol (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment_Eol { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 2u16 => Ok (Self :: Comment (Comment :: try_from ((node , db , builder , id , parent_id)) ?)) , 3u16 => Ok (Self :: Eol (Eol :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Comment_Eol) , }) } } }
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `AstNodeId` in module `auto_lsp::core::ast`
[INFO] [stdout]   --> src/ast.rs:1:10200
[INFO] [stdout]    |
[INFO] [stdout]  1 | ...truct Maybe { pub questionmark : auto_lsp :: core :: ast :: AstNodeId < Questionmark > , pub just : auto_lsp :: core :: ast :: As...
[INFO] [stdout]    |                                                                ^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]   ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/auto-lsp-core-0.7.0/src/ast/node.rs:26:1
[INFO] [stdout]    |
[INFO] [stdout] 26 | pub trait AstNode: std::fmt::Debug + Send + Sync + DowncastSync {
[INFO] [stdout]    | --------------------------------------------------------------- similarly named trait `AstNode` defined here
[INFO] [stdout]    |
[INFO] [stdout] help: a trait with a similar name exists
[INFO] [stdout]    |
[INFO] [stdout]  1 - # ! [allow (clippy :: all)] # ! [allow (unused)] # ! [allow (dead_code)] # ! [allow (non_camel_case_types)] # ! [allow (non_snake_case)] # [derive (Debug , Clone , PartialEq)] pub struct Array { pub Type : auto_lsp :: core :: ast :: AstNodeId < Type > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Array { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 37u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Array { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut Type = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Type , 10u16 > (& mut Type) }) ; Ok (Self { Type : Type ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Type) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Dict { pub Type : auto_lsp :: core :: ast :: AstNodeId < Type > , pub children : auto_lsp :: core :: ast :: AstNodeId < String > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Dict { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 38u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Dict { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut Type = Ok (None) ; ; let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Type , 10u16 > (& mut Type) ? . on_children_id (& mut children) }) ; Ok (Self { Type : Type ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Type) , } }) ? , children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (String) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Enum { pub member : Vec < auto_lsp :: core :: ast :: AstNodeId < FieldName >> , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Enum { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 33u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Enum { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut member = vec ! [] ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_vec_field_id :: < FieldName , 6u16 > (& mut member) ? . on_vec_children_id (& mut children) }) ; Ok (Self { member , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Error { pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordError > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub value : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Error { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 29u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Error { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut keyword = Ok (None) ; ; let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < KeywordError , 5u16 > (& mut keyword) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_field_id :: < Struct , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Interface { pub declaration : auto_lsp :: core :: ast :: AstNodeId < InterfaceDeclaration > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol_Error_Method_Typedef >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Interface { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 24u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Interface { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut declaration = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < InterfaceDeclaration , 2u16 > (& mut declaration) ? . on_vec_children_id (& mut children) }) ; Ok (Self { declaration : declaration ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (declaration) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct InterfaceDeclaration { pub name : auto_lsp :: core :: ast :: AstNodeId < InterfaceName > , pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordInterface > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for InterfaceDeclaration { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 27u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for InterfaceDeclaration { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut name = Ok (None) ; ; let mut keyword = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < InterfaceName , 7u16 > (& mut name) ? . on_field_id :: < KeywordInterface , 5u16 > (& mut keyword) ? . on_vec_children_id (& mut children) }) ; Ok (Self { name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Maybe { pub questionmark : auto_lsp :: core :: ast :: AstNodeId < Questionmark > , pub just : auto_lsp :: core :: ast :: AstNodeId < Type > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Maybe { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 35u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Maybe { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut questionmark = Ok (None) ; ; let mut just = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Questionmark , 9u16 > (& mut questionmark) ? . on_field_id :: < Type , 4u16 > (& mut just) }) ; Ok (Self { questionmark : questionmark ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (questionmark) , } }) ? , just : just ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (just) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Method { pub input : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub output : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordMethod > , pub arrow : auto_lsp :: core :: ast :: AstNodeId < Arrow > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Method { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 30u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Method { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut input = Ok (None) ; ; let mut output = Ok (None) ; ; let mut keyword = Ok (None) ; ; let mut arrow = Ok (None) ; ; let mut name = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Struct , 3u16 > (& mut input) ? . on_field_id :: < Struct , 8u16 > (& mut output) ? . on_field_id :: < KeywordMethod , 5u16 > (& mut keyword) ? . on_field_id :: < Arrow , 1u16 > (& mut arrow) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_vec_children_id (& mut children) }) ; Ok (Self { input : input ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (input) , } }) ? , output : output ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (output) , } }) ? , keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , arrow : arrow ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (arrow) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Struct { pub member : Vec < auto_lsp :: core :: ast :: AstNodeId < StructField >> , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Struct { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 31u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Struct { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut member = vec ! [] ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_vec_field_id :: < StructField , 6u16 > (& mut member) ? . on_vec_children_id (& mut children) }) ; Ok (Self { member , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct StructField { pub name : auto_lsp :: core :: ast :: AstNodeId < FieldName > , pub value : auto_lsp :: core :: ast :: AstNodeId < Type > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for StructField { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 32u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for StructField { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < FieldName , 7u16 > (& mut name) ? . on_field_id :: < Type , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Type { pub children : auto_lsp :: core :: ast :: AstNodeId < Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Type { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 34u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Type { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_children_id (& mut children) }) ; Ok (Self { children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Typedef { pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordType > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub value : auto_lsp :: core :: ast :: AstNodeId < Enum_Struct > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Typedef { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 28u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Typedef { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut keyword = Ok (None) ; ; let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < KeywordType , 5u16 > (& mut keyword) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_field_id :: < Enum_Struct , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Typeref { pub children : auto_lsp :: core :: ast :: AstNodeId < Name > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Typeref { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 39u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Typeref { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_children_id (& mut children) }) ; Ok (Self { children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Name) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_LeftParen { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_LeftParen { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 9u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_LeftParen { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_RightParen { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_RightParen { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 11u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_RightParen { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_Comma { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_Comma { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 10u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_Comma { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_Colon { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_Colon { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 12u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_Colon { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_LeftBracket { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_LeftBracket { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 14u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_LeftBracket { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_RightBracket { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_RightBracket { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 15u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_RightBracket { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Arrow { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Arrow { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 8u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Arrow { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Bool { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Bool { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 16u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Bool { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Comment { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Comment { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Eol { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Eol { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 3u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Eol { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct FieldName { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for FieldName { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 22u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for FieldName { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Float { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Float { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 18u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Float { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Int { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Int { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 17u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Int { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct InterfaceName { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for InterfaceName { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 23u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for InterfaceName { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordError { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordError { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 6u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordError { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordInterface { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordInterface { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 4u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordInterface { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordMethod { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordMethod { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 7u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordMethod { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordType { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordType { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 5u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordType { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Name { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Name { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 21u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Name { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Object { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Object { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 20u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Object { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Questionmark { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Questionmark { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 13u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Questionmark { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct String { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for String { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 19u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for String { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub enum Comment_Eol_Error_Method_Typedef { Comment (Comment) , Eol (Eol) , Error (Error) , Method (Method) , Typedef (Typedef) } impl auto_lsp :: core :: ast :: AstNode for Comment_Eol_Error_Method_Typedef { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16 | 3u16 | 29u16 | 30u16 | 28u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Comment (node) => node . lower () , Self :: Eol (node) => node . lower () , Self :: Error (node) => node . lower () , Self :: Method (node) => node . lower () , Self :: Typedef (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Comment (node) => node . get_id () , Self :: Eol (node) => node . get_id () , Self :: Error (node) => node . get_id () , Self :: Method (node) => node . get_id () , Self :: Typedef (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Comment (node) => node . get_parent_id () , Self :: Eol (node) => node . get_parent_id () , Self :: Error (node) => node . get_parent_id () , Self :: Method (node) => node . get_parent_id () , Self :: Typedef (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Comment (node) => node . get_range () , Self :: Eol (node) => node . get_range () , Self :: Error (node) => node . get_range () , Self :: Method (node) => node . get_range () , Self :: Typedef (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment_Eol_Error_Method_Typedef { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 2u16 => Ok (Self :: Comment (Comment :: try_from ((node , db , builder , id , parent_id)) ?)) , 3u16 => Ok (Self :: Eol (Eol :: try_from ((node , db , builder , id , parent_id)) ?)) , 29u16 => Ok (Self :: Error (Error :: try_from ((node , db , builder , id , parent_id)) ?)) , 30u16 => Ok (Self :: Method (Method :: try_from ((node , db , builder , id , parent_id)) ?)) , 28u16 => Ok (Self :: Typedef (Typedef :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Comment_Eol_Error_Method_Typedef) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { Array (Array) , Bool (Bool) , Dict (Dict) , Enum (Enum) , Float (Float) , Int (Int) , Maybe (Maybe) , Object (Object) , String (String) , Struct (Struct) , Typeref (Typeref) } impl auto_lsp :: core :: ast :: AstNode for Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 37u16 | 16u16 | 38u16 | 33u16 | 18u16 | 17u16 | 35u16 | 20u16 | 19u16 | 31u16 | 39u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Array (node) => node . lower () , Self :: Bool (node) => node . lower () , Self :: Dict (node) => node . lower () , Self :: Enum (node) => node . lower () , Self :: Float (node) => node . lower () , Self :: Int (node) => node . lower () , Self :: Maybe (node) => node . lower () , Self :: Object (node) => node . lower () , Self :: String (node) => node . lower () , Self :: Struct (node) => node . lower () , Self :: Typeref (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Array (node) => node . get_id () , Self :: Bool (node) => node . get_id () , Self :: Dict (node) => node . get_id () , Self :: Enum (node) => node . get_id () , Self :: Float (node) => node . get_id () , Self :: Int (node) => node . get_id () , Self :: Maybe (node) => node . get_id () , Self :: Object (node) => node . get_id () , Self :: String (node) => node . get_id () , Self :: Struct (node) => node . get_id () , Self :: Typeref (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Array (node) => node . get_parent_id () , Self :: Bool (node) => node . get_parent_id () , Self :: Dict (node) => node . get_parent_id () , Self :: Enum (node) => node . get_parent_id () , Self :: Float (node) => node . get_parent_id () , Self :: Int (node) => node . get_parent_id () , Self :: Maybe (node) => node . get_parent_id () , Self :: Object (node) => node . get_parent_id () , Self :: String (node) => node . get_parent_id () , Self :: Struct (node) => node . get_parent_id () , Self :: Typeref (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Array (node) => node . get_range () , Self :: Bool (node) => node . get_range () , Self :: Dict (node) => node . get_range () , Self :: Enum (node) => node . get_range () , Self :: Float (node) => node . get_range () , Self :: Int (node) => node . get_range () , Self :: Maybe (node) => node . get_range () , Self :: Object (node) => node . get_range () , Self :: String (node) => node . get_range () , Self :: Struct (node) => node . get_range () , Self :: Typeref (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 37u16 => Ok (Self :: Array (Array :: try_from ((node , db , builder , id , parent_id)) ?)) , 16u16 => Ok (Self :: Bool (Bool :: try_from ((node , db , builder , id , parent_id)) ?)) , 38u16 => Ok (Self :: Dict (Dict :: try_from ((node , db , builder , id , parent_id)) ?)) , 33u16 => Ok (Self :: Enum (Enum :: try_from ((node , db , builder , id , parent_id)) ?)) , 18u16 => Ok (Self :: Float (Float :: try_from ((node , db , builder , id , parent_id)) ?)) , 17u16 => Ok (Self :: Int (Int :: try_from ((node , db , builder , id , parent_id)) ?)) , 35u16 => Ok (Self :: Maybe (Maybe :: try_from ((node , db , builder , id , parent_id)) ?)) , 20u16 => Ok (Self :: Object (Object :: try_from ((node , db , builder , id , parent_id)) ?)) , 19u16 => Ok (Self :: String (String :: try_from ((node , db , builder , id , parent_id)) ?)) , 31u16 => Ok (Self :: Struct (Struct :: try_from ((node , db , builder , id , parent_id)) ?)) , 39u16 => Ok (Self :: Typeref (Typeref :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Enum_Struct { Enum (Enum) , Struct (Struct) } impl auto_lsp :: core :: ast :: AstNode for Enum_Struct { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 33u16 | 31u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Enum (node) => node . lower () , Self :: Struct (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Enum (node) => node . get_id () , Self :: Struct (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Enum (node) => node . get_parent_id () , Self :: Struct (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Enum (node) => node . get_range () , Self :: Struct (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Enum_Struct { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 33u16 => Ok (Self :: Enum (Enum :: try_from ((node , db , builder , id , parent_id)) ?)) , 31u16 => Ok (Self :: Struct (Struct :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Enum_Struct) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Comment_Eol { Comment (Comment) , Eol (Eol) } impl auto_lsp :: core :: ast :: AstNode for Comment_Eol { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16 | 3u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Comment (node) => node . lower () , Self :: Eol (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Comment (node) => node . get_id () , Self :: Eol (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Comment (node) => node . get_parent_id () , Self :: Eol (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Comment (node) => node . get_range () , Self :: Eol (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment_Eol { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 2u16 => Ok (Self :: Comment (Comment :: try_from ((node , db , builder , id , parent_id)) ?)) , 3u16 => Ok (Self :: Eol (Eol :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Comment_Eol) , }) } } }
[INFO] [stdout]  1 + # ! [allow (clippy :: all)] # ! [allow (unused)] # ! [allow (dead_code)] # ! [allow (non_camel_case_types)] # ! [allow (non_snake_case)] # [derive (Debug , Clone , PartialEq)] pub struct Array { pub Type : auto_lsp :: core :: ast :: AstNodeId < Type > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Array { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 37u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Array { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut Type = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Type , 10u16 > (& mut Type) }) ; Ok (Self { Type : Type ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Type) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Dict { pub Type : auto_lsp :: core :: ast :: AstNodeId < Type > , pub children : auto_lsp :: core :: ast :: AstNodeId < String > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Dict { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 38u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Dict { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut Type = Ok (None) ; ; let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Type , 10u16 > (& mut Type) ? . on_children_id (& mut children) }) ; Ok (Self { Type : Type ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Type) , } }) ? , children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (String) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Enum { pub member : Vec < auto_lsp :: core :: ast :: AstNodeId < FieldName >> , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Enum { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 33u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Enum { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut member = vec ! [] ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_vec_field_id :: < FieldName , 6u16 > (& mut member) ? . on_vec_children_id (& mut children) }) ; Ok (Self { member , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Error { pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordError > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub value : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Error { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 29u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Error { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut keyword = Ok (None) ; ; let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < KeywordError , 5u16 > (& mut keyword) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_field_id :: < Struct , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Interface { pub declaration : auto_lsp :: core :: ast :: AstNodeId < InterfaceDeclaration > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol_Error_Method_Typedef >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Interface { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 24u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Interface { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut declaration = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < InterfaceDeclaration , 2u16 > (& mut declaration) ? . on_vec_children_id (& mut children) }) ; Ok (Self { declaration : declaration ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (declaration) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct InterfaceDeclaration { pub name : auto_lsp :: core :: ast :: AstNodeId < InterfaceName > , pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordInterface > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for InterfaceDeclaration { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 27u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for InterfaceDeclaration { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut name = Ok (None) ; ; let mut keyword = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < InterfaceName , 7u16 > (& mut name) ? . on_field_id :: < KeywordInterface , 5u16 > (& mut keyword) ? . on_vec_children_id (& mut children) }) ; Ok (Self { name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Maybe { pub questionmark : auto_lsp :: core :: ast :: AstNode < Questionmark > , pub just : auto_lsp :: core :: ast :: AstNodeId < Type > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Maybe { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 35u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Maybe { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut questionmark = Ok (None) ; ; let mut just = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Questionmark , 9u16 > (& mut questionmark) ? . on_field_id :: < Type , 4u16 > (& mut just) }) ; Ok (Self { questionmark : questionmark ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (questionmark) , } }) ? , just : just ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (just) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Method { pub input : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub output : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordMethod > , pub arrow : auto_lsp :: core :: ast :: AstNodeId < Arrow > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Method { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 30u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Method { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut input = Ok (None) ; ; let mut output = Ok (None) ; ; let mut keyword = Ok (None) ; ; let mut arrow = Ok (None) ; ; let mut name = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Struct , 3u16 > (& mut input) ? . on_field_id :: < Struct , 8u16 > (& mut output) ? . on_field_id :: < KeywordMethod , 5u16 > (& mut keyword) ? . on_field_id :: < Arrow , 1u16 > (& mut arrow) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_vec_children_id (& mut children) }) ; Ok (Self { input : input ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (input) , } }) ? , output : output ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (output) , } }) ? , keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , arrow : arrow ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (arrow) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Struct { pub member : Vec < auto_lsp :: core :: ast :: AstNodeId < StructField >> , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Struct { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 31u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Struct { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut member = vec ! [] ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_vec_field_id :: < StructField , 6u16 > (& mut member) ? . on_vec_children_id (& mut children) }) ; Ok (Self { member , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct StructField { pub name : auto_lsp :: core :: ast :: AstNodeId < FieldName > , pub value : auto_lsp :: core :: ast :: AstNodeId < Type > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for StructField { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 32u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for StructField { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < FieldName , 7u16 > (& mut name) ? . on_field_id :: < Type , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Type { pub children : auto_lsp :: core :: ast :: AstNodeId < Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Type { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 34u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Type { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_children_id (& mut children) }) ; Ok (Self { children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Typedef { pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordType > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub value : auto_lsp :: core :: ast :: AstNodeId < Enum_Struct > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Typedef { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 28u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Typedef { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut keyword = Ok (None) ; ; let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < KeywordType , 5u16 > (& mut keyword) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_field_id :: < Enum_Struct , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Typeref { pub children : auto_lsp :: core :: ast :: AstNodeId < Name > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Typeref { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 39u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Typeref { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_children_id (& mut children) }) ; Ok (Self { children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Name) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_LeftParen { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_LeftParen { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 9u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_LeftParen { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_RightParen { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_RightParen { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 11u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_RightParen { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_Comma { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_Comma { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 10u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_Comma { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_Colon { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_Colon { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 12u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_Colon { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_LeftBracket { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_LeftBracket { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 14u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_LeftBracket { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_RightBracket { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_RightBracket { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 15u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_RightBracket { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Arrow { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Arrow { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 8u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Arrow { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Bool { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Bool { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 16u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Bool { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Comment { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Comment { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Eol { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Eol { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 3u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Eol { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct FieldName { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for FieldName { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 22u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for FieldName { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Float { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Float { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 18u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Float { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Int { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Int { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 17u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Int { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct InterfaceName { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for InterfaceName { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 23u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for InterfaceName { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordError { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordError { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 6u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordError { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordInterface { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordInterface { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 4u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordInterface { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordMethod { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordMethod { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 7u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordMethod { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordType { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordType { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 5u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordType { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Name { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Name { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 21u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Name { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Object { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Object { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 20u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Object { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Questionmark { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Questionmark { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 13u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Questionmark { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct String { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for String { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 19u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for String { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub enum Comment_Eol_Error_Method_Typedef { Comment (Comment) , Eol (Eol) , Error (Error) , Method (Method) , Typedef (Typedef) } impl auto_lsp :: core :: ast :: AstNode for Comment_Eol_Error_Method_Typedef { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16 | 3u16 | 29u16 | 30u16 | 28u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Comment (node) => node . lower () , Self :: Eol (node) => node . lower () , Self :: Error (node) => node . lower () , Self :: Method (node) => node . lower () , Self :: Typedef (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Comment (node) => node . get_id () , Self :: Eol (node) => node . get_id () , Self :: Error (node) => node . get_id () , Self :: Method (node) => node . get_id () , Self :: Typedef (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Comment (node) => node . get_parent_id () , Self :: Eol (node) => node . get_parent_id () , Self :: Error (node) => node . get_parent_id () , Self :: Method (node) => node . get_parent_id () , Self :: Typedef (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Comment (node) => node . get_range () , Self :: Eol (node) => node . get_range () , Self :: Error (node) => node . get_range () , Self :: Method (node) => node . get_range () , Self :: Typedef (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment_Eol_Error_Method_Typedef { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 2u16 => Ok (Self :: Comment (Comment :: try_from ((node , db , builder , id , parent_id)) ?)) , 3u16 => Ok (Self :: Eol (Eol :: try_from ((node , db , builder , id , parent_id)) ?)) , 29u16 => Ok (Self :: Error (Error :: try_from ((node , db , builder , id , parent_id)) ?)) , 30u16 => Ok (Self :: Method (Method :: try_from ((node , db , builder , id , parent_id)) ?)) , 28u16 => Ok (Self :: Typedef (Typedef :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Comment_Eol_Error_Method_Typedef) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { Array (Array) , Bool (Bool) , Dict (Dict) , Enum (Enum) , Float (Float) , Int (Int) , Maybe (Maybe) , Object (Object) , String (String) , Struct (Struct) , Typeref (Typeref) } impl auto_lsp :: core :: ast :: AstNode for Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 37u16 | 16u16 | 38u16 | 33u16 | 18u16 | 17u16 | 35u16 | 20u16 | 19u16 | 31u16 | 39u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Array (node) => node . lower () , Self :: Bool (node) => node . lower () , Self :: Dict (node) => node . lower () , Self :: Enum (node) => node . lower () , Self :: Float (node) => node . lower () , Self :: Int (node) => node . lower () , Self :: Maybe (node) => node . lower () , Self :: Object (node) => node . lower () , Self :: String (node) => node . lower () , Self :: Struct (node) => node . lower () , Self :: Typeref (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Array (node) => node . get_id () , Self :: Bool (node) => node . get_id () , Self :: Dict (node) => node . get_id () , Self :: Enum (node) => node . get_id () , Self :: Float (node) => node . get_id () , Self :: Int (node) => node . get_id () , Self :: Maybe (node) => node . get_id () , Self :: Object (node) => node . get_id () , Self :: String (node) => node . get_id () , Self :: Struct (node) => node . get_id () , Self :: Typeref (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Array (node) => node . get_parent_id () , Self :: Bool (node) => node . get_parent_id () , Self :: Dict (node) => node . get_parent_id () , Self :: Enum (node) => node . get_parent_id () , Self :: Float (node) => node . get_parent_id () , Self :: Int (node) => node . get_parent_id () , Self :: Maybe (node) => node . get_parent_id () , Self :: Object (node) => node . get_parent_id () , Self :: String (node) => node . get_parent_id () , Self :: Struct (node) => node . get_parent_id () , Self :: Typeref (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Array (node) => node . get_range () , Self :: Bool (node) => node . get_range () , Self :: Dict (node) => node . get_range () , Self :: Enum (node) => node . get_range () , Self :: Float (node) => node . get_range () , Self :: Int (node) => node . get_range () , Self :: Maybe (node) => node . get_range () , Self :: Object (node) => node . get_range () , Self :: String (node) => node . get_range () , Self :: Struct (node) => node . get_range () , Self :: Typeref (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 37u16 => Ok (Self :: Array (Array :: try_from ((node , db , builder , id , parent_id)) ?)) , 16u16 => Ok (Self :: Bool (Bool :: try_from ((node , db , builder , id , parent_id)) ?)) , 38u16 => Ok (Self :: Dict (Dict :: try_from ((node , db , builder , id , parent_id)) ?)) , 33u16 => Ok (Self :: Enum (Enum :: try_from ((node , db , builder , id , parent_id)) ?)) , 18u16 => Ok (Self :: Float (Float :: try_from ((node , db , builder , id , parent_id)) ?)) , 17u16 => Ok (Self :: Int (Int :: try_from ((node , db , builder , id , parent_id)) ?)) , 35u16 => Ok (Self :: Maybe (Maybe :: try_from ((node , db , builder , id , parent_id)) ?)) , 20u16 => Ok (Self :: Object (Object :: try_from ((node , db , builder , id , parent_id)) ?)) , 19u16 => Ok (Self :: String (String :: try_from ((node , db , builder , id , parent_id)) ?)) , 31u16 => Ok (Self :: Struct (Struct :: try_from ((node , db , builder , id , parent_id)) ?)) , 39u16 => Ok (Self :: Typeref (Typeref :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Enum_Struct { Enum (Enum) , Struct (Struct) } impl auto_lsp :: core :: ast :: AstNode for Enum_Struct { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 33u16 | 31u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Enum (node) => node . lower () , Self :: Struct (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Enum (node) => node . get_id () , Self :: Struct (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Enum (node) => node . get_parent_id () , Self :: Struct (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Enum (node) => node . get_range () , Self :: Struct (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Enum_Struct { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 33u16 => Ok (Self :: Enum (Enum :: try_from ((node , db , builder , id , parent_id)) ?)) , 31u16 => Ok (Self :: Struct (Struct :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Enum_Struct) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Comment_Eol { Comment (Comment) , Eol (Eol) } impl auto_lsp :: core :: ast :: AstNode for Comment_Eol { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16 | 3u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Comment (node) => node . lower () , Self :: Eol (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Comment (node) => node . get_id () , Self :: Eol (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Comment (node) => node . get_parent_id () , Self :: Eol (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Comment (node) => node . get_range () , Self :: Eol (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment_Eol { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 2u16 => Ok (Self :: Comment (Comment :: try_from ((node , db , builder , id , parent_id)) ?)) , 3u16 => Ok (Self :: Eol (Eol :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Comment_Eol) , }) } } }
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `AstNodeId` in module `auto_lsp::core::ast`
[INFO] [stdout]   --> src/ast.rs:1:10267
[INFO] [stdout]    |
[INFO] [stdout]  1 | ...Id < Questionmark > , pub just : auto_lsp :: core :: ast :: AstNodeId < Type > , _range : auto_lsp :: tree_sitter :: Range , _id ...
[INFO] [stdout]    |                                                                ^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]   ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/auto-lsp-core-0.7.0/src/ast/node.rs:26:1
[INFO] [stdout]    |
[INFO] [stdout] 26 | pub trait AstNode: std::fmt::Debug + Send + Sync + DowncastSync {
[INFO] [stdout]    | --------------------------------------------------------------- similarly named trait `AstNode` defined here
[INFO] [stdout]    |
[INFO] [stdout] help: a trait with a similar name exists
[INFO] [stdout]    |
[INFO] [stdout]  1 - # ! [allow (clippy :: all)] # ! [allow (unused)] # ! [allow (dead_code)] # ! [allow (non_camel_case_types)] # ! [allow (non_snake_case)] # [derive (Debug , Clone , PartialEq)] pub struct Array { pub Type : auto_lsp :: core :: ast :: AstNodeId < Type > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Array { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 37u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Array { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut Type = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Type , 10u16 > (& mut Type) }) ; Ok (Self { Type : Type ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Type) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Dict { pub Type : auto_lsp :: core :: ast :: AstNodeId < Type > , pub children : auto_lsp :: core :: ast :: AstNodeId < String > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Dict { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 38u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Dict { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut Type = Ok (None) ; ; let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Type , 10u16 > (& mut Type) ? . on_children_id (& mut children) }) ; Ok (Self { Type : Type ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Type) , } }) ? , children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (String) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Enum { pub member : Vec < auto_lsp :: core :: ast :: AstNodeId < FieldName >> , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Enum { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 33u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Enum { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut member = vec ! [] ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_vec_field_id :: < FieldName , 6u16 > (& mut member) ? . on_vec_children_id (& mut children) }) ; Ok (Self { member , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Error { pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordError > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub value : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Error { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 29u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Error { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut keyword = Ok (None) ; ; let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < KeywordError , 5u16 > (& mut keyword) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_field_id :: < Struct , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Interface { pub declaration : auto_lsp :: core :: ast :: AstNodeId < InterfaceDeclaration > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol_Error_Method_Typedef >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Interface { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 24u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Interface { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut declaration = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < InterfaceDeclaration , 2u16 > (& mut declaration) ? . on_vec_children_id (& mut children) }) ; Ok (Self { declaration : declaration ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (declaration) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct InterfaceDeclaration { pub name : auto_lsp :: core :: ast :: AstNodeId < InterfaceName > , pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordInterface > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for InterfaceDeclaration { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 27u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for InterfaceDeclaration { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut name = Ok (None) ; ; let mut keyword = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < InterfaceName , 7u16 > (& mut name) ? . on_field_id :: < KeywordInterface , 5u16 > (& mut keyword) ? . on_vec_children_id (& mut children) }) ; Ok (Self { name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Maybe { pub questionmark : auto_lsp :: core :: ast :: AstNodeId < Questionmark > , pub just : auto_lsp :: core :: ast :: AstNodeId < Type > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Maybe { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 35u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Maybe { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut questionmark = Ok (None) ; ; let mut just = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Questionmark , 9u16 > (& mut questionmark) ? . on_field_id :: < Type , 4u16 > (& mut just) }) ; Ok (Self { questionmark : questionmark ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (questionmark) , } }) ? , just : just ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (just) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Method { pub input : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub output : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordMethod > , pub arrow : auto_lsp :: core :: ast :: AstNodeId < Arrow > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Method { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 30u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Method { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut input = Ok (None) ; ; let mut output = Ok (None) ; ; let mut keyword = Ok (None) ; ; let mut arrow = Ok (None) ; ; let mut name = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Struct , 3u16 > (& mut input) ? . on_field_id :: < Struct , 8u16 > (& mut output) ? . on_field_id :: < KeywordMethod , 5u16 > (& mut keyword) ? . on_field_id :: < Arrow , 1u16 > (& mut arrow) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_vec_children_id (& mut children) }) ; Ok (Self { input : input ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (input) , } }) ? , output : output ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (output) , } }) ? , keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , arrow : arrow ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (arrow) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Struct { pub member : Vec < auto_lsp :: core :: ast :: AstNodeId < StructField >> , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Struct { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 31u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Struct { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut member = vec ! [] ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_vec_field_id :: < StructField , 6u16 > (& mut member) ? . on_vec_children_id (& mut children) }) ; Ok (Self { member , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct StructField { pub name : auto_lsp :: core :: ast :: AstNodeId < FieldName > , pub value : auto_lsp :: core :: ast :: AstNodeId < Type > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for StructField { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 32u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for StructField { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < FieldName , 7u16 > (& mut name) ? . on_field_id :: < Type , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Type { pub children : auto_lsp :: core :: ast :: AstNodeId < Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Type { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 34u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Type { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_children_id (& mut children) }) ; Ok (Self { children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Typedef { pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordType > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub value : auto_lsp :: core :: ast :: AstNodeId < Enum_Struct > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Typedef { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 28u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Typedef { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut keyword = Ok (None) ; ; let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < KeywordType , 5u16 > (& mut keyword) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_field_id :: < Enum_Struct , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Typeref { pub children : auto_lsp :: core :: ast :: AstNodeId < Name > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Typeref { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 39u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Typeref { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_children_id (& mut children) }) ; Ok (Self { children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Name) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_LeftParen { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_LeftParen { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 9u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_LeftParen { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_RightParen { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_RightParen { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 11u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_RightParen { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_Comma { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_Comma { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 10u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_Comma { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_Colon { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_Colon { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 12u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_Colon { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_LeftBracket { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_LeftBracket { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 14u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_LeftBracket { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_RightBracket { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_RightBracket { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 15u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_RightBracket { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Arrow { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Arrow { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 8u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Arrow { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Bool { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Bool { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 16u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Bool { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Comment { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Comment { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Eol { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Eol { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 3u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Eol { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct FieldName { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for FieldName { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 22u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for FieldName { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Float { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Float { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 18u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Float { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Int { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Int { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 17u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Int { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct InterfaceName { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for InterfaceName { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 23u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for InterfaceName { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordError { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordError { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 6u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordError { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordInterface { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordInterface { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 4u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordInterface { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordMethod { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordMethod { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 7u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordMethod { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordType { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordType { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 5u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordType { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Name { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Name { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 21u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Name { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Object { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Object { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 20u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Object { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Questionmark { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Questionmark { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 13u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Questionmark { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct String { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for String { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 19u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for String { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub enum Comment_Eol_Error_Method_Typedef { Comment (Comment) , Eol (Eol) , Error (Error) , Method (Method) , Typedef (Typedef) } impl auto_lsp :: core :: ast :: AstNode for Comment_Eol_Error_Method_Typedef { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16 | 3u16 | 29u16 | 30u16 | 28u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Comment (node) => node . lower () , Self :: Eol (node) => node . lower () , Self :: Error (node) => node . lower () , Self :: Method (node) => node . lower () , Self :: Typedef (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Comment (node) => node . get_id () , Self :: Eol (node) => node . get_id () , Self :: Error (node) => node . get_id () , Self :: Method (node) => node . get_id () , Self :: Typedef (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Comment (node) => node . get_parent_id () , Self :: Eol (node) => node . get_parent_id () , Self :: Error (node) => node . get_parent_id () , Self :: Method (node) => node . get_parent_id () , Self :: Typedef (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Comment (node) => node . get_range () , Self :: Eol (node) => node . get_range () , Self :: Error (node) => node . get_range () , Self :: Method (node) => node . get_range () , Self :: Typedef (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment_Eol_Error_Method_Typedef { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 2u16 => Ok (Self :: Comment (Comment :: try_from ((node , db , builder , id , parent_id)) ?)) , 3u16 => Ok (Self :: Eol (Eol :: try_from ((node , db , builder , id , parent_id)) ?)) , 29u16 => Ok (Self :: Error (Error :: try_from ((node , db , builder , id , parent_id)) ?)) , 30u16 => Ok (Self :: Method (Method :: try_from ((node , db , builder , id , parent_id)) ?)) , 28u16 => Ok (Self :: Typedef (Typedef :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Comment_Eol_Error_Method_Typedef) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { Array (Array) , Bool (Bool) , Dict (Dict) , Enum (Enum) , Float (Float) , Int (Int) , Maybe (Maybe) , Object (Object) , String (String) , Struct (Struct) , Typeref (Typeref) } impl auto_lsp :: core :: ast :: AstNode for Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 37u16 | 16u16 | 38u16 | 33u16 | 18u16 | 17u16 | 35u16 | 20u16 | 19u16 | 31u16 | 39u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Array (node) => node . lower () , Self :: Bool (node) => node . lower () , Self :: Dict (node) => node . lower () , Self :: Enum (node) => node . lower () , Self :: Float (node) => node . lower () , Self :: Int (node) => node . lower () , Self :: Maybe (node) => node . lower () , Self :: Object (node) => node . lower () , Self :: String (node) => node . lower () , Self :: Struct (node) => node . lower () , Self :: Typeref (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Array (node) => node . get_id () , Self :: Bool (node) => node . get_id () , Self :: Dict (node) => node . get_id () , Self :: Enum (node) => node . get_id () , Self :: Float (node) => node . get_id () , Self :: Int (node) => node . get_id () , Self :: Maybe (node) => node . get_id () , Self :: Object (node) => node . get_id () , Self :: String (node) => node . get_id () , Self :: Struct (node) => node . get_id () , Self :: Typeref (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Array (node) => node . get_parent_id () , Self :: Bool (node) => node . get_parent_id () , Self :: Dict (node) => node . get_parent_id () , Self :: Enum (node) => node . get_parent_id () , Self :: Float (node) => node . get_parent_id () , Self :: Int (node) => node . get_parent_id () , Self :: Maybe (node) => node . get_parent_id () , Self :: Object (node) => node . get_parent_id () , Self :: String (node) => node . get_parent_id () , Self :: Struct (node) => node . get_parent_id () , Self :: Typeref (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Array (node) => node . get_range () , Self :: Bool (node) => node . get_range () , Self :: Dict (node) => node . get_range () , Self :: Enum (node) => node . get_range () , Self :: Float (node) => node . get_range () , Self :: Int (node) => node . get_range () , Self :: Maybe (node) => node . get_range () , Self :: Object (node) => node . get_range () , Self :: String (node) => node . get_range () , Self :: Struct (node) => node . get_range () , Self :: Typeref (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 37u16 => Ok (Self :: Array (Array :: try_from ((node , db , builder , id , parent_id)) ?)) , 16u16 => Ok (Self :: Bool (Bool :: try_from ((node , db , builder , id , parent_id)) ?)) , 38u16 => Ok (Self :: Dict (Dict :: try_from ((node , db , builder , id , parent_id)) ?)) , 33u16 => Ok (Self :: Enum (Enum :: try_from ((node , db , builder , id , parent_id)) ?)) , 18u16 => Ok (Self :: Float (Float :: try_from ((node , db , builder , id , parent_id)) ?)) , 17u16 => Ok (Self :: Int (Int :: try_from ((node , db , builder , id , parent_id)) ?)) , 35u16 => Ok (Self :: Maybe (Maybe :: try_from ((node , db , builder , id , parent_id)) ?)) , 20u16 => Ok (Self :: Object (Object :: try_from ((node , db , builder , id , parent_id)) ?)) , 19u16 => Ok (Self :: String (String :: try_from ((node , db , builder , id , parent_id)) ?)) , 31u16 => Ok (Self :: Struct (Struct :: try_from ((node , db , builder , id , parent_id)) ?)) , 39u16 => Ok (Self :: Typeref (Typeref :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Enum_Struct { Enum (Enum) , Struct (Struct) } impl auto_lsp :: core :: ast :: AstNode for Enum_Struct { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 33u16 | 31u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Enum (node) => node . lower () , Self :: Struct (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Enum (node) => node . get_id () , Self :: Struct (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Enum (node) => node . get_parent_id () , Self :: Struct (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Enum (node) => node . get_range () , Self :: Struct (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Enum_Struct { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 33u16 => Ok (Self :: Enum (Enum :: try_from ((node , db , builder , id , parent_id)) ?)) , 31u16 => Ok (Self :: Struct (Struct :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Enum_Struct) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Comment_Eol { Comment (Comment) , Eol (Eol) } impl auto_lsp :: core :: ast :: AstNode for Comment_Eol { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16 | 3u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Comment (node) => node . lower () , Self :: Eol (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Comment (node) => node . get_id () , Self :: Eol (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Comment (node) => node . get_parent_id () , Self :: Eol (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Comment (node) => node . get_range () , Self :: Eol (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment_Eol { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 2u16 => Ok (Self :: Comment (Comment :: try_from ((node , db , builder , id , parent_id)) ?)) , 3u16 => Ok (Self :: Eol (Eol :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Comment_Eol) , }) } } }
[INFO] [stdout]  1 + # ! [allow (clippy :: all)] # ! [allow (unused)] # ! [allow (dead_code)] # ! [allow (non_camel_case_types)] # ! [allow (non_snake_case)] # [derive (Debug , Clone , PartialEq)] pub struct Array { pub Type : auto_lsp :: core :: ast :: AstNodeId < Type > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Array { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 37u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Array { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut Type = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Type , 10u16 > (& mut Type) }) ; Ok (Self { Type : Type ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Type) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Dict { pub Type : auto_lsp :: core :: ast :: AstNodeId < Type > , pub children : auto_lsp :: core :: ast :: AstNodeId < String > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Dict { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 38u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Dict { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut Type = Ok (None) ; ; let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Type , 10u16 > (& mut Type) ? . on_children_id (& mut children) }) ; Ok (Self { Type : Type ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Type) , } }) ? , children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (String) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Enum { pub member : Vec < auto_lsp :: core :: ast :: AstNodeId < FieldName >> , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Enum { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 33u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Enum { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut member = vec ! [] ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_vec_field_id :: < FieldName , 6u16 > (& mut member) ? . on_vec_children_id (& mut children) }) ; Ok (Self { member , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Error { pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordError > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub value : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Error { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 29u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Error { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut keyword = Ok (None) ; ; let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < KeywordError , 5u16 > (& mut keyword) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_field_id :: < Struct , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Interface { pub declaration : auto_lsp :: core :: ast :: AstNodeId < InterfaceDeclaration > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol_Error_Method_Typedef >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Interface { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 24u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Interface { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut declaration = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < InterfaceDeclaration , 2u16 > (& mut declaration) ? . on_vec_children_id (& mut children) }) ; Ok (Self { declaration : declaration ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (declaration) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct InterfaceDeclaration { pub name : auto_lsp :: core :: ast :: AstNodeId < InterfaceName > , pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordInterface > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for InterfaceDeclaration { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 27u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for InterfaceDeclaration { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut name = Ok (None) ; ; let mut keyword = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < InterfaceName , 7u16 > (& mut name) ? . on_field_id :: < KeywordInterface , 5u16 > (& mut keyword) ? . on_vec_children_id (& mut children) }) ; Ok (Self { name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Maybe { pub questionmark : auto_lsp :: core :: ast :: AstNodeId < Questionmark > , pub just : auto_lsp :: core :: ast :: AstNode < Type > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Maybe { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 35u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Maybe { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut questionmark = Ok (None) ; ; let mut just = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Questionmark , 9u16 > (& mut questionmark) ? . on_field_id :: < Type , 4u16 > (& mut just) }) ; Ok (Self { questionmark : questionmark ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (questionmark) , } }) ? , just : just ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (just) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Method { pub input : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub output : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordMethod > , pub arrow : auto_lsp :: core :: ast :: AstNodeId < Arrow > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Method { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 30u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Method { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut input = Ok (None) ; ; let mut output = Ok (None) ; ; let mut keyword = Ok (None) ; ; let mut arrow = Ok (None) ; ; let mut name = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Struct , 3u16 > (& mut input) ? . on_field_id :: < Struct , 8u16 > (& mut output) ? . on_field_id :: < KeywordMethod , 5u16 > (& mut keyword) ? . on_field_id :: < Arrow , 1u16 > (& mut arrow) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_vec_children_id (& mut children) }) ; Ok (Self { input : input ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (input) , } }) ? , output : output ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (output) , } }) ? , keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , arrow : arrow ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (arrow) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Struct { pub member : Vec < auto_lsp :: core :: ast :: AstNodeId < StructField >> , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Struct { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 31u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Struct { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut member = vec ! [] ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_vec_field_id :: < StructField , 6u16 > (& mut member) ? . on_vec_children_id (& mut children) }) ; Ok (Self { member , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct StructField { pub name : auto_lsp :: core :: ast :: AstNodeId < FieldName > , pub value : auto_lsp :: core :: ast :: AstNodeId < Type > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for StructField { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 32u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for StructField { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < FieldName , 7u16 > (& mut name) ? . on_field_id :: < Type , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Type { pub children : auto_lsp :: core :: ast :: AstNodeId < Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Type { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 34u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Type { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_children_id (& mut children) }) ; Ok (Self { children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Typedef { pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordType > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub value : auto_lsp :: core :: ast :: AstNodeId < Enum_Struct > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Typedef { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 28u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Typedef { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut keyword = Ok (None) ; ; let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < KeywordType , 5u16 > (& mut keyword) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_field_id :: < Enum_Struct , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Typeref { pub children : auto_lsp :: core :: ast :: AstNodeId < Name > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Typeref { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 39u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Typeref { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_children_id (& mut children) }) ; Ok (Self { children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Name) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_LeftParen { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_LeftParen { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 9u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_LeftParen { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_RightParen { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_RightParen { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 11u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_RightParen { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_Comma { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_Comma { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 10u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_Comma { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_Colon { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_Colon { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 12u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_Colon { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_LeftBracket { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_LeftBracket { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 14u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_LeftBracket { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_RightBracket { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_RightBracket { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 15u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_RightBracket { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Arrow { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Arrow { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 8u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Arrow { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Bool { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Bool { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 16u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Bool { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Comment { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Comment { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Eol { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Eol { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 3u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Eol { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct FieldName { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for FieldName { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 22u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for FieldName { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Float { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Float { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 18u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Float { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Int { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Int { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 17u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Int { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct InterfaceName { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for InterfaceName { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 23u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for InterfaceName { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordError { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordError { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 6u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordError { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordInterface { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordInterface { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 4u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordInterface { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordMethod { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordMethod { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 7u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordMethod { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordType { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordType { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 5u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordType { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Name { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Name { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 21u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Name { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Object { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Object { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 20u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Object { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Questionmark { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Questionmark { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 13u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Questionmark { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct String { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for String { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 19u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for String { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub enum Comment_Eol_Error_Method_Typedef { Comment (Comment) , Eol (Eol) , Error (Error) , Method (Method) , Typedef (Typedef) } impl auto_lsp :: core :: ast :: AstNode for Comment_Eol_Error_Method_Typedef { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16 | 3u16 | 29u16 | 30u16 | 28u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Comment (node) => node . lower () , Self :: Eol (node) => node . lower () , Self :: Error (node) => node . lower () , Self :: Method (node) => node . lower () , Self :: Typedef (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Comment (node) => node . get_id () , Self :: Eol (node) => node . get_id () , Self :: Error (node) => node . get_id () , Self :: Method (node) => node . get_id () , Self :: Typedef (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Comment (node) => node . get_parent_id () , Self :: Eol (node) => node . get_parent_id () , Self :: Error (node) => node . get_parent_id () , Self :: Method (node) => node . get_parent_id () , Self :: Typedef (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Comment (node) => node . get_range () , Self :: Eol (node) => node . get_range () , Self :: Error (node) => node . get_range () , Self :: Method (node) => node . get_range () , Self :: Typedef (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment_Eol_Error_Method_Typedef { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 2u16 => Ok (Self :: Comment (Comment :: try_from ((node , db , builder , id , parent_id)) ?)) , 3u16 => Ok (Self :: Eol (Eol :: try_from ((node , db , builder , id , parent_id)) ?)) , 29u16 => Ok (Self :: Error (Error :: try_from ((node , db , builder , id , parent_id)) ?)) , 30u16 => Ok (Self :: Method (Method :: try_from ((node , db , builder , id , parent_id)) ?)) , 28u16 => Ok (Self :: Typedef (Typedef :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Comment_Eol_Error_Method_Typedef) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { Array (Array) , Bool (Bool) , Dict (Dict) , Enum (Enum) , Float (Float) , Int (Int) , Maybe (Maybe) , Object (Object) , String (String) , Struct (Struct) , Typeref (Typeref) } impl auto_lsp :: core :: ast :: AstNode for Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 37u16 | 16u16 | 38u16 | 33u16 | 18u16 | 17u16 | 35u16 | 20u16 | 19u16 | 31u16 | 39u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Array (node) => node . lower () , Self :: Bool (node) => node . lower () , Self :: Dict (node) => node . lower () , Self :: Enum (node) => node . lower () , Self :: Float (node) => node . lower () , Self :: Int (node) => node . lower () , Self :: Maybe (node) => node . lower () , Self :: Object (node) => node . lower () , Self :: String (node) => node . lower () , Self :: Struct (node) => node . lower () , Self :: Typeref (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Array (node) => node . get_id () , Self :: Bool (node) => node . get_id () , Self :: Dict (node) => node . get_id () , Self :: Enum (node) => node . get_id () , Self :: Float (node) => node . get_id () , Self :: Int (node) => node . get_id () , Self :: Maybe (node) => node . get_id () , Self :: Object (node) => node . get_id () , Self :: String (node) => node . get_id () , Self :: Struct (node) => node . get_id () , Self :: Typeref (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Array (node) => node . get_parent_id () , Self :: Bool (node) => node . get_parent_id () , Self :: Dict (node) => node . get_parent_id () , Self :: Enum (node) => node . get_parent_id () , Self :: Float (node) => node . get_parent_id () , Self :: Int (node) => node . get_parent_id () , Self :: Maybe (node) => node . get_parent_id () , Self :: Object (node) => node . get_parent_id () , Self :: String (node) => node . get_parent_id () , Self :: Struct (node) => node . get_parent_id () , Self :: Typeref (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Array (node) => node . get_range () , Self :: Bool (node) => node . get_range () , Self :: Dict (node) => node . get_range () , Self :: Enum (node) => node . get_range () , Self :: Float (node) => node . get_range () , Self :: Int (node) => node . get_range () , Self :: Maybe (node) => node . get_range () , Self :: Object (node) => node . get_range () , Self :: String (node) => node . get_range () , Self :: Struct (node) => node . get_range () , Self :: Typeref (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 37u16 => Ok (Self :: Array (Array :: try_from ((node , db , builder , id , parent_id)) ?)) , 16u16 => Ok (Self :: Bool (Bool :: try_from ((node , db , builder , id , parent_id)) ?)) , 38u16 => Ok (Self :: Dict (Dict :: try_from ((node , db , builder , id , parent_id)) ?)) , 33u16 => Ok (Self :: Enum (Enum :: try_from ((node , db , builder , id , parent_id)) ?)) , 18u16 => Ok (Self :: Float (Float :: try_from ((node , db , builder , id , parent_id)) ?)) , 17u16 => Ok (Self :: Int (Int :: try_from ((node , db , builder , id , parent_id)) ?)) , 35u16 => Ok (Self :: Maybe (Maybe :: try_from ((node , db , builder , id , parent_id)) ?)) , 20u16 => Ok (Self :: Object (Object :: try_from ((node , db , builder , id , parent_id)) ?)) , 19u16 => Ok (Self :: String (String :: try_from ((node , db , builder , id , parent_id)) ?)) , 31u16 => Ok (Self :: Struct (Struct :: try_from ((node , db , builder , id , parent_id)) ?)) , 39u16 => Ok (Self :: Typeref (Typeref :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Enum_Struct { Enum (Enum) , Struct (Struct) } impl auto_lsp :: core :: ast :: AstNode for Enum_Struct { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 33u16 | 31u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Enum (node) => node . lower () , Self :: Struct (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Enum (node) => node . get_id () , Self :: Struct (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Enum (node) => node . get_parent_id () , Self :: Struct (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Enum (node) => node . get_range () , Self :: Struct (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Enum_Struct { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 33u16 => Ok (Self :: Enum (Enum :: try_from ((node , db , builder , id , parent_id)) ?)) , 31u16 => Ok (Self :: Struct (Struct :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Enum_Struct) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Comment_Eol { Comment (Comment) , Eol (Eol) } impl auto_lsp :: core :: ast :: AstNode for Comment_Eol { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16 | 3u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Comment (node) => node . lower () , Self :: Eol (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Comment (node) => node . get_id () , Self :: Eol (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Comment (node) => node . get_parent_id () , Self :: Eol (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Comment (node) => node . get_range () , Self :: Eol (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment_Eol { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 2u16 => Ok (Self :: Comment (Comment :: try_from ((node , db , builder , id , parent_id)) ?)) , 3u16 => Ok (Self :: Eol (Eol :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Comment_Eol) , }) } } }
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `AstNodeId` in module `auto_lsp::core::ast`
[INFO] [stdout]   --> src/ast.rs:1:11902
[INFO] [stdout]    |
[INFO] [stdout]  1 | ... pub struct Method { pub input : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub output : auto_lsp :: core :: ast :: AstNod...
[INFO] [stdout]    |                                                                ^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]   ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/auto-lsp-core-0.7.0/src/ast/node.rs:26:1
[INFO] [stdout]    |
[INFO] [stdout] 26 | pub trait AstNode: std::fmt::Debug + Send + Sync + DowncastSync {
[INFO] [stdout]    | --------------------------------------------------------------- similarly named trait `AstNode` defined here
[INFO] [stdout]    |
[INFO] [stdout] help: a trait with a similar name exists
[INFO] [stdout]    |
[INFO] [stdout]  1 - # ! [allow (clippy :: all)] # ! [allow (unused)] # ! [allow (dead_code)] # ! [allow (non_camel_case_types)] # ! [allow (non_snake_case)] # [derive (Debug , Clone , PartialEq)] pub struct Array { pub Type : auto_lsp :: core :: ast :: AstNodeId < Type > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Array { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 37u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Array { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut Type = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Type , 10u16 > (& mut Type) }) ; Ok (Self { Type : Type ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Type) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Dict { pub Type : auto_lsp :: core :: ast :: AstNodeId < Type > , pub children : auto_lsp :: core :: ast :: AstNodeId < String > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Dict { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 38u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Dict { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut Type = Ok (None) ; ; let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Type , 10u16 > (& mut Type) ? . on_children_id (& mut children) }) ; Ok (Self { Type : Type ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Type) , } }) ? , children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (String) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Enum { pub member : Vec < auto_lsp :: core :: ast :: AstNodeId < FieldName >> , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Enum { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 33u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Enum { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut member = vec ! [] ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_vec_field_id :: < FieldName , 6u16 > (& mut member) ? . on_vec_children_id (& mut children) }) ; Ok (Self { member , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Error { pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordError > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub value : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Error { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 29u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Error { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut keyword = Ok (None) ; ; let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < KeywordError , 5u16 > (& mut keyword) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_field_id :: < Struct , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Interface { pub declaration : auto_lsp :: core :: ast :: AstNodeId < InterfaceDeclaration > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol_Error_Method_Typedef >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Interface { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 24u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Interface { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut declaration = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < InterfaceDeclaration , 2u16 > (& mut declaration) ? . on_vec_children_id (& mut children) }) ; Ok (Self { declaration : declaration ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (declaration) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct InterfaceDeclaration { pub name : auto_lsp :: core :: ast :: AstNodeId < InterfaceName > , pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordInterface > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for InterfaceDeclaration { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 27u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for InterfaceDeclaration { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut name = Ok (None) ; ; let mut keyword = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < InterfaceName , 7u16 > (& mut name) ? . on_field_id :: < KeywordInterface , 5u16 > (& mut keyword) ? . on_vec_children_id (& mut children) }) ; Ok (Self { name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Maybe { pub questionmark : auto_lsp :: core :: ast :: AstNodeId < Questionmark > , pub just : auto_lsp :: core :: ast :: AstNodeId < Type > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Maybe { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 35u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Maybe { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut questionmark = Ok (None) ; ; let mut just = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Questionmark , 9u16 > (& mut questionmark) ? . on_field_id :: < Type , 4u16 > (& mut just) }) ; Ok (Self { questionmark : questionmark ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (questionmark) , } }) ? , just : just ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (just) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Method { pub input : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub output : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordMethod > , pub arrow : auto_lsp :: core :: ast :: AstNodeId < Arrow > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Method { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 30u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Method { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut input = Ok (None) ; ; let mut output = Ok (None) ; ; let mut keyword = Ok (None) ; ; let mut arrow = Ok (None) ; ; let mut name = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Struct , 3u16 > (& mut input) ? . on_field_id :: < Struct , 8u16 > (& mut output) ? . on_field_id :: < KeywordMethod , 5u16 > (& mut keyword) ? . on_field_id :: < Arrow , 1u16 > (& mut arrow) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_vec_children_id (& mut children) }) ; Ok (Self { input : input ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (input) , } }) ? , output : output ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (output) , } }) ? , keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , arrow : arrow ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (arrow) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Struct { pub member : Vec < auto_lsp :: core :: ast :: AstNodeId < StructField >> , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Struct { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 31u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Struct { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut member = vec ! [] ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_vec_field_id :: < StructField , 6u16 > (& mut member) ? . on_vec_children_id (& mut children) }) ; Ok (Self { member , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct StructField { pub name : auto_lsp :: core :: ast :: AstNodeId < FieldName > , pub value : auto_lsp :: core :: ast :: AstNodeId < Type > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for StructField { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 32u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for StructField { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < FieldName , 7u16 > (& mut name) ? . on_field_id :: < Type , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Type { pub children : auto_lsp :: core :: ast :: AstNodeId < Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Type { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 34u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Type { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_children_id (& mut children) }) ; Ok (Self { children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Typedef { pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordType > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub value : auto_lsp :: core :: ast :: AstNodeId < Enum_Struct > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Typedef { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 28u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Typedef { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut keyword = Ok (None) ; ; let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < KeywordType , 5u16 > (& mut keyword) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_field_id :: < Enum_Struct , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Typeref { pub children : auto_lsp :: core :: ast :: AstNodeId < Name > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Typeref { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 39u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Typeref { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_children_id (& mut children) }) ; Ok (Self { children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Name) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_LeftParen { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_LeftParen { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 9u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_LeftParen { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_RightParen { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_RightParen { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 11u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_RightParen { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_Comma { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_Comma { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 10u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_Comma { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_Colon { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_Colon { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 12u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_Colon { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_LeftBracket { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_LeftBracket { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 14u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_LeftBracket { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_RightBracket { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_RightBracket { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 15u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_RightBracket { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Arrow { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Arrow { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 8u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Arrow { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Bool { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Bool { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 16u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Bool { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Comment { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Comment { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Eol { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Eol { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 3u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Eol { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct FieldName { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for FieldName { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 22u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for FieldName { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Float { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Float { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 18u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Float { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Int { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Int { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 17u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Int { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct InterfaceName { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for InterfaceName { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 23u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for InterfaceName { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordError { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordError { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 6u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordError { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordInterface { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordInterface { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 4u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordInterface { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordMethod { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordMethod { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 7u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordMethod { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordType { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordType { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 5u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordType { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Name { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Name { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 21u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Name { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Object { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Object { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 20u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Object { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Questionmark { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Questionmark { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 13u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Questionmark { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct String { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for String { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 19u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for String { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub enum Comment_Eol_Error_Method_Typedef { Comment (Comment) , Eol (Eol) , Error (Error) , Method (Method) , Typedef (Typedef) } impl auto_lsp :: core :: ast :: AstNode for Comment_Eol_Error_Method_Typedef { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16 | 3u16 | 29u16 | 30u16 | 28u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Comment (node) => node . lower () , Self :: Eol (node) => node . lower () , Self :: Error (node) => node . lower () , Self :: Method (node) => node . lower () , Self :: Typedef (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Comment (node) => node . get_id () , Self :: Eol (node) => node . get_id () , Self :: Error (node) => node . get_id () , Self :: Method (node) => node . get_id () , Self :: Typedef (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Comment (node) => node . get_parent_id () , Self :: Eol (node) => node . get_parent_id () , Self :: Error (node) => node . get_parent_id () , Self :: Method (node) => node . get_parent_id () , Self :: Typedef (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Comment (node) => node . get_range () , Self :: Eol (node) => node . get_range () , Self :: Error (node) => node . get_range () , Self :: Method (node) => node . get_range () , Self :: Typedef (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment_Eol_Error_Method_Typedef { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 2u16 => Ok (Self :: Comment (Comment :: try_from ((node , db , builder , id , parent_id)) ?)) , 3u16 => Ok (Self :: Eol (Eol :: try_from ((node , db , builder , id , parent_id)) ?)) , 29u16 => Ok (Self :: Error (Error :: try_from ((node , db , builder , id , parent_id)) ?)) , 30u16 => Ok (Self :: Method (Method :: try_from ((node , db , builder , id , parent_id)) ?)) , 28u16 => Ok (Self :: Typedef (Typedef :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Comment_Eol_Error_Method_Typedef) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { Array (Array) , Bool (Bool) , Dict (Dict) , Enum (Enum) , Float (Float) , Int (Int) , Maybe (Maybe) , Object (Object) , String (String) , Struct (Struct) , Typeref (Typeref) } impl auto_lsp :: core :: ast :: AstNode for Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 37u16 | 16u16 | 38u16 | 33u16 | 18u16 | 17u16 | 35u16 | 20u16 | 19u16 | 31u16 | 39u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Array (node) => node . lower () , Self :: Bool (node) => node . lower () , Self :: Dict (node) => node . lower () , Self :: Enum (node) => node . lower () , Self :: Float (node) => node . lower () , Self :: Int (node) => node . lower () , Self :: Maybe (node) => node . lower () , Self :: Object (node) => node . lower () , Self :: String (node) => node . lower () , Self :: Struct (node) => node . lower () , Self :: Typeref (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Array (node) => node . get_id () , Self :: Bool (node) => node . get_id () , Self :: Dict (node) => node . get_id () , Self :: Enum (node) => node . get_id () , Self :: Float (node) => node . get_id () , Self :: Int (node) => node . get_id () , Self :: Maybe (node) => node . get_id () , Self :: Object (node) => node . get_id () , Self :: String (node) => node . get_id () , Self :: Struct (node) => node . get_id () , Self :: Typeref (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Array (node) => node . get_parent_id () , Self :: Bool (node) => node . get_parent_id () , Self :: Dict (node) => node . get_parent_id () , Self :: Enum (node) => node . get_parent_id () , Self :: Float (node) => node . get_parent_id () , Self :: Int (node) => node . get_parent_id () , Self :: Maybe (node) => node . get_parent_id () , Self :: Object (node) => node . get_parent_id () , Self :: String (node) => node . get_parent_id () , Self :: Struct (node) => node . get_parent_id () , Self :: Typeref (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Array (node) => node . get_range () , Self :: Bool (node) => node . get_range () , Self :: Dict (node) => node . get_range () , Self :: Enum (node) => node . get_range () , Self :: Float (node) => node . get_range () , Self :: Int (node) => node . get_range () , Self :: Maybe (node) => node . get_range () , Self :: Object (node) => node . get_range () , Self :: String (node) => node . get_range () , Self :: Struct (node) => node . get_range () , Self :: Typeref (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 37u16 => Ok (Self :: Array (Array :: try_from ((node , db , builder , id , parent_id)) ?)) , 16u16 => Ok (Self :: Bool (Bool :: try_from ((node , db , builder , id , parent_id)) ?)) , 38u16 => Ok (Self :: Dict (Dict :: try_from ((node , db , builder , id , parent_id)) ?)) , 33u16 => Ok (Self :: Enum (Enum :: try_from ((node , db , builder , id , parent_id)) ?)) , 18u16 => Ok (Self :: Float (Float :: try_from ((node , db , builder , id , parent_id)) ?)) , 17u16 => Ok (Self :: Int (Int :: try_from ((node , db , builder , id , parent_id)) ?)) , 35u16 => Ok (Self :: Maybe (Maybe :: try_from ((node , db , builder , id , parent_id)) ?)) , 20u16 => Ok (Self :: Object (Object :: try_from ((node , db , builder , id , parent_id)) ?)) , 19u16 => Ok (Self :: String (String :: try_from ((node , db , builder , id , parent_id)) ?)) , 31u16 => Ok (Self :: Struct (Struct :: try_from ((node , db , builder , id , parent_id)) ?)) , 39u16 => Ok (Self :: Typeref (Typeref :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Enum_Struct { Enum (Enum) , Struct (Struct) } impl auto_lsp :: core :: ast :: AstNode for Enum_Struct { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 33u16 | 31u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Enum (node) => node . lower () , Self :: Struct (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Enum (node) => node . get_id () , Self :: Struct (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Enum (node) => node . get_parent_id () , Self :: Struct (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Enum (node) => node . get_range () , Self :: Struct (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Enum_Struct { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 33u16 => Ok (Self :: Enum (Enum :: try_from ((node , db , builder , id , parent_id)) ?)) , 31u16 => Ok (Self :: Struct (Struct :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Enum_Struct) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Comment_Eol { Comment (Comment) , Eol (Eol) } impl auto_lsp :: core :: ast :: AstNode for Comment_Eol { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16 | 3u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Comment (node) => node . lower () , Self :: Eol (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Comment (node) => node . get_id () , Self :: Eol (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Comment (node) => node . get_parent_id () , Self :: Eol (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Comment (node) => node . get_range () , Self :: Eol (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment_Eol { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 2u16 => Ok (Self :: Comment (Comment :: try_from ((node , db , builder , id , parent_id)) ?)) , 3u16 => Ok (Self :: Eol (Eol :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Comment_Eol) , }) } } }
[INFO] [stdout]  1 + # ! [allow (clippy :: all)] # ! [allow (unused)] # ! [allow (dead_code)] # ! [allow (non_camel_case_types)] # ! [allow (non_snake_case)] # [derive (Debug , Clone , PartialEq)] pub struct Array { pub Type : auto_lsp :: core :: ast :: AstNodeId < Type > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Array { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 37u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Array { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut Type = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Type , 10u16 > (& mut Type) }) ; Ok (Self { Type : Type ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Type) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Dict { pub Type : auto_lsp :: core :: ast :: AstNodeId < Type > , pub children : auto_lsp :: core :: ast :: AstNodeId < String > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Dict { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 38u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Dict { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut Type = Ok (None) ; ; let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Type , 10u16 > (& mut Type) ? . on_children_id (& mut children) }) ; Ok (Self { Type : Type ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Type) , } }) ? , children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (String) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Enum { pub member : Vec < auto_lsp :: core :: ast :: AstNodeId < FieldName >> , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Enum { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 33u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Enum { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut member = vec ! [] ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_vec_field_id :: < FieldName , 6u16 > (& mut member) ? . on_vec_children_id (& mut children) }) ; Ok (Self { member , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Error { pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordError > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub value : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Error { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 29u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Error { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut keyword = Ok (None) ; ; let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < KeywordError , 5u16 > (& mut keyword) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_field_id :: < Struct , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Interface { pub declaration : auto_lsp :: core :: ast :: AstNodeId < InterfaceDeclaration > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol_Error_Method_Typedef >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Interface { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 24u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Interface { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut declaration = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < InterfaceDeclaration , 2u16 > (& mut declaration) ? . on_vec_children_id (& mut children) }) ; Ok (Self { declaration : declaration ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (declaration) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct InterfaceDeclaration { pub name : auto_lsp :: core :: ast :: AstNodeId < InterfaceName > , pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordInterface > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for InterfaceDeclaration { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 27u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for InterfaceDeclaration { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut name = Ok (None) ; ; let mut keyword = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < InterfaceName , 7u16 > (& mut name) ? . on_field_id :: < KeywordInterface , 5u16 > (& mut keyword) ? . on_vec_children_id (& mut children) }) ; Ok (Self { name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Maybe { pub questionmark : auto_lsp :: core :: ast :: AstNodeId < Questionmark > , pub just : auto_lsp :: core :: ast :: AstNodeId < Type > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Maybe { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 35u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Maybe { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut questionmark = Ok (None) ; ; let mut just = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Questionmark , 9u16 > (& mut questionmark) ? . on_field_id :: < Type , 4u16 > (& mut just) }) ; Ok (Self { questionmark : questionmark ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (questionmark) , } }) ? , just : just ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (just) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Method { pub input : auto_lsp :: core :: ast :: AstNode < Struct > , pub output : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordMethod > , pub arrow : auto_lsp :: core :: ast :: AstNodeId < Arrow > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Method { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 30u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Method { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut input = Ok (None) ; ; let mut output = Ok (None) ; ; let mut keyword = Ok (None) ; ; let mut arrow = Ok (None) ; ; let mut name = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Struct , 3u16 > (& mut input) ? . on_field_id :: < Struct , 8u16 > (& mut output) ? . on_field_id :: < KeywordMethod , 5u16 > (& mut keyword) ? . on_field_id :: < Arrow , 1u16 > (& mut arrow) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_vec_children_id (& mut children) }) ; Ok (Self { input : input ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (input) , } }) ? , output : output ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (output) , } }) ? , keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , arrow : arrow ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (arrow) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Struct { pub member : Vec < auto_lsp :: core :: ast :: AstNodeId < StructField >> , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Struct { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 31u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Struct { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut member = vec ! [] ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_vec_field_id :: < StructField , 6u16 > (& mut member) ? . on_vec_children_id (& mut children) }) ; Ok (Self { member , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct StructField { pub name : auto_lsp :: core :: ast :: AstNodeId < FieldName > , pub value : auto_lsp :: core :: ast :: AstNodeId < Type > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for StructField { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 32u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for StructField { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < FieldName , 7u16 > (& mut name) ? . on_field_id :: < Type , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Type { pub children : auto_lsp :: core :: ast :: AstNodeId < Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Type { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 34u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Type { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_children_id (& mut children) }) ; Ok (Self { children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Typedef { pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordType > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub value : auto_lsp :: core :: ast :: AstNodeId < Enum_Struct > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Typedef { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 28u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Typedef { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut keyword = Ok (None) ; ; let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < KeywordType , 5u16 > (& mut keyword) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_field_id :: < Enum_Struct , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Typeref { pub children : auto_lsp :: core :: ast :: AstNodeId < Name > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Typeref { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 39u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Typeref { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_children_id (& mut children) }) ; Ok (Self { children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Name) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_LeftParen { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_LeftParen { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 9u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_LeftParen { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_RightParen { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_RightParen { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 11u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_RightParen { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_Comma { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_Comma { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 10u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_Comma { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_Colon { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_Colon { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 12u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_Colon { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_LeftBracket { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_LeftBracket { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 14u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_LeftBracket { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_RightBracket { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_RightBracket { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 15u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_RightBracket { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Arrow { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Arrow { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 8u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Arrow { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Bool { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Bool { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 16u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Bool { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Comment { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Comment { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Eol { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Eol { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 3u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Eol { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct FieldName { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for FieldName { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 22u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for FieldName { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Float { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Float { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 18u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Float { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Int { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Int { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 17u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Int { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct InterfaceName { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for InterfaceName { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 23u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for InterfaceName { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordError { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordError { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 6u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordError { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordInterface { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordInterface { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 4u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordInterface { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordMethod { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordMethod { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 7u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordMethod { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordType { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordType { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 5u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordType { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Name { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Name { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 21u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Name { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Object { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Object { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 20u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Object { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Questionmark { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Questionmark { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 13u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Questionmark { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct String { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for String { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 19u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for String { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub enum Comment_Eol_Error_Method_Typedef { Comment (Comment) , Eol (Eol) , Error (Error) , Method (Method) , Typedef (Typedef) } impl auto_lsp :: core :: ast :: AstNode for Comment_Eol_Error_Method_Typedef { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16 | 3u16 | 29u16 | 30u16 | 28u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Comment (node) => node . lower () , Self :: Eol (node) => node . lower () , Self :: Error (node) => node . lower () , Self :: Method (node) => node . lower () , Self :: Typedef (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Comment (node) => node . get_id () , Self :: Eol (node) => node . get_id () , Self :: Error (node) => node . get_id () , Self :: Method (node) => node . get_id () , Self :: Typedef (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Comment (node) => node . get_parent_id () , Self :: Eol (node) => node . get_parent_id () , Self :: Error (node) => node . get_parent_id () , Self :: Method (node) => node . get_parent_id () , Self :: Typedef (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Comment (node) => node . get_range () , Self :: Eol (node) => node . get_range () , Self :: Error (node) => node . get_range () , Self :: Method (node) => node . get_range () , Self :: Typedef (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment_Eol_Error_Method_Typedef { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 2u16 => Ok (Self :: Comment (Comment :: try_from ((node , db , builder , id , parent_id)) ?)) , 3u16 => Ok (Self :: Eol (Eol :: try_from ((node , db , builder , id , parent_id)) ?)) , 29u16 => Ok (Self :: Error (Error :: try_from ((node , db , builder , id , parent_id)) ?)) , 30u16 => Ok (Self :: Method (Method :: try_from ((node , db , builder , id , parent_id)) ?)) , 28u16 => Ok (Self :: Typedef (Typedef :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Comment_Eol_Error_Method_Typedef) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { Array (Array) , Bool (Bool) , Dict (Dict) , Enum (Enum) , Float (Float) , Int (Int) , Maybe (Maybe) , Object (Object) , String (String) , Struct (Struct) , Typeref (Typeref) } impl auto_lsp :: core :: ast :: AstNode for Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 37u16 | 16u16 | 38u16 | 33u16 | 18u16 | 17u16 | 35u16 | 20u16 | 19u16 | 31u16 | 39u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Array (node) => node . lower () , Self :: Bool (node) => node . lower () , Self :: Dict (node) => node . lower () , Self :: Enum (node) => node . lower () , Self :: Float (node) => node . lower () , Self :: Int (node) => node . lower () , Self :: Maybe (node) => node . lower () , Self :: Object (node) => node . lower () , Self :: String (node) => node . lower () , Self :: Struct (node) => node . lower () , Self :: Typeref (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Array (node) => node . get_id () , Self :: Bool (node) => node . get_id () , Self :: Dict (node) => node . get_id () , Self :: Enum (node) => node . get_id () , Self :: Float (node) => node . get_id () , Self :: Int (node) => node . get_id () , Self :: Maybe (node) => node . get_id () , Self :: Object (node) => node . get_id () , Self :: String (node) => node . get_id () , Self :: Struct (node) => node . get_id () , Self :: Typeref (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Array (node) => node . get_parent_id () , Self :: Bool (node) => node . get_parent_id () , Self :: Dict (node) => node . get_parent_id () , Self :: Enum (node) => node . get_parent_id () , Self :: Float (node) => node . get_parent_id () , Self :: Int (node) => node . get_parent_id () , Self :: Maybe (node) => node . get_parent_id () , Self :: Object (node) => node . get_parent_id () , Self :: String (node) => node . get_parent_id () , Self :: Struct (node) => node . get_parent_id () , Self :: Typeref (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Array (node) => node . get_range () , Self :: Bool (node) => node . get_range () , Self :: Dict (node) => node . get_range () , Self :: Enum (node) => node . get_range () , Self :: Float (node) => node . get_range () , Self :: Int (node) => node . get_range () , Self :: Maybe (node) => node . get_range () , Self :: Object (node) => node . get_range () , Self :: String (node) => node . get_range () , Self :: Struct (node) => node . get_range () , Self :: Typeref (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 37u16 => Ok (Self :: Array (Array :: try_from ((node , db , builder , id , parent_id)) ?)) , 16u16 => Ok (Self :: Bool (Bool :: try_from ((node , db , builder , id , parent_id)) ?)) , 38u16 => Ok (Self :: Dict (Dict :: try_from ((node , db , builder , id , parent_id)) ?)) , 33u16 => Ok (Self :: Enum (Enum :: try_from ((node , db , builder , id , parent_id)) ?)) , 18u16 => Ok (Self :: Float (Float :: try_from ((node , db , builder , id , parent_id)) ?)) , 17u16 => Ok (Self :: Int (Int :: try_from ((node , db , builder , id , parent_id)) ?)) , 35u16 => Ok (Self :: Maybe (Maybe :: try_from ((node , db , builder , id , parent_id)) ?)) , 20u16 => Ok (Self :: Object (Object :: try_from ((node , db , builder , id , parent_id)) ?)) , 19u16 => Ok (Self :: String (String :: try_from ((node , db , builder , id , parent_id)) ?)) , 31u16 => Ok (Self :: Struct (Struct :: try_from ((node , db , builder , id , parent_id)) ?)) , 39u16 => Ok (Self :: Typeref (Typeref :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Enum_Struct { Enum (Enum) , Struct (Struct) } impl auto_lsp :: core :: ast :: AstNode for Enum_Struct { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 33u16 | 31u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Enum (node) => node . lower () , Self :: Struct (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Enum (node) => node . get_id () , Self :: Struct (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Enum (node) => node . get_parent_id () , Self :: Struct (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Enum (node) => node . get_range () , Self :: Struct (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Enum_Struct { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 33u16 => Ok (Self :: Enum (Enum :: try_from ((node , db , builder , id , parent_id)) ?)) , 31u16 => Ok (Self :: Struct (Struct :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Enum_Struct) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Comment_Eol { Comment (Comment) , Eol (Eol) } impl auto_lsp :: core :: ast :: AstNode for Comment_Eol { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16 | 3u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Comment (node) => node . lower () , Self :: Eol (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Comment (node) => node . get_id () , Self :: Eol (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Comment (node) => node . get_parent_id () , Self :: Eol (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Comment (node) => node . get_range () , Self :: Eol (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment_Eol { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 2u16 => Ok (Self :: Comment (Comment :: try_from ((node , db , builder , id , parent_id)) ?)) , 3u16 => Ok (Self :: Eol (Eol :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Comment_Eol) , }) } } }
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `AstNodeId` in module `auto_lsp::core::ast`
[INFO] [stdout]   --> src/ast.rs:1:11965
[INFO] [stdout]    |
[INFO] [stdout]  1 | ...NodeId < Struct > , pub output : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub keyword : auto_lsp :: core :: ast :: AstNo...
[INFO] [stdout]    |                                                                ^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]   ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/auto-lsp-core-0.7.0/src/ast/node.rs:26:1
[INFO] [stdout]    |
[INFO] [stdout] 26 | pub trait AstNode: std::fmt::Debug + Send + Sync + DowncastSync {
[INFO] [stdout]    | --------------------------------------------------------------- similarly named trait `AstNode` defined here
[INFO] [stdout]    |
[INFO] [stdout] help: a trait with a similar name exists
[INFO] [stdout]    |
[INFO] [stdout]  1 - # ! [allow (clippy :: all)] # ! [allow (unused)] # ! [allow (dead_code)] # ! [allow (non_camel_case_types)] # ! [allow (non_snake_case)] # [derive (Debug , Clone , PartialEq)] pub struct Array { pub Type : auto_lsp :: core :: ast :: AstNodeId < Type > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Array { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 37u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Array { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut Type = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Type , 10u16 > (& mut Type) }) ; Ok (Self { Type : Type ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Type) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Dict { pub Type : auto_lsp :: core :: ast :: AstNodeId < Type > , pub children : auto_lsp :: core :: ast :: AstNodeId < String > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Dict { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 38u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Dict { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut Type = Ok (None) ; ; let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Type , 10u16 > (& mut Type) ? . on_children_id (& mut children) }) ; Ok (Self { Type : Type ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Type) , } }) ? , children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (String) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Enum { pub member : Vec < auto_lsp :: core :: ast :: AstNodeId < FieldName >> , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Enum { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 33u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Enum { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut member = vec ! [] ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_vec_field_id :: < FieldName , 6u16 > (& mut member) ? . on_vec_children_id (& mut children) }) ; Ok (Self { member , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Error { pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordError > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub value : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Error { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 29u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Error { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut keyword = Ok (None) ; ; let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < KeywordError , 5u16 > (& mut keyword) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_field_id :: < Struct , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Interface { pub declaration : auto_lsp :: core :: ast :: AstNodeId < InterfaceDeclaration > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol_Error_Method_Typedef >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Interface { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 24u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Interface { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut declaration = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < InterfaceDeclaration , 2u16 > (& mut declaration) ? . on_vec_children_id (& mut children) }) ; Ok (Self { declaration : declaration ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (declaration) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct InterfaceDeclaration { pub name : auto_lsp :: core :: ast :: AstNodeId < InterfaceName > , pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordInterface > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for InterfaceDeclaration { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 27u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for InterfaceDeclaration { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut name = Ok (None) ; ; let mut keyword = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < InterfaceName , 7u16 > (& mut name) ? . on_field_id :: < KeywordInterface , 5u16 > (& mut keyword) ? . on_vec_children_id (& mut children) }) ; Ok (Self { name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Maybe { pub questionmark : auto_lsp :: core :: ast :: AstNodeId < Questionmark > , pub just : auto_lsp :: core :: ast :: AstNodeId < Type > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Maybe { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 35u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Maybe { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut questionmark = Ok (None) ; ; let mut just = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Questionmark , 9u16 > (& mut questionmark) ? . on_field_id :: < Type , 4u16 > (& mut just) }) ; Ok (Self { questionmark : questionmark ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (questionmark) , } }) ? , just : just ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (just) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Method { pub input : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub output : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordMethod > , pub arrow : auto_lsp :: core :: ast :: AstNodeId < Arrow > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Method { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 30u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Method { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut input = Ok (None) ; ; let mut output = Ok (None) ; ; let mut keyword = Ok (None) ; ; let mut arrow = Ok (None) ; ; let mut name = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Struct , 3u16 > (& mut input) ? . on_field_id :: < Struct , 8u16 > (& mut output) ? . on_field_id :: < KeywordMethod , 5u16 > (& mut keyword) ? . on_field_id :: < Arrow , 1u16 > (& mut arrow) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_vec_children_id (& mut children) }) ; Ok (Self { input : input ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (input) , } }) ? , output : output ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (output) , } }) ? , keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , arrow : arrow ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (arrow) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Struct { pub member : Vec < auto_lsp :: core :: ast :: AstNodeId < StructField >> , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Struct { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 31u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Struct { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut member = vec ! [] ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_vec_field_id :: < StructField , 6u16 > (& mut member) ? . on_vec_children_id (& mut children) }) ; Ok (Self { member , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct StructField { pub name : auto_lsp :: core :: ast :: AstNodeId < FieldName > , pub value : auto_lsp :: core :: ast :: AstNodeId < Type > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for StructField { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 32u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for StructField { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < FieldName , 7u16 > (& mut name) ? . on_field_id :: < Type , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Type { pub children : auto_lsp :: core :: ast :: AstNodeId < Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Type { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 34u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Type { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_children_id (& mut children) }) ; Ok (Self { children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Typedef { pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordType > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub value : auto_lsp :: core :: ast :: AstNodeId < Enum_Struct > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Typedef { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 28u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Typedef { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut keyword = Ok (None) ; ; let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < KeywordType , 5u16 > (& mut keyword) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_field_id :: < Enum_Struct , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Typeref { pub children : auto_lsp :: core :: ast :: AstNodeId < Name > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Typeref { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 39u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Typeref { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_children_id (& mut children) }) ; Ok (Self { children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Name) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_LeftParen { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_LeftParen { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 9u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_LeftParen { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_RightParen { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_RightParen { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 11u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_RightParen { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_Comma { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_Comma { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 10u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_Comma { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_Colon { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_Colon { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 12u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_Colon { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_LeftBracket { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_LeftBracket { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 14u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_LeftBracket { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_RightBracket { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_RightBracket { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 15u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_RightBracket { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Arrow { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Arrow { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 8u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Arrow { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Bool { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Bool { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 16u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Bool { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Comment { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Comment { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Eol { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Eol { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 3u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Eol { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct FieldName { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for FieldName { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 22u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for FieldName { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Float { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Float { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 18u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Float { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Int { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Int { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 17u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Int { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct InterfaceName { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for InterfaceName { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 23u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for InterfaceName { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordError { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordError { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 6u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordError { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordInterface { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordInterface { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 4u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordInterface { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordMethod { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordMethod { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 7u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordMethod { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordType { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordType { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 5u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordType { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Name { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Name { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 21u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Name { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Object { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Object { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 20u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Object { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Questionmark { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Questionmark { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 13u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Questionmark { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct String { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for String { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 19u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for String { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub enum Comment_Eol_Error_Method_Typedef { Comment (Comment) , Eol (Eol) , Error (Error) , Method (Method) , Typedef (Typedef) } impl auto_lsp :: core :: ast :: AstNode for Comment_Eol_Error_Method_Typedef { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16 | 3u16 | 29u16 | 30u16 | 28u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Comment (node) => node . lower () , Self :: Eol (node) => node . lower () , Self :: Error (node) => node . lower () , Self :: Method (node) => node . lower () , Self :: Typedef (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Comment (node) => node . get_id () , Self :: Eol (node) => node . get_id () , Self :: Error (node) => node . get_id () , Self :: Method (node) => node . get_id () , Self :: Typedef (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Comment (node) => node . get_parent_id () , Self :: Eol (node) => node . get_parent_id () , Self :: Error (node) => node . get_parent_id () , Self :: Method (node) => node . get_parent_id () , Self :: Typedef (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Comment (node) => node . get_range () , Self :: Eol (node) => node . get_range () , Self :: Error (node) => node . get_range () , Self :: Method (node) => node . get_range () , Self :: Typedef (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment_Eol_Error_Method_Typedef { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 2u16 => Ok (Self :: Comment (Comment :: try_from ((node , db , builder , id , parent_id)) ?)) , 3u16 => Ok (Self :: Eol (Eol :: try_from ((node , db , builder , id , parent_id)) ?)) , 29u16 => Ok (Self :: Error (Error :: try_from ((node , db , builder , id , parent_id)) ?)) , 30u16 => Ok (Self :: Method (Method :: try_from ((node , db , builder , id , parent_id)) ?)) , 28u16 => Ok (Self :: Typedef (Typedef :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Comment_Eol_Error_Method_Typedef) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { Array (Array) , Bool (Bool) , Dict (Dict) , Enum (Enum) , Float (Float) , Int (Int) , Maybe (Maybe) , Object (Object) , String (String) , Struct (Struct) , Typeref (Typeref) } impl auto_lsp :: core :: ast :: AstNode for Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 37u16 | 16u16 | 38u16 | 33u16 | 18u16 | 17u16 | 35u16 | 20u16 | 19u16 | 31u16 | 39u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Array (node) => node . lower () , Self :: Bool (node) => node . lower () , Self :: Dict (node) => node . lower () , Self :: Enum (node) => node . lower () , Self :: Float (node) => node . lower () , Self :: Int (node) => node . lower () , Self :: Maybe (node) => node . lower () , Self :: Object (node) => node . lower () , Self :: String (node) => node . lower () , Self :: Struct (node) => node . lower () , Self :: Typeref (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Array (node) => node . get_id () , Self :: Bool (node) => node . get_id () , Self :: Dict (node) => node . get_id () , Self :: Enum (node) => node . get_id () , Self :: Float (node) => node . get_id () , Self :: Int (node) => node . get_id () , Self :: Maybe (node) => node . get_id () , Self :: Object (node) => node . get_id () , Self :: String (node) => node . get_id () , Self :: Struct (node) => node . get_id () , Self :: Typeref (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Array (node) => node . get_parent_id () , Self :: Bool (node) => node . get_parent_id () , Self :: Dict (node) => node . get_parent_id () , Self :: Enum (node) => node . get_parent_id () , Self :: Float (node) => node . get_parent_id () , Self :: Int (node) => node . get_parent_id () , Self :: Maybe (node) => node . get_parent_id () , Self :: Object (node) => node . get_parent_id () , Self :: String (node) => node . get_parent_id () , Self :: Struct (node) => node . get_parent_id () , Self :: Typeref (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Array (node) => node . get_range () , Self :: Bool (node) => node . get_range () , Self :: Dict (node) => node . get_range () , Self :: Enum (node) => node . get_range () , Self :: Float (node) => node . get_range () , Self :: Int (node) => node . get_range () , Self :: Maybe (node) => node . get_range () , Self :: Object (node) => node . get_range () , Self :: String (node) => node . get_range () , Self :: Struct (node) => node . get_range () , Self :: Typeref (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 37u16 => Ok (Self :: Array (Array :: try_from ((node , db , builder , id , parent_id)) ?)) , 16u16 => Ok (Self :: Bool (Bool :: try_from ((node , db , builder , id , parent_id)) ?)) , 38u16 => Ok (Self :: Dict (Dict :: try_from ((node , db , builder , id , parent_id)) ?)) , 33u16 => Ok (Self :: Enum (Enum :: try_from ((node , db , builder , id , parent_id)) ?)) , 18u16 => Ok (Self :: Float (Float :: try_from ((node , db , builder , id , parent_id)) ?)) , 17u16 => Ok (Self :: Int (Int :: try_from ((node , db , builder , id , parent_id)) ?)) , 35u16 => Ok (Self :: Maybe (Maybe :: try_from ((node , db , builder , id , parent_id)) ?)) , 20u16 => Ok (Self :: Object (Object :: try_from ((node , db , builder , id , parent_id)) ?)) , 19u16 => Ok (Self :: String (String :: try_from ((node , db , builder , id , parent_id)) ?)) , 31u16 => Ok (Self :: Struct (Struct :: try_from ((node , db , builder , id , parent_id)) ?)) , 39u16 => Ok (Self :: Typeref (Typeref :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Enum_Struct { Enum (Enum) , Struct (Struct) } impl auto_lsp :: core :: ast :: AstNode for Enum_Struct { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 33u16 | 31u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Enum (node) => node . lower () , Self :: Struct (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Enum (node) => node . get_id () , Self :: Struct (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Enum (node) => node . get_parent_id () , Self :: Struct (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Enum (node) => node . get_range () , Self :: Struct (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Enum_Struct { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 33u16 => Ok (Self :: Enum (Enum :: try_from ((node , db , builder , id , parent_id)) ?)) , 31u16 => Ok (Self :: Struct (Struct :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Enum_Struct) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Comment_Eol { Comment (Comment) , Eol (Eol) } impl auto_lsp :: core :: ast :: AstNode for Comment_Eol { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16 | 3u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Comment (node) => node . lower () , Self :: Eol (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Comment (node) => node . get_id () , Self :: Eol (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Comment (node) => node . get_parent_id () , Self :: Eol (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Comment (node) => node . get_range () , Self :: Eol (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment_Eol { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 2u16 => Ok (Self :: Comment (Comment :: try_from ((node , db , builder , id , parent_id)) ?)) , 3u16 => Ok (Self :: Eol (Eol :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Comment_Eol) , }) } } }
[INFO] [stdout]  1 + # ! [allow (clippy :: all)] # ! [allow (unused)] # ! [allow (dead_code)] # ! [allow (non_camel_case_types)] # ! [allow (non_snake_case)] # [derive (Debug , Clone , PartialEq)] pub struct Array { pub Type : auto_lsp :: core :: ast :: AstNodeId < Type > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Array { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 37u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Array { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut Type = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Type , 10u16 > (& mut Type) }) ; Ok (Self { Type : Type ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Type) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Dict { pub Type : auto_lsp :: core :: ast :: AstNodeId < Type > , pub children : auto_lsp :: core :: ast :: AstNodeId < String > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Dict { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 38u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Dict { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut Type = Ok (None) ; ; let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Type , 10u16 > (& mut Type) ? . on_children_id (& mut children) }) ; Ok (Self { Type : Type ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Type) , } }) ? , children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (String) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Enum { pub member : Vec < auto_lsp :: core :: ast :: AstNodeId < FieldName >> , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Enum { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 33u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Enum { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut member = vec ! [] ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_vec_field_id :: < FieldName , 6u16 > (& mut member) ? . on_vec_children_id (& mut children) }) ; Ok (Self { member , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Error { pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordError > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub value : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Error { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 29u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Error { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut keyword = Ok (None) ; ; let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < KeywordError , 5u16 > (& mut keyword) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_field_id :: < Struct , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Interface { pub declaration : auto_lsp :: core :: ast :: AstNodeId < InterfaceDeclaration > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol_Error_Method_Typedef >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Interface { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 24u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Interface { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut declaration = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < InterfaceDeclaration , 2u16 > (& mut declaration) ? . on_vec_children_id (& mut children) }) ; Ok (Self { declaration : declaration ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (declaration) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct InterfaceDeclaration { pub name : auto_lsp :: core :: ast :: AstNodeId < InterfaceName > , pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordInterface > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for InterfaceDeclaration { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 27u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for InterfaceDeclaration { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut name = Ok (None) ; ; let mut keyword = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < InterfaceName , 7u16 > (& mut name) ? . on_field_id :: < KeywordInterface , 5u16 > (& mut keyword) ? . on_vec_children_id (& mut children) }) ; Ok (Self { name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Maybe { pub questionmark : auto_lsp :: core :: ast :: AstNodeId < Questionmark > , pub just : auto_lsp :: core :: ast :: AstNodeId < Type > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Maybe { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 35u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Maybe { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut questionmark = Ok (None) ; ; let mut just = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Questionmark , 9u16 > (& mut questionmark) ? . on_field_id :: < Type , 4u16 > (& mut just) }) ; Ok (Self { questionmark : questionmark ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (questionmark) , } }) ? , just : just ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (just) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Method { pub input : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub output : auto_lsp :: core :: ast :: AstNode < Struct > , pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordMethod > , pub arrow : auto_lsp :: core :: ast :: AstNodeId < Arrow > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Method { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 30u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Method { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut input = Ok (None) ; ; let mut output = Ok (None) ; ; let mut keyword = Ok (None) ; ; let mut arrow = Ok (None) ; ; let mut name = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Struct , 3u16 > (& mut input) ? . on_field_id :: < Struct , 8u16 > (& mut output) ? . on_field_id :: < KeywordMethod , 5u16 > (& mut keyword) ? . on_field_id :: < Arrow , 1u16 > (& mut arrow) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_vec_children_id (& mut children) }) ; Ok (Self { input : input ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (input) , } }) ? , output : output ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (output) , } }) ? , keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , arrow : arrow ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (arrow) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Struct { pub member : Vec < auto_lsp :: core :: ast :: AstNodeId < StructField >> , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Struct { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 31u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Struct { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut member = vec ! [] ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_vec_field_id :: < StructField , 6u16 > (& mut member) ? . on_vec_children_id (& mut children) }) ; Ok (Self { member , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct StructField { pub name : auto_lsp :: core :: ast :: AstNodeId < FieldName > , pub value : auto_lsp :: core :: ast :: AstNodeId < Type > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for StructField { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 32u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for StructField { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < FieldName , 7u16 > (& mut name) ? . on_field_id :: < Type , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Type { pub children : auto_lsp :: core :: ast :: AstNodeId < Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Type { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 34u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Type { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_children_id (& mut children) }) ; Ok (Self { children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Typedef { pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordType > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub value : auto_lsp :: core :: ast :: AstNodeId < Enum_Struct > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Typedef { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 28u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Typedef { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut keyword = Ok (None) ; ; let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < KeywordType , 5u16 > (& mut keyword) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_field_id :: < Enum_Struct , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Typeref { pub children : auto_lsp :: core :: ast :: AstNodeId < Name > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Typeref { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 39u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Typeref { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_children_id (& mut children) }) ; Ok (Self { children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Name) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_LeftParen { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_LeftParen { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 9u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_LeftParen { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_RightParen { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_RightParen { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 11u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_RightParen { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_Comma { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_Comma { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 10u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_Comma { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_Colon { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_Colon { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 12u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_Colon { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_LeftBracket { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_LeftBracket { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 14u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_LeftBracket { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_RightBracket { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_RightBracket { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 15u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_RightBracket { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Arrow { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Arrow { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 8u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Arrow { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Bool { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Bool { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 16u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Bool { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Comment { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Comment { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Eol { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Eol { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 3u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Eol { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct FieldName { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for FieldName { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 22u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for FieldName { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Float { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Float { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 18u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Float { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Int { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Int { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 17u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Int { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct InterfaceName { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for InterfaceName { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 23u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for InterfaceName { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordError { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordError { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 6u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordError { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordInterface { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordInterface { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 4u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordInterface { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordMethod { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordMethod { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 7u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordMethod { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordType { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordType { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 5u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordType { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Name { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Name { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 21u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Name { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Object { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Object { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 20u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Object { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Questionmark { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Questionmark { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 13u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Questionmark { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct String { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for String { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 19u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for String { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub enum Comment_Eol_Error_Method_Typedef { Comment (Comment) , Eol (Eol) , Error (Error) , Method (Method) , Typedef (Typedef) } impl auto_lsp :: core :: ast :: AstNode for Comment_Eol_Error_Method_Typedef { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16 | 3u16 | 29u16 | 30u16 | 28u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Comment (node) => node . lower () , Self :: Eol (node) => node . lower () , Self :: Error (node) => node . lower () , Self :: Method (node) => node . lower () , Self :: Typedef (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Comment (node) => node . get_id () , Self :: Eol (node) => node . get_id () , Self :: Error (node) => node . get_id () , Self :: Method (node) => node . get_id () , Self :: Typedef (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Comment (node) => node . get_parent_id () , Self :: Eol (node) => node . get_parent_id () , Self :: Error (node) => node . get_parent_id () , Self :: Method (node) => node . get_parent_id () , Self :: Typedef (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Comment (node) => node . get_range () , Self :: Eol (node) => node . get_range () , Self :: Error (node) => node . get_range () , Self :: Method (node) => node . get_range () , Self :: Typedef (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment_Eol_Error_Method_Typedef { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 2u16 => Ok (Self :: Comment (Comment :: try_from ((node , db , builder , id , parent_id)) ?)) , 3u16 => Ok (Self :: Eol (Eol :: try_from ((node , db , builder , id , parent_id)) ?)) , 29u16 => Ok (Self :: Error (Error :: try_from ((node , db , builder , id , parent_id)) ?)) , 30u16 => Ok (Self :: Method (Method :: try_from ((node , db , builder , id , parent_id)) ?)) , 28u16 => Ok (Self :: Typedef (Typedef :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Comment_Eol_Error_Method_Typedef) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { Array (Array) , Bool (Bool) , Dict (Dict) , Enum (Enum) , Float (Float) , Int (Int) , Maybe (Maybe) , Object (Object) , String (String) , Struct (Struct) , Typeref (Typeref) } impl auto_lsp :: core :: ast :: AstNode for Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 37u16 | 16u16 | 38u16 | 33u16 | 18u16 | 17u16 | 35u16 | 20u16 | 19u16 | 31u16 | 39u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Array (node) => node . lower () , Self :: Bool (node) => node . lower () , Self :: Dict (node) => node . lower () , Self :: Enum (node) => node . lower () , Self :: Float (node) => node . lower () , Self :: Int (node) => node . lower () , Self :: Maybe (node) => node . lower () , Self :: Object (node) => node . lower () , Self :: String (node) => node . lower () , Self :: Struct (node) => node . lower () , Self :: Typeref (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Array (node) => node . get_id () , Self :: Bool (node) => node . get_id () , Self :: Dict (node) => node . get_id () , Self :: Enum (node) => node . get_id () , Self :: Float (node) => node . get_id () , Self :: Int (node) => node . get_id () , Self :: Maybe (node) => node . get_id () , Self :: Object (node) => node . get_id () , Self :: String (node) => node . get_id () , Self :: Struct (node) => node . get_id () , Self :: Typeref (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Array (node) => node . get_parent_id () , Self :: Bool (node) => node . get_parent_id () , Self :: Dict (node) => node . get_parent_id () , Self :: Enum (node) => node . get_parent_id () , Self :: Float (node) => node . get_parent_id () , Self :: Int (node) => node . get_parent_id () , Self :: Maybe (node) => node . get_parent_id () , Self :: Object (node) => node . get_parent_id () , Self :: String (node) => node . get_parent_id () , Self :: Struct (node) => node . get_parent_id () , Self :: Typeref (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Array (node) => node . get_range () , Self :: Bool (node) => node . get_range () , Self :: Dict (node) => node . get_range () , Self :: Enum (node) => node . get_range () , Self :: Float (node) => node . get_range () , Self :: Int (node) => node . get_range () , Self :: Maybe (node) => node . get_range () , Self :: Object (node) => node . get_range () , Self :: String (node) => node . get_range () , Self :: Struct (node) => node . get_range () , Self :: Typeref (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 37u16 => Ok (Self :: Array (Array :: try_from ((node , db , builder , id , parent_id)) ?)) , 16u16 => Ok (Self :: Bool (Bool :: try_from ((node , db , builder , id , parent_id)) ?)) , 38u16 => Ok (Self :: Dict (Dict :: try_from ((node , db , builder , id , parent_id)) ?)) , 33u16 => Ok (Self :: Enum (Enum :: try_from ((node , db , builder , id , parent_id)) ?)) , 18u16 => Ok (Self :: Float (Float :: try_from ((node , db , builder , id , parent_id)) ?)) , 17u16 => Ok (Self :: Int (Int :: try_from ((node , db , builder , id , parent_id)) ?)) , 35u16 => Ok (Self :: Maybe (Maybe :: try_from ((node , db , builder , id , parent_id)) ?)) , 20u16 => Ok (Self :: Object (Object :: try_from ((node , db , builder , id , parent_id)) ?)) , 19u16 => Ok (Self :: String (String :: try_from ((node , db , builder , id , parent_id)) ?)) , 31u16 => Ok (Self :: Struct (Struct :: try_from ((node , db , builder , id , parent_id)) ?)) , 39u16 => Ok (Self :: Typeref (Typeref :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Enum_Struct { Enum (Enum) , Struct (Struct) } impl auto_lsp :: core :: ast :: AstNode for Enum_Struct { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 33u16 | 31u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Enum (node) => node . lower () , Self :: Struct (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Enum (node) => node . get_id () , Self :: Struct (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Enum (node) => node . get_parent_id () , Self :: Struct (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Enum (node) => node . get_range () , Self :: Struct (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Enum_Struct { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 33u16 => Ok (Self :: Enum (Enum :: try_from ((node , db , builder , id , parent_id)) ?)) , 31u16 => Ok (Self :: Struct (Struct :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Enum_Struct) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Comment_Eol { Comment (Comment) , Eol (Eol) } impl auto_lsp :: core :: ast :: AstNode for Comment_Eol { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16 | 3u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Comment (node) => node . lower () , Self :: Eol (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Comment (node) => node . get_id () , Self :: Eol (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Comment (node) => node . get_parent_id () , Self :: Eol (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Comment (node) => node . get_range () , Self :: Eol (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment_Eol { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 2u16 => Ok (Self :: Comment (Comment :: try_from ((node , db , builder , id , parent_id)) ?)) , 3u16 => Ok (Self :: Eol (Eol :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Comment_Eol) , }) } } }
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `AstNodeId` in module `auto_lsp::core::ast`
[INFO] [stdout]   --> src/ast.rs:1:12029
[INFO] [stdout]    |
[INFO] [stdout]  1 | ...odeId < Struct > , pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordMethod > , pub arrow : auto_lsp :: core :: ast :: ...
[INFO] [stdout]    |                                                                ^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]   ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/auto-lsp-core-0.7.0/src/ast/node.rs:26:1
[INFO] [stdout]    |
[INFO] [stdout] 26 | pub trait AstNode: std::fmt::Debug + Send + Sync + DowncastSync {
[INFO] [stdout]    | --------------------------------------------------------------- similarly named trait `AstNode` defined here
[INFO] [stdout]    |
[INFO] [stdout] help: a trait with a similar name exists
[INFO] [stdout]    |
[INFO] [stdout]  1 - # ! [allow (clippy :: all)] # ! [allow (unused)] # ! [allow (dead_code)] # ! [allow (non_camel_case_types)] # ! [allow (non_snake_case)] # [derive (Debug , Clone , PartialEq)] pub struct Array { pub Type : auto_lsp :: core :: ast :: AstNodeId < Type > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Array { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 37u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Array { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut Type = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Type , 10u16 > (& mut Type) }) ; Ok (Self { Type : Type ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Type) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Dict { pub Type : auto_lsp :: core :: ast :: AstNodeId < Type > , pub children : auto_lsp :: core :: ast :: AstNodeId < String > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Dict { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 38u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Dict { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut Type = Ok (None) ; ; let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Type , 10u16 > (& mut Type) ? . on_children_id (& mut children) }) ; Ok (Self { Type : Type ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Type) , } }) ? , children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (String) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Enum { pub member : Vec < auto_lsp :: core :: ast :: AstNodeId < FieldName >> , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Enum { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 33u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Enum { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut member = vec ! [] ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_vec_field_id :: < FieldName , 6u16 > (& mut member) ? . on_vec_children_id (& mut children) }) ; Ok (Self { member , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Error { pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordError > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub value : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Error { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 29u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Error { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut keyword = Ok (None) ; ; let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < KeywordError , 5u16 > (& mut keyword) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_field_id :: < Struct , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Interface { pub declaration : auto_lsp :: core :: ast :: AstNodeId < InterfaceDeclaration > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol_Error_Method_Typedef >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Interface { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 24u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Interface { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut declaration = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < InterfaceDeclaration , 2u16 > (& mut declaration) ? . on_vec_children_id (& mut children) }) ; Ok (Self { declaration : declaration ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (declaration) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct InterfaceDeclaration { pub name : auto_lsp :: core :: ast :: AstNodeId < InterfaceName > , pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordInterface > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for InterfaceDeclaration { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 27u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for InterfaceDeclaration { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut name = Ok (None) ; ; let mut keyword = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < InterfaceName , 7u16 > (& mut name) ? . on_field_id :: < KeywordInterface , 5u16 > (& mut keyword) ? . on_vec_children_id (& mut children) }) ; Ok (Self { name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Maybe { pub questionmark : auto_lsp :: core :: ast :: AstNodeId < Questionmark > , pub just : auto_lsp :: core :: ast :: AstNodeId < Type > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Maybe { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 35u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Maybe { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut questionmark = Ok (None) ; ; let mut just = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Questionmark , 9u16 > (& mut questionmark) ? . on_field_id :: < Type , 4u16 > (& mut just) }) ; Ok (Self { questionmark : questionmark ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (questionmark) , } }) ? , just : just ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (just) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Method { pub input : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub output : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordMethod > , pub arrow : auto_lsp :: core :: ast :: AstNodeId < Arrow > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Method { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 30u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Method { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut input = Ok (None) ; ; let mut output = Ok (None) ; ; let mut keyword = Ok (None) ; ; let mut arrow = Ok (None) ; ; let mut name = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Struct , 3u16 > (& mut input) ? . on_field_id :: < Struct , 8u16 > (& mut output) ? . on_field_id :: < KeywordMethod , 5u16 > (& mut keyword) ? . on_field_id :: < Arrow , 1u16 > (& mut arrow) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_vec_children_id (& mut children) }) ; Ok (Self { input : input ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (input) , } }) ? , output : output ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (output) , } }) ? , keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , arrow : arrow ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (arrow) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Struct { pub member : Vec < auto_lsp :: core :: ast :: AstNodeId < StructField >> , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Struct { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 31u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Struct { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut member = vec ! [] ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_vec_field_id :: < StructField , 6u16 > (& mut member) ? . on_vec_children_id (& mut children) }) ; Ok (Self { member , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct StructField { pub name : auto_lsp :: core :: ast :: AstNodeId < FieldName > , pub value : auto_lsp :: core :: ast :: AstNodeId < Type > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for StructField { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 32u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for StructField { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < FieldName , 7u16 > (& mut name) ? . on_field_id :: < Type , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Type { pub children : auto_lsp :: core :: ast :: AstNodeId < Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Type { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 34u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Type { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_children_id (& mut children) }) ; Ok (Self { children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Typedef { pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordType > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub value : auto_lsp :: core :: ast :: AstNodeId < Enum_Struct > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Typedef { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 28u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Typedef { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut keyword = Ok (None) ; ; let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < KeywordType , 5u16 > (& mut keyword) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_field_id :: < Enum_Struct , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Typeref { pub children : auto_lsp :: core :: ast :: AstNodeId < Name > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Typeref { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 39u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Typeref { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_children_id (& mut children) }) ; Ok (Self { children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Name) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_LeftParen { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_LeftParen { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 9u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_LeftParen { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_RightParen { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_RightParen { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 11u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_RightParen { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_Comma { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_Comma { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 10u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_Comma { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_Colon { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_Colon { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 12u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_Colon { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_LeftBracket { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_LeftBracket { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 14u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_LeftBracket { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_RightBracket { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_RightBracket { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 15u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_RightBracket { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Arrow { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Arrow { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 8u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Arrow { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Bool { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Bool { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 16u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Bool { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Comment { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Comment { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Eol { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Eol { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 3u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Eol { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct FieldName { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for FieldName { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 22u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for FieldName { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Float { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Float { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 18u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Float { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Int { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Int { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 17u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Int { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct InterfaceName { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for InterfaceName { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 23u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for InterfaceName { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordError { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordError { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 6u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordError { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordInterface { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordInterface { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 4u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordInterface { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordMethod { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordMethod { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 7u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordMethod { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordType { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordType { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 5u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordType { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Name { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Name { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 21u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Name { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Object { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Object { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 20u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Object { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Questionmark { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Questionmark { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 13u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Questionmark { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct String { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for String { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 19u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for String { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub enum Comment_Eol_Error_Method_Typedef { Comment (Comment) , Eol (Eol) , Error (Error) , Method (Method) , Typedef (Typedef) } impl auto_lsp :: core :: ast :: AstNode for Comment_Eol_Error_Method_Typedef { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16 | 3u16 | 29u16 | 30u16 | 28u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Comment (node) => node . lower () , Self :: Eol (node) => node . lower () , Self :: Error (node) => node . lower () , Self :: Method (node) => node . lower () , Self :: Typedef (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Comment (node) => node . get_id () , Self :: Eol (node) => node . get_id () , Self :: Error (node) => node . get_id () , Self :: Method (node) => node . get_id () , Self :: Typedef (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Comment (node) => node . get_parent_id () , Self :: Eol (node) => node . get_parent_id () , Self :: Error (node) => node . get_parent_id () , Self :: Method (node) => node . get_parent_id () , Self :: Typedef (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Comment (node) => node . get_range () , Self :: Eol (node) => node . get_range () , Self :: Error (node) => node . get_range () , Self :: Method (node) => node . get_range () , Self :: Typedef (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment_Eol_Error_Method_Typedef { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 2u16 => Ok (Self :: Comment (Comment :: try_from ((node , db , builder , id , parent_id)) ?)) , 3u16 => Ok (Self :: Eol (Eol :: try_from ((node , db , builder , id , parent_id)) ?)) , 29u16 => Ok (Self :: Error (Error :: try_from ((node , db , builder , id , parent_id)) ?)) , 30u16 => Ok (Self :: Method (Method :: try_from ((node , db , builder , id , parent_id)) ?)) , 28u16 => Ok (Self :: Typedef (Typedef :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Comment_Eol_Error_Method_Typedef) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { Array (Array) , Bool (Bool) , Dict (Dict) , Enum (Enum) , Float (Float) , Int (Int) , Maybe (Maybe) , Object (Object) , String (String) , Struct (Struct) , Typeref (Typeref) } impl auto_lsp :: core :: ast :: AstNode for Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 37u16 | 16u16 | 38u16 | 33u16 | 18u16 | 17u16 | 35u16 | 20u16 | 19u16 | 31u16 | 39u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Array (node) => node . lower () , Self :: Bool (node) => node . lower () , Self :: Dict (node) => node . lower () , Self :: Enum (node) => node . lower () , Self :: Float (node) => node . lower () , Self :: Int (node) => node . lower () , Self :: Maybe (node) => node . lower () , Self :: Object (node) => node . lower () , Self :: String (node) => node . lower () , Self :: Struct (node) => node . lower () , Self :: Typeref (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Array (node) => node . get_id () , Self :: Bool (node) => node . get_id () , Self :: Dict (node) => node . get_id () , Self :: Enum (node) => node . get_id () , Self :: Float (node) => node . get_id () , Self :: Int (node) => node . get_id () , Self :: Maybe (node) => node . get_id () , Self :: Object (node) => node . get_id () , Self :: String (node) => node . get_id () , Self :: Struct (node) => node . get_id () , Self :: Typeref (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Array (node) => node . get_parent_id () , Self :: Bool (node) => node . get_parent_id () , Self :: Dict (node) => node . get_parent_id () , Self :: Enum (node) => node . get_parent_id () , Self :: Float (node) => node . get_parent_id () , Self :: Int (node) => node . get_parent_id () , Self :: Maybe (node) => node . get_parent_id () , Self :: Object (node) => node . get_parent_id () , Self :: String (node) => node . get_parent_id () , Self :: Struct (node) => node . get_parent_id () , Self :: Typeref (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Array (node) => node . get_range () , Self :: Bool (node) => node . get_range () , Self :: Dict (node) => node . get_range () , Self :: Enum (node) => node . get_range () , Self :: Float (node) => node . get_range () , Self :: Int (node) => node . get_range () , Self :: Maybe (node) => node . get_range () , Self :: Object (node) => node . get_range () , Self :: String (node) => node . get_range () , Self :: Struct (node) => node . get_range () , Self :: Typeref (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 37u16 => Ok (Self :: Array (Array :: try_from ((node , db , builder , id , parent_id)) ?)) , 16u16 => Ok (Self :: Bool (Bool :: try_from ((node , db , builder , id , parent_id)) ?)) , 38u16 => Ok (Self :: Dict (Dict :: try_from ((node , db , builder , id , parent_id)) ?)) , 33u16 => Ok (Self :: Enum (Enum :: try_from ((node , db , builder , id , parent_id)) ?)) , 18u16 => Ok (Self :: Float (Float :: try_from ((node , db , builder , id , parent_id)) ?)) , 17u16 => Ok (Self :: Int (Int :: try_from ((node , db , builder , id , parent_id)) ?)) , 35u16 => Ok (Self :: Maybe (Maybe :: try_from ((node , db , builder , id , parent_id)) ?)) , 20u16 => Ok (Self :: Object (Object :: try_from ((node , db , builder , id , parent_id)) ?)) , 19u16 => Ok (Self :: String (String :: try_from ((node , db , builder , id , parent_id)) ?)) , 31u16 => Ok (Self :: Struct (Struct :: try_from ((node , db , builder , id , parent_id)) ?)) , 39u16 => Ok (Self :: Typeref (Typeref :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Enum_Struct { Enum (Enum) , Struct (Struct) } impl auto_lsp :: core :: ast :: AstNode for Enum_Struct { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 33u16 | 31u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Enum (node) => node . lower () , Self :: Struct (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Enum (node) => node . get_id () , Self :: Struct (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Enum (node) => node . get_parent_id () , Self :: Struct (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Enum (node) => node . get_range () , Self :: Struct (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Enum_Struct { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 33u16 => Ok (Self :: Enum (Enum :: try_from ((node , db , builder , id , parent_id)) ?)) , 31u16 => Ok (Self :: Struct (Struct :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Enum_Struct) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Comment_Eol { Comment (Comment) , Eol (Eol) } impl auto_lsp :: core :: ast :: AstNode for Comment_Eol { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16 | 3u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Comment (node) => node . lower () , Self :: Eol (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Comment (node) => node . get_id () , Self :: Eol (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Comment (node) => node . get_parent_id () , Self :: Eol (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Comment (node) => node . get_range () , Self :: Eol (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment_Eol { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 2u16 => Ok (Self :: Comment (Comment :: try_from ((node , db , builder , id , parent_id)) ?)) , 3u16 => Ok (Self :: Eol (Eol :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Comment_Eol) , }) } } }
[INFO] [stdout]  1 + # ! [allow (clippy :: all)] # ! [allow (unused)] # ! [allow (dead_code)] # ! [allow (non_camel_case_types)] # ! [allow (non_snake_case)] # [derive (Debug , Clone , PartialEq)] pub struct Array { pub Type : auto_lsp :: core :: ast :: AstNodeId < Type > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Array { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 37u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Array { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut Type = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Type , 10u16 > (& mut Type) }) ; Ok (Self { Type : Type ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Type) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Dict { pub Type : auto_lsp :: core :: ast :: AstNodeId < Type > , pub children : auto_lsp :: core :: ast :: AstNodeId < String > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Dict { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 38u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Dict { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut Type = Ok (None) ; ; let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Type , 10u16 > (& mut Type) ? . on_children_id (& mut children) }) ; Ok (Self { Type : Type ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Type) , } }) ? , children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (String) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Enum { pub member : Vec < auto_lsp :: core :: ast :: AstNodeId < FieldName >> , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Enum { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 33u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Enum { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut member = vec ! [] ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_vec_field_id :: < FieldName , 6u16 > (& mut member) ? . on_vec_children_id (& mut children) }) ; Ok (Self { member , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Error { pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordError > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub value : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Error { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 29u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Error { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut keyword = Ok (None) ; ; let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < KeywordError , 5u16 > (& mut keyword) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_field_id :: < Struct , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Interface { pub declaration : auto_lsp :: core :: ast :: AstNodeId < InterfaceDeclaration > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol_Error_Method_Typedef >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Interface { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 24u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Interface { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut declaration = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < InterfaceDeclaration , 2u16 > (& mut declaration) ? . on_vec_children_id (& mut children) }) ; Ok (Self { declaration : declaration ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (declaration) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct InterfaceDeclaration { pub name : auto_lsp :: core :: ast :: AstNodeId < InterfaceName > , pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordInterface > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for InterfaceDeclaration { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 27u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for InterfaceDeclaration { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut name = Ok (None) ; ; let mut keyword = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < InterfaceName , 7u16 > (& mut name) ? . on_field_id :: < KeywordInterface , 5u16 > (& mut keyword) ? . on_vec_children_id (& mut children) }) ; Ok (Self { name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Maybe { pub questionmark : auto_lsp :: core :: ast :: AstNodeId < Questionmark > , pub just : auto_lsp :: core :: ast :: AstNodeId < Type > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Maybe { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 35u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Maybe { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut questionmark = Ok (None) ; ; let mut just = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Questionmark , 9u16 > (& mut questionmark) ? . on_field_id :: < Type , 4u16 > (& mut just) }) ; Ok (Self { questionmark : questionmark ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (questionmark) , } }) ? , just : just ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (just) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Method { pub input : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub output : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub keyword : auto_lsp :: core :: ast :: AstNode < KeywordMethod > , pub arrow : auto_lsp :: core :: ast :: AstNodeId < Arrow > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Method { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 30u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Method { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut input = Ok (None) ; ; let mut output = Ok (None) ; ; let mut keyword = Ok (None) ; ; let mut arrow = Ok (None) ; ; let mut name = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Struct , 3u16 > (& mut input) ? . on_field_id :: < Struct , 8u16 > (& mut output) ? . on_field_id :: < KeywordMethod , 5u16 > (& mut keyword) ? . on_field_id :: < Arrow , 1u16 > (& mut arrow) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_vec_children_id (& mut children) }) ; Ok (Self { input : input ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (input) , } }) ? , output : output ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (output) , } }) ? , keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , arrow : arrow ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (arrow) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Struct { pub member : Vec < auto_lsp :: core :: ast :: AstNodeId < StructField >> , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Struct { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 31u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Struct { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut member = vec ! [] ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_vec_field_id :: < StructField , 6u16 > (& mut member) ? . on_vec_children_id (& mut children) }) ; Ok (Self { member , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct StructField { pub name : auto_lsp :: core :: ast :: AstNodeId < FieldName > , pub value : auto_lsp :: core :: ast :: AstNodeId < Type > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for StructField { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 32u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for StructField { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < FieldName , 7u16 > (& mut name) ? . on_field_id :: < Type , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Type { pub children : auto_lsp :: core :: ast :: AstNodeId < Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Type { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 34u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Type { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_children_id (& mut children) }) ; Ok (Self { children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Typedef { pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordType > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub value : auto_lsp :: core :: ast :: AstNodeId < Enum_Struct > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Typedef { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 28u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Typedef { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut keyword = Ok (None) ; ; let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < KeywordType , 5u16 > (& mut keyword) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_field_id :: < Enum_Struct , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Typeref { pub children : auto_lsp :: core :: ast :: AstNodeId < Name > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Typeref { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 39u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Typeref { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_children_id (& mut children) }) ; Ok (Self { children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Name) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_LeftParen { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_LeftParen { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 9u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_LeftParen { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_RightParen { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_RightParen { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 11u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_RightParen { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_Comma { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_Comma { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 10u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_Comma { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_Colon { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_Colon { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 12u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_Colon { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_LeftBracket { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_LeftBracket { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 14u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_LeftBracket { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_RightBracket { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_RightBracket { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 15u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_RightBracket { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Arrow { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Arrow { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 8u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Arrow { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Bool { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Bool { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 16u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Bool { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Comment { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Comment { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Eol { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Eol { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 3u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Eol { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct FieldName { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for FieldName { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 22u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for FieldName { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Float { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Float { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 18u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Float { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Int { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Int { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 17u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Int { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct InterfaceName { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for InterfaceName { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 23u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for InterfaceName { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordError { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordError { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 6u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordError { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordInterface { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordInterface { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 4u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordInterface { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordMethod { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordMethod { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 7u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordMethod { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordType { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordType { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 5u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordType { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Name { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Name { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 21u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Name { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Object { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Object { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 20u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Object { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Questionmark { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Questionmark { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 13u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Questionmark { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct String { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for String { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 19u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for String { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub enum Comment_Eol_Error_Method_Typedef { Comment (Comment) , Eol (Eol) , Error (Error) , Method (Method) , Typedef (Typedef) } impl auto_lsp :: core :: ast :: AstNode for Comment_Eol_Error_Method_Typedef { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16 | 3u16 | 29u16 | 30u16 | 28u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Comment (node) => node . lower () , Self :: Eol (node) => node . lower () , Self :: Error (node) => node . lower () , Self :: Method (node) => node . lower () , Self :: Typedef (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Comment (node) => node . get_id () , Self :: Eol (node) => node . get_id () , Self :: Error (node) => node . get_id () , Self :: Method (node) => node . get_id () , Self :: Typedef (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Comment (node) => node . get_parent_id () , Self :: Eol (node) => node . get_parent_id () , Self :: Error (node) => node . get_parent_id () , Self :: Method (node) => node . get_parent_id () , Self :: Typedef (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Comment (node) => node . get_range () , Self :: Eol (node) => node . get_range () , Self :: Error (node) => node . get_range () , Self :: Method (node) => node . get_range () , Self :: Typedef (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment_Eol_Error_Method_Typedef { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 2u16 => Ok (Self :: Comment (Comment :: try_from ((node , db , builder , id , parent_id)) ?)) , 3u16 => Ok (Self :: Eol (Eol :: try_from ((node , db , builder , id , parent_id)) ?)) , 29u16 => Ok (Self :: Error (Error :: try_from ((node , db , builder , id , parent_id)) ?)) , 30u16 => Ok (Self :: Method (Method :: try_from ((node , db , builder , id , parent_id)) ?)) , 28u16 => Ok (Self :: Typedef (Typedef :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Comment_Eol_Error_Method_Typedef) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { Array (Array) , Bool (Bool) , Dict (Dict) , Enum (Enum) , Float (Float) , Int (Int) , Maybe (Maybe) , Object (Object) , String (String) , Struct (Struct) , Typeref (Typeref) } impl auto_lsp :: core :: ast :: AstNode for Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 37u16 | 16u16 | 38u16 | 33u16 | 18u16 | 17u16 | 35u16 | 20u16 | 19u16 | 31u16 | 39u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Array (node) => node . lower () , Self :: Bool (node) => node . lower () , Self :: Dict (node) => node . lower () , Self :: Enum (node) => node . lower () , Self :: Float (node) => node . lower () , Self :: Int (node) => node . lower () , Self :: Maybe (node) => node . lower () , Self :: Object (node) => node . lower () , Self :: String (node) => node . lower () , Self :: Struct (node) => node . lower () , Self :: Typeref (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Array (node) => node . get_id () , Self :: Bool (node) => node . get_id () , Self :: Dict (node) => node . get_id () , Self :: Enum (node) => node . get_id () , Self :: Float (node) => node . get_id () , Self :: Int (node) => node . get_id () , Self :: Maybe (node) => node . get_id () , Self :: Object (node) => node . get_id () , Self :: String (node) => node . get_id () , Self :: Struct (node) => node . get_id () , Self :: Typeref (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Array (node) => node . get_parent_id () , Self :: Bool (node) => node . get_parent_id () , Self :: Dict (node) => node . get_parent_id () , Self :: Enum (node) => node . get_parent_id () , Self :: Float (node) => node . get_parent_id () , Self :: Int (node) => node . get_parent_id () , Self :: Maybe (node) => node . get_parent_id () , Self :: Object (node) => node . get_parent_id () , Self :: String (node) => node . get_parent_id () , Self :: Struct (node) => node . get_parent_id () , Self :: Typeref (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Array (node) => node . get_range () , Self :: Bool (node) => node . get_range () , Self :: Dict (node) => node . get_range () , Self :: Enum (node) => node . get_range () , Self :: Float (node) => node . get_range () , Self :: Int (node) => node . get_range () , Self :: Maybe (node) => node . get_range () , Self :: Object (node) => node . get_range () , Self :: String (node) => node . get_range () , Self :: Struct (node) => node . get_range () , Self :: Typeref (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 37u16 => Ok (Self :: Array (Array :: try_from ((node , db , builder , id , parent_id)) ?)) , 16u16 => Ok (Self :: Bool (Bool :: try_from ((node , db , builder , id , parent_id)) ?)) , 38u16 => Ok (Self :: Dict (Dict :: try_from ((node , db , builder , id , parent_id)) ?)) , 33u16 => Ok (Self :: Enum (Enum :: try_from ((node , db , builder , id , parent_id)) ?)) , 18u16 => Ok (Self :: Float (Float :: try_from ((node , db , builder , id , parent_id)) ?)) , 17u16 => Ok (Self :: Int (Int :: try_from ((node , db , builder , id , parent_id)) ?)) , 35u16 => Ok (Self :: Maybe (Maybe :: try_from ((node , db , builder , id , parent_id)) ?)) , 20u16 => Ok (Self :: Object (Object :: try_from ((node , db , builder , id , parent_id)) ?)) , 19u16 => Ok (Self :: String (String :: try_from ((node , db , builder , id , parent_id)) ?)) , 31u16 => Ok (Self :: Struct (Struct :: try_from ((node , db , builder , id , parent_id)) ?)) , 39u16 => Ok (Self :: Typeref (Typeref :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Enum_Struct { Enum (Enum) , Struct (Struct) } impl auto_lsp :: core :: ast :: AstNode for Enum_Struct { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 33u16 | 31u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Enum (node) => node . lower () , Self :: Struct (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Enum (node) => node . get_id () , Self :: Struct (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Enum (node) => node . get_parent_id () , Self :: Struct (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Enum (node) => node . get_range () , Self :: Struct (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Enum_Struct { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 33u16 => Ok (Self :: Enum (Enum :: try_from ((node , db , builder , id , parent_id)) ?)) , 31u16 => Ok (Self :: Struct (Struct :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Enum_Struct) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Comment_Eol { Comment (Comment) , Eol (Eol) } impl auto_lsp :: core :: ast :: AstNode for Comment_Eol { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16 | 3u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Comment (node) => node . lower () , Self :: Eol (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Comment (node) => node . get_id () , Self :: Eol (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Comment (node) => node . get_parent_id () , Self :: Eol (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Comment (node) => node . get_range () , Self :: Eol (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment_Eol { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 2u16 => Ok (Self :: Comment (Comment :: try_from ((node , db , builder , id , parent_id)) ?)) , 3u16 => Ok (Self :: Eol (Eol :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Comment_Eol) , }) } } }
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `AstNodeId` in module `auto_lsp::core::ast`
[INFO] [stdout]   --> src/ast.rs:1:12098
[INFO] [stdout]    |
[INFO] [stdout]  1 | ... < KeywordMethod > , pub arrow : auto_lsp :: core :: ast :: AstNodeId < Arrow > , pub name : auto_lsp :: core :: ast :: AstNodeId...
[INFO] [stdout]    |                                                                ^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]   ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/auto-lsp-core-0.7.0/src/ast/node.rs:26:1
[INFO] [stdout]    |
[INFO] [stdout] 26 | pub trait AstNode: std::fmt::Debug + Send + Sync + DowncastSync {
[INFO] [stdout]    | --------------------------------------------------------------- similarly named trait `AstNode` defined here
[INFO] [stdout]    |
[INFO] [stdout] help: a trait with a similar name exists
[INFO] [stdout]    |
[INFO] [stdout]  1 - # ! [allow (clippy :: all)] # ! [allow (unused)] # ! [allow (dead_code)] # ! [allow (non_camel_case_types)] # ! [allow (non_snake_case)] # [derive (Debug , Clone , PartialEq)] pub struct Array { pub Type : auto_lsp :: core :: ast :: AstNodeId < Type > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Array { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 37u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Array { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut Type = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Type , 10u16 > (& mut Type) }) ; Ok (Self { Type : Type ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Type) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Dict { pub Type : auto_lsp :: core :: ast :: AstNodeId < Type > , pub children : auto_lsp :: core :: ast :: AstNodeId < String > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Dict { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 38u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Dict { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut Type = Ok (None) ; ; let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Type , 10u16 > (& mut Type) ? . on_children_id (& mut children) }) ; Ok (Self { Type : Type ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Type) , } }) ? , children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (String) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Enum { pub member : Vec < auto_lsp :: core :: ast :: AstNodeId < FieldName >> , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Enum { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 33u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Enum { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut member = vec ! [] ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_vec_field_id :: < FieldName , 6u16 > (& mut member) ? . on_vec_children_id (& mut children) }) ; Ok (Self { member , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Error { pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordError > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub value : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Error { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 29u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Error { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut keyword = Ok (None) ; ; let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < KeywordError , 5u16 > (& mut keyword) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_field_id :: < Struct , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Interface { pub declaration : auto_lsp :: core :: ast :: AstNodeId < InterfaceDeclaration > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol_Error_Method_Typedef >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Interface { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 24u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Interface { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut declaration = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < InterfaceDeclaration , 2u16 > (& mut declaration) ? . on_vec_children_id (& mut children) }) ; Ok (Self { declaration : declaration ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (declaration) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct InterfaceDeclaration { pub name : auto_lsp :: core :: ast :: AstNodeId < InterfaceName > , pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordInterface > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for InterfaceDeclaration { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 27u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for InterfaceDeclaration { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut name = Ok (None) ; ; let mut keyword = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < InterfaceName , 7u16 > (& mut name) ? . on_field_id :: < KeywordInterface , 5u16 > (& mut keyword) ? . on_vec_children_id (& mut children) }) ; Ok (Self { name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Maybe { pub questionmark : auto_lsp :: core :: ast :: AstNodeId < Questionmark > , pub just : auto_lsp :: core :: ast :: AstNodeId < Type > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Maybe { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 35u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Maybe { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut questionmark = Ok (None) ; ; let mut just = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Questionmark , 9u16 > (& mut questionmark) ? . on_field_id :: < Type , 4u16 > (& mut just) }) ; Ok (Self { questionmark : questionmark ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (questionmark) , } }) ? , just : just ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (just) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Method { pub input : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub output : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordMethod > , pub arrow : auto_lsp :: core :: ast :: AstNodeId < Arrow > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Method { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 30u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Method { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut input = Ok (None) ; ; let mut output = Ok (None) ; ; let mut keyword = Ok (None) ; ; let mut arrow = Ok (None) ; ; let mut name = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Struct , 3u16 > (& mut input) ? . on_field_id :: < Struct , 8u16 > (& mut output) ? . on_field_id :: < KeywordMethod , 5u16 > (& mut keyword) ? . on_field_id :: < Arrow , 1u16 > (& mut arrow) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_vec_children_id (& mut children) }) ; Ok (Self { input : input ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (input) , } }) ? , output : output ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (output) , } }) ? , keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , arrow : arrow ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (arrow) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Struct { pub member : Vec < auto_lsp :: core :: ast :: AstNodeId < StructField >> , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Struct { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 31u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Struct { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut member = vec ! [] ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_vec_field_id :: < StructField , 6u16 > (& mut member) ? . on_vec_children_id (& mut children) }) ; Ok (Self { member , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct StructField { pub name : auto_lsp :: core :: ast :: AstNodeId < FieldName > , pub value : auto_lsp :: core :: ast :: AstNodeId < Type > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for StructField { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 32u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for StructField { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < FieldName , 7u16 > (& mut name) ? . on_field_id :: < Type , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Type { pub children : auto_lsp :: core :: ast :: AstNodeId < Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Type { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 34u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Type { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_children_id (& mut children) }) ; Ok (Self { children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Typedef { pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordType > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub value : auto_lsp :: core :: ast :: AstNodeId < Enum_Struct > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Typedef { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 28u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Typedef { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut keyword = Ok (None) ; ; let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < KeywordType , 5u16 > (& mut keyword) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_field_id :: < Enum_Struct , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Typeref { pub children : auto_lsp :: core :: ast :: AstNodeId < Name > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Typeref { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 39u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Typeref { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_children_id (& mut children) }) ; Ok (Self { children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Name) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_LeftParen { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_LeftParen { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 9u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_LeftParen { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_RightParen { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_RightParen { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 11u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_RightParen { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_Comma { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_Comma { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 10u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_Comma { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_Colon { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_Colon { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 12u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_Colon { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_LeftBracket { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_LeftBracket { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 14u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_LeftBracket { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_RightBracket { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_RightBracket { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 15u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_RightBracket { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Arrow { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Arrow { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 8u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Arrow { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Bool { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Bool { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 16u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Bool { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Comment { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Comment { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Eol { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Eol { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 3u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Eol { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct FieldName { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for FieldName { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 22u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for FieldName { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Float { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Float { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 18u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Float { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Int { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Int { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 17u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Int { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct InterfaceName { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for InterfaceName { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 23u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for InterfaceName { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordError { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordError { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 6u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordError { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordInterface { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordInterface { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 4u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordInterface { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordMethod { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordMethod { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 7u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordMethod { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordType { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordType { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 5u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordType { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Name { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Name { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 21u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Name { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Object { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Object { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 20u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Object { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Questionmark { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Questionmark { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 13u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Questionmark { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct String { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for String { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 19u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for String { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub enum Comment_Eol_Error_Method_Typedef { Comment (Comment) , Eol (Eol) , Error (Error) , Method (Method) , Typedef (Typedef) } impl auto_lsp :: core :: ast :: AstNode for Comment_Eol_Error_Method_Typedef { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16 | 3u16 | 29u16 | 30u16 | 28u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Comment (node) => node . lower () , Self :: Eol (node) => node . lower () , Self :: Error (node) => node . lower () , Self :: Method (node) => node . lower () , Self :: Typedef (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Comment (node) => node . get_id () , Self :: Eol (node) => node . get_id () , Self :: Error (node) => node . get_id () , Self :: Method (node) => node . get_id () , Self :: Typedef (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Comment (node) => node . get_parent_id () , Self :: Eol (node) => node . get_parent_id () , Self :: Error (node) => node . get_parent_id () , Self :: Method (node) => node . get_parent_id () , Self :: Typedef (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Comment (node) => node . get_range () , Self :: Eol (node) => node . get_range () , Self :: Error (node) => node . get_range () , Self :: Method (node) => node . get_range () , Self :: Typedef (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment_Eol_Error_Method_Typedef { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 2u16 => Ok (Self :: Comment (Comment :: try_from ((node , db , builder , id , parent_id)) ?)) , 3u16 => Ok (Self :: Eol (Eol :: try_from ((node , db , builder , id , parent_id)) ?)) , 29u16 => Ok (Self :: Error (Error :: try_from ((node , db , builder , id , parent_id)) ?)) , 30u16 => Ok (Self :: Method (Method :: try_from ((node , db , builder , id , parent_id)) ?)) , 28u16 => Ok (Self :: Typedef (Typedef :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Comment_Eol_Error_Method_Typedef) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { Array (Array) , Bool (Bool) , Dict (Dict) , Enum (Enum) , Float (Float) , Int (Int) , Maybe (Maybe) , Object (Object) , String (String) , Struct (Struct) , Typeref (Typeref) } impl auto_lsp :: core :: ast :: AstNode for Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 37u16 | 16u16 | 38u16 | 33u16 | 18u16 | 17u16 | 35u16 | 20u16 | 19u16 | 31u16 | 39u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Array (node) => node . lower () , Self :: Bool (node) => node . lower () , Self :: Dict (node) => node . lower () , Self :: Enum (node) => node . lower () , Self :: Float (node) => node . lower () , Self :: Int (node) => node . lower () , Self :: Maybe (node) => node . lower () , Self :: Object (node) => node . lower () , Self :: String (node) => node . lower () , Self :: Struct (node) => node . lower () , Self :: Typeref (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Array (node) => node . get_id () , Self :: Bool (node) => node . get_id () , Self :: Dict (node) => node . get_id () , Self :: Enum (node) => node . get_id () , Self :: Float (node) => node . get_id () , Self :: Int (node) => node . get_id () , Self :: Maybe (node) => node . get_id () , Self :: Object (node) => node . get_id () , Self :: String (node) => node . get_id () , Self :: Struct (node) => node . get_id () , Self :: Typeref (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Array (node) => node . get_parent_id () , Self :: Bool (node) => node . get_parent_id () , Self :: Dict (node) => node . get_parent_id () , Self :: Enum (node) => node . get_parent_id () , Self :: Float (node) => node . get_parent_id () , Self :: Int (node) => node . get_parent_id () , Self :: Maybe (node) => node . get_parent_id () , Self :: Object (node) => node . get_parent_id () , Self :: String (node) => node . get_parent_id () , Self :: Struct (node) => node . get_parent_id () , Self :: Typeref (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Array (node) => node . get_range () , Self :: Bool (node) => node . get_range () , Self :: Dict (node) => node . get_range () , Self :: Enum (node) => node . get_range () , Self :: Float (node) => node . get_range () , Self :: Int (node) => node . get_range () , Self :: Maybe (node) => node . get_range () , Self :: Object (node) => node . get_range () , Self :: String (node) => node . get_range () , Self :: Struct (node) => node . get_range () , Self :: Typeref (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 37u16 => Ok (Self :: Array (Array :: try_from ((node , db , builder , id , parent_id)) ?)) , 16u16 => Ok (Self :: Bool (Bool :: try_from ((node , db , builder , id , parent_id)) ?)) , 38u16 => Ok (Self :: Dict (Dict :: try_from ((node , db , builder , id , parent_id)) ?)) , 33u16 => Ok (Self :: Enum (Enum :: try_from ((node , db , builder , id , parent_id)) ?)) , 18u16 => Ok (Self :: Float (Float :: try_from ((node , db , builder , id , parent_id)) ?)) , 17u16 => Ok (Self :: Int (Int :: try_from ((node , db , builder , id , parent_id)) ?)) , 35u16 => Ok (Self :: Maybe (Maybe :: try_from ((node , db , builder , id , parent_id)) ?)) , 20u16 => Ok (Self :: Object (Object :: try_from ((node , db , builder , id , parent_id)) ?)) , 19u16 => Ok (Self :: String (String :: try_from ((node , db , builder , id , parent_id)) ?)) , 31u16 => Ok (Self :: Struct (Struct :: try_from ((node , db , builder , id , parent_id)) ?)) , 39u16 => Ok (Self :: Typeref (Typeref :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Enum_Struct { Enum (Enum) , Struct (Struct) } impl auto_lsp :: core :: ast :: AstNode for Enum_Struct { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 33u16 | 31u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Enum (node) => node . lower () , Self :: Struct (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Enum (node) => node . get_id () , Self :: Struct (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Enum (node) => node . get_parent_id () , Self :: Struct (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Enum (node) => node . get_range () , Self :: Struct (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Enum_Struct { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 33u16 => Ok (Self :: Enum (Enum :: try_from ((node , db , builder , id , parent_id)) ?)) , 31u16 => Ok (Self :: Struct (Struct :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Enum_Struct) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Comment_Eol { Comment (Comment) , Eol (Eol) } impl auto_lsp :: core :: ast :: AstNode for Comment_Eol { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16 | 3u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Comment (node) => node . lower () , Self :: Eol (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Comment (node) => node . get_id () , Self :: Eol (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Comment (node) => node . get_parent_id () , Self :: Eol (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Comment (node) => node . get_range () , Self :: Eol (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment_Eol { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 2u16 => Ok (Self :: Comment (Comment :: try_from ((node , db , builder , id , parent_id)) ?)) , 3u16 => Ok (Self :: Eol (Eol :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Comment_Eol) , }) } } }
[INFO] [stdout]  1 + # ! [allow (clippy :: all)] # ! [allow (unused)] # ! [allow (dead_code)] # ! [allow (non_camel_case_types)] # ! [allow (non_snake_case)] # [derive (Debug , Clone , PartialEq)] pub struct Array { pub Type : auto_lsp :: core :: ast :: AstNodeId < Type > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Array { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 37u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Array { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut Type = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Type , 10u16 > (& mut Type) }) ; Ok (Self { Type : Type ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Type) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Dict { pub Type : auto_lsp :: core :: ast :: AstNodeId < Type > , pub children : auto_lsp :: core :: ast :: AstNodeId < String > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Dict { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 38u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Dict { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut Type = Ok (None) ; ; let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Type , 10u16 > (& mut Type) ? . on_children_id (& mut children) }) ; Ok (Self { Type : Type ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Type) , } }) ? , children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (String) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Enum { pub member : Vec < auto_lsp :: core :: ast :: AstNodeId < FieldName >> , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Enum { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 33u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Enum { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut member = vec ! [] ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_vec_field_id :: < FieldName , 6u16 > (& mut member) ? . on_vec_children_id (& mut children) }) ; Ok (Self { member , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Error { pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordError > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub value : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Error { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 29u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Error { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut keyword = Ok (None) ; ; let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < KeywordError , 5u16 > (& mut keyword) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_field_id :: < Struct , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Interface { pub declaration : auto_lsp :: core :: ast :: AstNodeId < InterfaceDeclaration > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol_Error_Method_Typedef >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Interface { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 24u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Interface { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut declaration = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < InterfaceDeclaration , 2u16 > (& mut declaration) ? . on_vec_children_id (& mut children) }) ; Ok (Self { declaration : declaration ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (declaration) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct InterfaceDeclaration { pub name : auto_lsp :: core :: ast :: AstNodeId < InterfaceName > , pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordInterface > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for InterfaceDeclaration { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 27u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for InterfaceDeclaration { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut name = Ok (None) ; ; let mut keyword = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < InterfaceName , 7u16 > (& mut name) ? . on_field_id :: < KeywordInterface , 5u16 > (& mut keyword) ? . on_vec_children_id (& mut children) }) ; Ok (Self { name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Maybe { pub questionmark : auto_lsp :: core :: ast :: AstNodeId < Questionmark > , pub just : auto_lsp :: core :: ast :: AstNodeId < Type > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Maybe { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 35u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Maybe { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut questionmark = Ok (None) ; ; let mut just = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Questionmark , 9u16 > (& mut questionmark) ? . on_field_id :: < Type , 4u16 > (& mut just) }) ; Ok (Self { questionmark : questionmark ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (questionmark) , } }) ? , just : just ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (just) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Method { pub input : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub output : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordMethod > , pub arrow : auto_lsp :: core :: ast :: AstNode < Arrow > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Method { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 30u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Method { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut input = Ok (None) ; ; let mut output = Ok (None) ; ; let mut keyword = Ok (None) ; ; let mut arrow = Ok (None) ; ; let mut name = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Struct , 3u16 > (& mut input) ? . on_field_id :: < Struct , 8u16 > (& mut output) ? . on_field_id :: < KeywordMethod , 5u16 > (& mut keyword) ? . on_field_id :: < Arrow , 1u16 > (& mut arrow) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_vec_children_id (& mut children) }) ; Ok (Self { input : input ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (input) , } }) ? , output : output ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (output) , } }) ? , keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , arrow : arrow ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (arrow) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Struct { pub member : Vec < auto_lsp :: core :: ast :: AstNodeId < StructField >> , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Struct { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 31u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Struct { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut member = vec ! [] ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_vec_field_id :: < StructField , 6u16 > (& mut member) ? . on_vec_children_id (& mut children) }) ; Ok (Self { member , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct StructField { pub name : auto_lsp :: core :: ast :: AstNodeId < FieldName > , pub value : auto_lsp :: core :: ast :: AstNodeId < Type > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for StructField { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 32u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for StructField { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < FieldName , 7u16 > (& mut name) ? . on_field_id :: < Type , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Type { pub children : auto_lsp :: core :: ast :: AstNodeId < Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Type { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 34u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Type { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_children_id (& mut children) }) ; Ok (Self { children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Typedef { pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordType > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub value : auto_lsp :: core :: ast :: AstNodeId < Enum_Struct > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Typedef { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 28u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Typedef { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut keyword = Ok (None) ; ; let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < KeywordType , 5u16 > (& mut keyword) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_field_id :: < Enum_Struct , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Typeref { pub children : auto_lsp :: core :: ast :: AstNodeId < Name > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Typeref { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 39u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Typeref { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_children_id (& mut children) }) ; Ok (Self { children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Name) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_LeftParen { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_LeftParen { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 9u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_LeftParen { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_RightParen { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_RightParen { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 11u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_RightParen { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_Comma { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_Comma { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 10u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_Comma { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_Colon { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_Colon { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 12u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_Colon { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_LeftBracket { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_LeftBracket { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 14u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_LeftBracket { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_RightBracket { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_RightBracket { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 15u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_RightBracket { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Arrow { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Arrow { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 8u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Arrow { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Bool { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Bool { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 16u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Bool { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Comment { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Comment { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Eol { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Eol { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 3u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Eol { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct FieldName { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for FieldName { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 22u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for FieldName { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Float { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Float { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 18u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Float { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Int { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Int { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 17u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Int { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct InterfaceName { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for InterfaceName { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 23u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for InterfaceName { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordError { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordError { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 6u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordError { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordInterface { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordInterface { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 4u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordInterface { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordMethod { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordMethod { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 7u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordMethod { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordType { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordType { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 5u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordType { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Name { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Name { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 21u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Name { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Object { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Object { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 20u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Object { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Questionmark { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Questionmark { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 13u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Questionmark { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct String { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for String { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 19u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for String { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub enum Comment_Eol_Error_Method_Typedef { Comment (Comment) , Eol (Eol) , Error (Error) , Method (Method) , Typedef (Typedef) } impl auto_lsp :: core :: ast :: AstNode for Comment_Eol_Error_Method_Typedef { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16 | 3u16 | 29u16 | 30u16 | 28u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Comment (node) => node . lower () , Self :: Eol (node) => node . lower () , Self :: Error (node) => node . lower () , Self :: Method (node) => node . lower () , Self :: Typedef (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Comment (node) => node . get_id () , Self :: Eol (node) => node . get_id () , Self :: Error (node) => node . get_id () , Self :: Method (node) => node . get_id () , Self :: Typedef (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Comment (node) => node . get_parent_id () , Self :: Eol (node) => node . get_parent_id () , Self :: Error (node) => node . get_parent_id () , Self :: Method (node) => node . get_parent_id () , Self :: Typedef (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Comment (node) => node . get_range () , Self :: Eol (node) => node . get_range () , Self :: Error (node) => node . get_range () , Self :: Method (node) => node . get_range () , Self :: Typedef (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment_Eol_Error_Method_Typedef { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 2u16 => Ok (Self :: Comment (Comment :: try_from ((node , db , builder , id , parent_id)) ?)) , 3u16 => Ok (Self :: Eol (Eol :: try_from ((node , db , builder , id , parent_id)) ?)) , 29u16 => Ok (Self :: Error (Error :: try_from ((node , db , builder , id , parent_id)) ?)) , 30u16 => Ok (Self :: Method (Method :: try_from ((node , db , builder , id , parent_id)) ?)) , 28u16 => Ok (Self :: Typedef (Typedef :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Comment_Eol_Error_Method_Typedef) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { Array (Array) , Bool (Bool) , Dict (Dict) , Enum (Enum) , Float (Float) , Int (Int) , Maybe (Maybe) , Object (Object) , String (String) , Struct (Struct) , Typeref (Typeref) } impl auto_lsp :: core :: ast :: AstNode for Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 37u16 | 16u16 | 38u16 | 33u16 | 18u16 | 17u16 | 35u16 | 20u16 | 19u16 | 31u16 | 39u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Array (node) => node . lower () , Self :: Bool (node) => node . lower () , Self :: Dict (node) => node . lower () , Self :: Enum (node) => node . lower () , Self :: Float (node) => node . lower () , Self :: Int (node) => node . lower () , Self :: Maybe (node) => node . lower () , Self :: Object (node) => node . lower () , Self :: String (node) => node . lower () , Self :: Struct (node) => node . lower () , Self :: Typeref (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Array (node) => node . get_id () , Self :: Bool (node) => node . get_id () , Self :: Dict (node) => node . get_id () , Self :: Enum (node) => node . get_id () , Self :: Float (node) => node . get_id () , Self :: Int (node) => node . get_id () , Self :: Maybe (node) => node . get_id () , Self :: Object (node) => node . get_id () , Self :: String (node) => node . get_id () , Self :: Struct (node) => node . get_id () , Self :: Typeref (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Array (node) => node . get_parent_id () , Self :: Bool (node) => node . get_parent_id () , Self :: Dict (node) => node . get_parent_id () , Self :: Enum (node) => node . get_parent_id () , Self :: Float (node) => node . get_parent_id () , Self :: Int (node) => node . get_parent_id () , Self :: Maybe (node) => node . get_parent_id () , Self :: Object (node) => node . get_parent_id () , Self :: String (node) => node . get_parent_id () , Self :: Struct (node) => node . get_parent_id () , Self :: Typeref (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Array (node) => node . get_range () , Self :: Bool (node) => node . get_range () , Self :: Dict (node) => node . get_range () , Self :: Enum (node) => node . get_range () , Self :: Float (node) => node . get_range () , Self :: Int (node) => node . get_range () , Self :: Maybe (node) => node . get_range () , Self :: Object (node) => node . get_range () , Self :: String (node) => node . get_range () , Self :: Struct (node) => node . get_range () , Self :: Typeref (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 37u16 => Ok (Self :: Array (Array :: try_from ((node , db , builder , id , parent_id)) ?)) , 16u16 => Ok (Self :: Bool (Bool :: try_from ((node , db , builder , id , parent_id)) ?)) , 38u16 => Ok (Self :: Dict (Dict :: try_from ((node , db , builder , id , parent_id)) ?)) , 33u16 => Ok (Self :: Enum (Enum :: try_from ((node , db , builder , id , parent_id)) ?)) , 18u16 => Ok (Self :: Float (Float :: try_from ((node , db , builder , id , parent_id)) ?)) , 17u16 => Ok (Self :: Int (Int :: try_from ((node , db , builder , id , parent_id)) ?)) , 35u16 => Ok (Self :: Maybe (Maybe :: try_from ((node , db , builder , id , parent_id)) ?)) , 20u16 => Ok (Self :: Object (Object :: try_from ((node , db , builder , id , parent_id)) ?)) , 19u16 => Ok (Self :: String (String :: try_from ((node , db , builder , id , parent_id)) ?)) , 31u16 => Ok (Self :: Struct (Struct :: try_from ((node , db , builder , id , parent_id)) ?)) , 39u16 => Ok (Self :: Typeref (Typeref :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Enum_Struct { Enum (Enum) , Struct (Struct) } impl auto_lsp :: core :: ast :: AstNode for Enum_Struct { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 33u16 | 31u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Enum (node) => node . lower () , Self :: Struct (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Enum (node) => node . get_id () , Self :: Struct (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Enum (node) => node . get_parent_id () , Self :: Struct (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Enum (node) => node . get_range () , Self :: Struct (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Enum_Struct { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 33u16 => Ok (Self :: Enum (Enum :: try_from ((node , db , builder , id , parent_id)) ?)) , 31u16 => Ok (Self :: Struct (Struct :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Enum_Struct) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Comment_Eol { Comment (Comment) , Eol (Eol) } impl auto_lsp :: core :: ast :: AstNode for Comment_Eol { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16 | 3u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Comment (node) => node . lower () , Self :: Eol (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Comment (node) => node . get_id () , Self :: Eol (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Comment (node) => node . get_parent_id () , Self :: Eol (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Comment (node) => node . get_range () , Self :: Eol (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment_Eol { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 2u16 => Ok (Self :: Comment (Comment :: try_from ((node , db , builder , id , parent_id)) ?)) , 3u16 => Ok (Self :: Eol (Eol :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Comment_Eol) , }) } } }
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `AstNodeId` in module `auto_lsp::core::ast`
[INFO] [stdout]   --> src/ast.rs:1:12158
[INFO] [stdout]    |
[INFO] [stdout]  1 | ...AstNodeId < Arrow > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub children : Vec < auto_lsp :: core :: ast :: ...
[INFO] [stdout]    |                                                                ^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]   ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/auto-lsp-core-0.7.0/src/ast/node.rs:26:1
[INFO] [stdout]    |
[INFO] [stdout] 26 | pub trait AstNode: std::fmt::Debug + Send + Sync + DowncastSync {
[INFO] [stdout]    | --------------------------------------------------------------- similarly named trait `AstNode` defined here
[INFO] [stdout]    |
[INFO] [stdout] help: a trait with a similar name exists
[INFO] [stdout]    |
[INFO] [stdout]  1 - # ! [allow (clippy :: all)] # ! [allow (unused)] # ! [allow (dead_code)] # ! [allow (non_camel_case_types)] # ! [allow (non_snake_case)] # [derive (Debug , Clone , PartialEq)] pub struct Array { pub Type : auto_lsp :: core :: ast :: AstNodeId < Type > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Array { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 37u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Array { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut Type = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Type , 10u16 > (& mut Type) }) ; Ok (Self { Type : Type ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Type) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Dict { pub Type : auto_lsp :: core :: ast :: AstNodeId < Type > , pub children : auto_lsp :: core :: ast :: AstNodeId < String > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Dict { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 38u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Dict { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut Type = Ok (None) ; ; let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Type , 10u16 > (& mut Type) ? . on_children_id (& mut children) }) ; Ok (Self { Type : Type ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Type) , } }) ? , children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (String) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Enum { pub member : Vec < auto_lsp :: core :: ast :: AstNodeId < FieldName >> , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Enum { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 33u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Enum { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut member = vec ! [] ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_vec_field_id :: < FieldName , 6u16 > (& mut member) ? . on_vec_children_id (& mut children) }) ; Ok (Self { member , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Error { pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordError > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub value : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Error { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 29u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Error { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut keyword = Ok (None) ; ; let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < KeywordError , 5u16 > (& mut keyword) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_field_id :: < Struct , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Interface { pub declaration : auto_lsp :: core :: ast :: AstNodeId < InterfaceDeclaration > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol_Error_Method_Typedef >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Interface { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 24u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Interface { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut declaration = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < InterfaceDeclaration , 2u16 > (& mut declaration) ? . on_vec_children_id (& mut children) }) ; Ok (Self { declaration : declaration ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (declaration) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct InterfaceDeclaration { pub name : auto_lsp :: core :: ast :: AstNodeId < InterfaceName > , pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordInterface > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for InterfaceDeclaration { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 27u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for InterfaceDeclaration { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut name = Ok (None) ; ; let mut keyword = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < InterfaceName , 7u16 > (& mut name) ? . on_field_id :: < KeywordInterface , 5u16 > (& mut keyword) ? . on_vec_children_id (& mut children) }) ; Ok (Self { name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Maybe { pub questionmark : auto_lsp :: core :: ast :: AstNodeId < Questionmark > , pub just : auto_lsp :: core :: ast :: AstNodeId < Type > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Maybe { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 35u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Maybe { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut questionmark = Ok (None) ; ; let mut just = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Questionmark , 9u16 > (& mut questionmark) ? . on_field_id :: < Type , 4u16 > (& mut just) }) ; Ok (Self { questionmark : questionmark ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (questionmark) , } }) ? , just : just ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (just) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Method { pub input : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub output : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordMethod > , pub arrow : auto_lsp :: core :: ast :: AstNodeId < Arrow > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Method { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 30u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Method { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut input = Ok (None) ; ; let mut output = Ok (None) ; ; let mut keyword = Ok (None) ; ; let mut arrow = Ok (None) ; ; let mut name = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Struct , 3u16 > (& mut input) ? . on_field_id :: < Struct , 8u16 > (& mut output) ? . on_field_id :: < KeywordMethod , 5u16 > (& mut keyword) ? . on_field_id :: < Arrow , 1u16 > (& mut arrow) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_vec_children_id (& mut children) }) ; Ok (Self { input : input ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (input) , } }) ? , output : output ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (output) , } }) ? , keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , arrow : arrow ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (arrow) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Struct { pub member : Vec < auto_lsp :: core :: ast :: AstNodeId < StructField >> , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Struct { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 31u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Struct { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut member = vec ! [] ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_vec_field_id :: < StructField , 6u16 > (& mut member) ? . on_vec_children_id (& mut children) }) ; Ok (Self { member , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct StructField { pub name : auto_lsp :: core :: ast :: AstNodeId < FieldName > , pub value : auto_lsp :: core :: ast :: AstNodeId < Type > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for StructField { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 32u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for StructField { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < FieldName , 7u16 > (& mut name) ? . on_field_id :: < Type , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Type { pub children : auto_lsp :: core :: ast :: AstNodeId < Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Type { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 34u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Type { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_children_id (& mut children) }) ; Ok (Self { children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Typedef { pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordType > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub value : auto_lsp :: core :: ast :: AstNodeId < Enum_Struct > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Typedef { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 28u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Typedef { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut keyword = Ok (None) ; ; let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < KeywordType , 5u16 > (& mut keyword) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_field_id :: < Enum_Struct , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Typeref { pub children : auto_lsp :: core :: ast :: AstNodeId < Name > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Typeref { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 39u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Typeref { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_children_id (& mut children) }) ; Ok (Self { children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Name) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_LeftParen { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_LeftParen { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 9u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_LeftParen { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_RightParen { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_RightParen { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 11u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_RightParen { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_Comma { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_Comma { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 10u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_Comma { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_Colon { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_Colon { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 12u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_Colon { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_LeftBracket { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_LeftBracket { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 14u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_LeftBracket { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_RightBracket { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_RightBracket { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 15u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_RightBracket { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Arrow { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Arrow { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 8u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Arrow { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Bool { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Bool { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 16u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Bool { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Comment { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Comment { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Eol { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Eol { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 3u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Eol { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct FieldName { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for FieldName { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 22u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for FieldName { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Float { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Float { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 18u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Float { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Int { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Int { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 17u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Int { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct InterfaceName { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for InterfaceName { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 23u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for InterfaceName { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordError { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordError { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 6u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordError { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordInterface { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordInterface { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 4u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordInterface { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordMethod { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordMethod { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 7u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordMethod { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordType { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordType { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 5u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordType { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Name { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Name { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 21u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Name { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Object { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Object { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 20u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Object { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Questionmark { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Questionmark { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 13u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Questionmark { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct String { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for String { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 19u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for String { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub enum Comment_Eol_Error_Method_Typedef { Comment (Comment) , Eol (Eol) , Error (Error) , Method (Method) , Typedef (Typedef) } impl auto_lsp :: core :: ast :: AstNode for Comment_Eol_Error_Method_Typedef { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16 | 3u16 | 29u16 | 30u16 | 28u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Comment (node) => node . lower () , Self :: Eol (node) => node . lower () , Self :: Error (node) => node . lower () , Self :: Method (node) => node . lower () , Self :: Typedef (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Comment (node) => node . get_id () , Self :: Eol (node) => node . get_id () , Self :: Error (node) => node . get_id () , Self :: Method (node) => node . get_id () , Self :: Typedef (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Comment (node) => node . get_parent_id () , Self :: Eol (node) => node . get_parent_id () , Self :: Error (node) => node . get_parent_id () , Self :: Method (node) => node . get_parent_id () , Self :: Typedef (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Comment (node) => node . get_range () , Self :: Eol (node) => node . get_range () , Self :: Error (node) => node . get_range () , Self :: Method (node) => node . get_range () , Self :: Typedef (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment_Eol_Error_Method_Typedef { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 2u16 => Ok (Self :: Comment (Comment :: try_from ((node , db , builder , id , parent_id)) ?)) , 3u16 => Ok (Self :: Eol (Eol :: try_from ((node , db , builder , id , parent_id)) ?)) , 29u16 => Ok (Self :: Error (Error :: try_from ((node , db , builder , id , parent_id)) ?)) , 30u16 => Ok (Self :: Method (Method :: try_from ((node , db , builder , id , parent_id)) ?)) , 28u16 => Ok (Self :: Typedef (Typedef :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Comment_Eol_Error_Method_Typedef) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { Array (Array) , Bool (Bool) , Dict (Dict) , Enum (Enum) , Float (Float) , Int (Int) , Maybe (Maybe) , Object (Object) , String (String) , Struct (Struct) , Typeref (Typeref) } impl auto_lsp :: core :: ast :: AstNode for Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 37u16 | 16u16 | 38u16 | 33u16 | 18u16 | 17u16 | 35u16 | 20u16 | 19u16 | 31u16 | 39u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Array (node) => node . lower () , Self :: Bool (node) => node . lower () , Self :: Dict (node) => node . lower () , Self :: Enum (node) => node . lower () , Self :: Float (node) => node . lower () , Self :: Int (node) => node . lower () , Self :: Maybe (node) => node . lower () , Self :: Object (node) => node . lower () , Self :: String (node) => node . lower () , Self :: Struct (node) => node . lower () , Self :: Typeref (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Array (node) => node . get_id () , Self :: Bool (node) => node . get_id () , Self :: Dict (node) => node . get_id () , Self :: Enum (node) => node . get_id () , Self :: Float (node) => node . get_id () , Self :: Int (node) => node . get_id () , Self :: Maybe (node) => node . get_id () , Self :: Object (node) => node . get_id () , Self :: String (node) => node . get_id () , Self :: Struct (node) => node . get_id () , Self :: Typeref (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Array (node) => node . get_parent_id () , Self :: Bool (node) => node . get_parent_id () , Self :: Dict (node) => node . get_parent_id () , Self :: Enum (node) => node . get_parent_id () , Self :: Float (node) => node . get_parent_id () , Self :: Int (node) => node . get_parent_id () , Self :: Maybe (node) => node . get_parent_id () , Self :: Object (node) => node . get_parent_id () , Self :: String (node) => node . get_parent_id () , Self :: Struct (node) => node . get_parent_id () , Self :: Typeref (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Array (node) => node . get_range () , Self :: Bool (node) => node . get_range () , Self :: Dict (node) => node . get_range () , Self :: Enum (node) => node . get_range () , Self :: Float (node) => node . get_range () , Self :: Int (node) => node . get_range () , Self :: Maybe (node) => node . get_range () , Self :: Object (node) => node . get_range () , Self :: String (node) => node . get_range () , Self :: Struct (node) => node . get_range () , Self :: Typeref (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 37u16 => Ok (Self :: Array (Array :: try_from ((node , db , builder , id , parent_id)) ?)) , 16u16 => Ok (Self :: Bool (Bool :: try_from ((node , db , builder , id , parent_id)) ?)) , 38u16 => Ok (Self :: Dict (Dict :: try_from ((node , db , builder , id , parent_id)) ?)) , 33u16 => Ok (Self :: Enum (Enum :: try_from ((node , db , builder , id , parent_id)) ?)) , 18u16 => Ok (Self :: Float (Float :: try_from ((node , db , builder , id , parent_id)) ?)) , 17u16 => Ok (Self :: Int (Int :: try_from ((node , db , builder , id , parent_id)) ?)) , 35u16 => Ok (Self :: Maybe (Maybe :: try_from ((node , db , builder , id , parent_id)) ?)) , 20u16 => Ok (Self :: Object (Object :: try_from ((node , db , builder , id , parent_id)) ?)) , 19u16 => Ok (Self :: String (String :: try_from ((node , db , builder , id , parent_id)) ?)) , 31u16 => Ok (Self :: Struct (Struct :: try_from ((node , db , builder , id , parent_id)) ?)) , 39u16 => Ok (Self :: Typeref (Typeref :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Enum_Struct { Enum (Enum) , Struct (Struct) } impl auto_lsp :: core :: ast :: AstNode for Enum_Struct { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 33u16 | 31u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Enum (node) => node . lower () , Self :: Struct (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Enum (node) => node . get_id () , Self :: Struct (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Enum (node) => node . get_parent_id () , Self :: Struct (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Enum (node) => node . get_range () , Self :: Struct (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Enum_Struct { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 33u16 => Ok (Self :: Enum (Enum :: try_from ((node , db , builder , id , parent_id)) ?)) , 31u16 => Ok (Self :: Struct (Struct :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Enum_Struct) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Comment_Eol { Comment (Comment) , Eol (Eol) } impl auto_lsp :: core :: ast :: AstNode for Comment_Eol { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16 | 3u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Comment (node) => node . lower () , Self :: Eol (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Comment (node) => node . get_id () , Self :: Eol (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Comment (node) => node . get_parent_id () , Self :: Eol (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Comment (node) => node . get_range () , Self :: Eol (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment_Eol { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 2u16 => Ok (Self :: Comment (Comment :: try_from ((node , db , builder , id , parent_id)) ?)) , 3u16 => Ok (Self :: Eol (Eol :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Comment_Eol) , }) } } }
[INFO] [stdout]  1 + # ! [allow (clippy :: all)] # ! [allow (unused)] # ! [allow (dead_code)] # ! [allow (non_camel_case_types)] # ! [allow (non_snake_case)] # [derive (Debug , Clone , PartialEq)] pub struct Array { pub Type : auto_lsp :: core :: ast :: AstNodeId < Type > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Array { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 37u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Array { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut Type = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Type , 10u16 > (& mut Type) }) ; Ok (Self { Type : Type ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Type) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Dict { pub Type : auto_lsp :: core :: ast :: AstNodeId < Type > , pub children : auto_lsp :: core :: ast :: AstNodeId < String > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Dict { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 38u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Dict { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut Type = Ok (None) ; ; let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Type , 10u16 > (& mut Type) ? . on_children_id (& mut children) }) ; Ok (Self { Type : Type ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Type) , } }) ? , children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (String) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Enum { pub member : Vec < auto_lsp :: core :: ast :: AstNodeId < FieldName >> , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Enum { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 33u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Enum { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut member = vec ! [] ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_vec_field_id :: < FieldName , 6u16 > (& mut member) ? . on_vec_children_id (& mut children) }) ; Ok (Self { member , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Error { pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordError > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub value : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Error { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 29u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Error { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut keyword = Ok (None) ; ; let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < KeywordError , 5u16 > (& mut keyword) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_field_id :: < Struct , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Interface { pub declaration : auto_lsp :: core :: ast :: AstNodeId < InterfaceDeclaration > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol_Error_Method_Typedef >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Interface { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 24u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Interface { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut declaration = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < InterfaceDeclaration , 2u16 > (& mut declaration) ? . on_vec_children_id (& mut children) }) ; Ok (Self { declaration : declaration ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (declaration) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct InterfaceDeclaration { pub name : auto_lsp :: core :: ast :: AstNodeId < InterfaceName > , pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordInterface > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for InterfaceDeclaration { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 27u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for InterfaceDeclaration { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut name = Ok (None) ; ; let mut keyword = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < InterfaceName , 7u16 > (& mut name) ? . on_field_id :: < KeywordInterface , 5u16 > (& mut keyword) ? . on_vec_children_id (& mut children) }) ; Ok (Self { name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Maybe { pub questionmark : auto_lsp :: core :: ast :: AstNodeId < Questionmark > , pub just : auto_lsp :: core :: ast :: AstNodeId < Type > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Maybe { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 35u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Maybe { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut questionmark = Ok (None) ; ; let mut just = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Questionmark , 9u16 > (& mut questionmark) ? . on_field_id :: < Type , 4u16 > (& mut just) }) ; Ok (Self { questionmark : questionmark ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (questionmark) , } }) ? , just : just ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (just) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Method { pub input : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub output : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordMethod > , pub arrow : auto_lsp :: core :: ast :: AstNodeId < Arrow > , pub name : auto_lsp :: core :: ast :: AstNode < Name > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Method { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 30u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Method { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut input = Ok (None) ; ; let mut output = Ok (None) ; ; let mut keyword = Ok (None) ; ; let mut arrow = Ok (None) ; ; let mut name = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Struct , 3u16 > (& mut input) ? . on_field_id :: < Struct , 8u16 > (& mut output) ? . on_field_id :: < KeywordMethod , 5u16 > (& mut keyword) ? . on_field_id :: < Arrow , 1u16 > (& mut arrow) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_vec_children_id (& mut children) }) ; Ok (Self { input : input ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (input) , } }) ? , output : output ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (output) , } }) ? , keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , arrow : arrow ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (arrow) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Struct { pub member : Vec < auto_lsp :: core :: ast :: AstNodeId < StructField >> , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Struct { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 31u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Struct { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut member = vec ! [] ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_vec_field_id :: < StructField , 6u16 > (& mut member) ? . on_vec_children_id (& mut children) }) ; Ok (Self { member , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct StructField { pub name : auto_lsp :: core :: ast :: AstNodeId < FieldName > , pub value : auto_lsp :: core :: ast :: AstNodeId < Type > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for StructField { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 32u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for StructField { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < FieldName , 7u16 > (& mut name) ? . on_field_id :: < Type , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Type { pub children : auto_lsp :: core :: ast :: AstNodeId < Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Type { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 34u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Type { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_children_id (& mut children) }) ; Ok (Self { children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Typedef { pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordType > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub value : auto_lsp :: core :: ast :: AstNodeId < Enum_Struct > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Typedef { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 28u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Typedef { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut keyword = Ok (None) ; ; let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < KeywordType , 5u16 > (& mut keyword) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_field_id :: < Enum_Struct , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Typeref { pub children : auto_lsp :: core :: ast :: AstNodeId < Name > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Typeref { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 39u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Typeref { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_children_id (& mut children) }) ; Ok (Self { children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Name) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_LeftParen { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_LeftParen { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 9u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_LeftParen { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_RightParen { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_RightParen { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 11u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_RightParen { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_Comma { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_Comma { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 10u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_Comma { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_Colon { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_Colon { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 12u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_Colon { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_LeftBracket { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_LeftBracket { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 14u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_LeftBracket { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_RightBracket { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_RightBracket { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 15u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_RightBracket { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Arrow { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Arrow { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 8u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Arrow { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Bool { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Bool { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 16u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Bool { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Comment { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Comment { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Eol { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Eol { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 3u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Eol { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct FieldName { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for FieldName { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 22u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for FieldName { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Float { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Float { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 18u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Float { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Int { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Int { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 17u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Int { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct InterfaceName { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for InterfaceName { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 23u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for InterfaceName { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordError { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordError { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 6u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordError { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordInterface { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordInterface { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 4u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordInterface { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordMethod { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordMethod { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 7u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordMethod { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordType { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordType { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 5u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordType { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Name { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Name { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 21u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Name { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Object { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Object { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 20u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Object { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Questionmark { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Questionmark { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 13u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Questionmark { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct String { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for String { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 19u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for String { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub enum Comment_Eol_Error_Method_Typedef { Comment (Comment) , Eol (Eol) , Error (Error) , Method (Method) , Typedef (Typedef) } impl auto_lsp :: core :: ast :: AstNode for Comment_Eol_Error_Method_Typedef { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16 | 3u16 | 29u16 | 30u16 | 28u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Comment (node) => node . lower () , Self :: Eol (node) => node . lower () , Self :: Error (node) => node . lower () , Self :: Method (node) => node . lower () , Self :: Typedef (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Comment (node) => node . get_id () , Self :: Eol (node) => node . get_id () , Self :: Error (node) => node . get_id () , Self :: Method (node) => node . get_id () , Self :: Typedef (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Comment (node) => node . get_parent_id () , Self :: Eol (node) => node . get_parent_id () , Self :: Error (node) => node . get_parent_id () , Self :: Method (node) => node . get_parent_id () , Self :: Typedef (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Comment (node) => node . get_range () , Self :: Eol (node) => node . get_range () , Self :: Error (node) => node . get_range () , Self :: Method (node) => node . get_range () , Self :: Typedef (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment_Eol_Error_Method_Typedef { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 2u16 => Ok (Self :: Comment (Comment :: try_from ((node , db , builder , id , parent_id)) ?)) , 3u16 => Ok (Self :: Eol (Eol :: try_from ((node , db , builder , id , parent_id)) ?)) , 29u16 => Ok (Self :: Error (Error :: try_from ((node , db , builder , id , parent_id)) ?)) , 30u16 => Ok (Self :: Method (Method :: try_from ((node , db , builder , id , parent_id)) ?)) , 28u16 => Ok (Self :: Typedef (Typedef :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Comment_Eol_Error_Method_Typedef) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { Array (Array) , Bool (Bool) , Dict (Dict) , Enum (Enum) , Float (Float) , Int (Int) , Maybe (Maybe) , Object (Object) , String (String) , Struct (Struct) , Typeref (Typeref) } impl auto_lsp :: core :: ast :: AstNode for Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 37u16 | 16u16 | 38u16 | 33u16 | 18u16 | 17u16 | 35u16 | 20u16 | 19u16 | 31u16 | 39u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Array (node) => node . lower () , Self :: Bool (node) => node . lower () , Self :: Dict (node) => node . lower () , Self :: Enum (node) => node . lower () , Self :: Float (node) => node . lower () , Self :: Int (node) => node . lower () , Self :: Maybe (node) => node . lower () , Self :: Object (node) => node . lower () , Self :: String (node) => node . lower () , Self :: Struct (node) => node . lower () , Self :: Typeref (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Array (node) => node . get_id () , Self :: Bool (node) => node . get_id () , Self :: Dict (node) => node . get_id () , Self :: Enum (node) => node . get_id () , Self :: Float (node) => node . get_id () , Self :: Int (node) => node . get_id () , Self :: Maybe (node) => node . get_id () , Self :: Object (node) => node . get_id () , Self :: String (node) => node . get_id () , Self :: Struct (node) => node . get_id () , Self :: Typeref (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Array (node) => node . get_parent_id () , Self :: Bool (node) => node . get_parent_id () , Self :: Dict (node) => node . get_parent_id () , Self :: Enum (node) => node . get_parent_id () , Self :: Float (node) => node . get_parent_id () , Self :: Int (node) => node . get_parent_id () , Self :: Maybe (node) => node . get_parent_id () , Self :: Object (node) => node . get_parent_id () , Self :: String (node) => node . get_parent_id () , Self :: Struct (node) => node . get_parent_id () , Self :: Typeref (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Array (node) => node . get_range () , Self :: Bool (node) => node . get_range () , Self :: Dict (node) => node . get_range () , Self :: Enum (node) => node . get_range () , Self :: Float (node) => node . get_range () , Self :: Int (node) => node . get_range () , Self :: Maybe (node) => node . get_range () , Self :: Object (node) => node . get_range () , Self :: String (node) => node . get_range () , Self :: Struct (node) => node . get_range () , Self :: Typeref (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 37u16 => Ok (Self :: Array (Array :: try_from ((node , db , builder , id , parent_id)) ?)) , 16u16 => Ok (Self :: Bool (Bool :: try_from ((node , db , builder , id , parent_id)) ?)) , 38u16 => Ok (Self :: Dict (Dict :: try_from ((node , db , builder , id , parent_id)) ?)) , 33u16 => Ok (Self :: Enum (Enum :: try_from ((node , db , builder , id , parent_id)) ?)) , 18u16 => Ok (Self :: Float (Float :: try_from ((node , db , builder , id , parent_id)) ?)) , 17u16 => Ok (Self :: Int (Int :: try_from ((node , db , builder , id , parent_id)) ?)) , 35u16 => Ok (Self :: Maybe (Maybe :: try_from ((node , db , builder , id , parent_id)) ?)) , 20u16 => Ok (Self :: Object (Object :: try_from ((node , db , builder , id , parent_id)) ?)) , 19u16 => Ok (Self :: String (String :: try_from ((node , db , builder , id , parent_id)) ?)) , 31u16 => Ok (Self :: Struct (Struct :: try_from ((node , db , builder , id , parent_id)) ?)) , 39u16 => Ok (Self :: Typeref (Typeref :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Enum_Struct { Enum (Enum) , Struct (Struct) } impl auto_lsp :: core :: ast :: AstNode for Enum_Struct { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 33u16 | 31u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Enum (node) => node . lower () , Self :: Struct (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Enum (node) => node . get_id () , Self :: Struct (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Enum (node) => node . get_parent_id () , Self :: Struct (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Enum (node) => node . get_range () , Self :: Struct (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Enum_Struct { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 33u16 => Ok (Self :: Enum (Enum :: try_from ((node , db , builder , id , parent_id)) ?)) , 31u16 => Ok (Self :: Struct (Struct :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Enum_Struct) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Comment_Eol { Comment (Comment) , Eol (Eol) } impl auto_lsp :: core :: ast :: AstNode for Comment_Eol { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16 | 3u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Comment (node) => node . lower () , Self :: Eol (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Comment (node) => node . get_id () , Self :: Eol (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Comment (node) => node . get_parent_id () , Self :: Eol (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Comment (node) => node . get_range () , Self :: Eol (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment_Eol { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 2u16 => Ok (Self :: Comment (Comment :: try_from ((node , db , builder , id , parent_id)) ?)) , 3u16 => Ok (Self :: Eol (Eol :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Comment_Eol) , }) } } }
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `AstNodeId` in module `auto_lsp::core::ast`
[INFO] [stdout]   --> src/ast.rs:1:12227
[INFO] [stdout]    |
[INFO] [stdout]  1 | ... < Name > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Rang...
[INFO] [stdout]    |                                                                ^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]   ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/auto-lsp-core-0.7.0/src/ast/node.rs:26:1
[INFO] [stdout]    |
[INFO] [stdout] 26 | pub trait AstNode: std::fmt::Debug + Send + Sync + DowncastSync {
[INFO] [stdout]    | --------------------------------------------------------------- similarly named trait `AstNode` defined here
[INFO] [stdout]    |
[INFO] [stdout] help: a trait with a similar name exists
[INFO] [stdout]    |
[INFO] [stdout]  1 - # ! [allow (clippy :: all)] # ! [allow (unused)] # ! [allow (dead_code)] # ! [allow (non_camel_case_types)] # ! [allow (non_snake_case)] # [derive (Debug , Clone , PartialEq)] pub struct Array { pub Type : auto_lsp :: core :: ast :: AstNodeId < Type > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Array { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 37u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Array { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut Type = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Type , 10u16 > (& mut Type) }) ; Ok (Self { Type : Type ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Type) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Dict { pub Type : auto_lsp :: core :: ast :: AstNodeId < Type > , pub children : auto_lsp :: core :: ast :: AstNodeId < String > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Dict { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 38u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Dict { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut Type = Ok (None) ; ; let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Type , 10u16 > (& mut Type) ? . on_children_id (& mut children) }) ; Ok (Self { Type : Type ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Type) , } }) ? , children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (String) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Enum { pub member : Vec < auto_lsp :: core :: ast :: AstNodeId < FieldName >> , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Enum { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 33u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Enum { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut member = vec ! [] ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_vec_field_id :: < FieldName , 6u16 > (& mut member) ? . on_vec_children_id (& mut children) }) ; Ok (Self { member , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Error { pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordError > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub value : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Error { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 29u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Error { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut keyword = Ok (None) ; ; let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < KeywordError , 5u16 > (& mut keyword) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_field_id :: < Struct , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Interface { pub declaration : auto_lsp :: core :: ast :: AstNodeId < InterfaceDeclaration > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol_Error_Method_Typedef >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Interface { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 24u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Interface { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut declaration = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < InterfaceDeclaration , 2u16 > (& mut declaration) ? . on_vec_children_id (& mut children) }) ; Ok (Self { declaration : declaration ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (declaration) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct InterfaceDeclaration { pub name : auto_lsp :: core :: ast :: AstNodeId < InterfaceName > , pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordInterface > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for InterfaceDeclaration { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 27u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for InterfaceDeclaration { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut name = Ok (None) ; ; let mut keyword = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < InterfaceName , 7u16 > (& mut name) ? . on_field_id :: < KeywordInterface , 5u16 > (& mut keyword) ? . on_vec_children_id (& mut children) }) ; Ok (Self { name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Maybe { pub questionmark : auto_lsp :: core :: ast :: AstNodeId < Questionmark > , pub just : auto_lsp :: core :: ast :: AstNodeId < Type > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Maybe { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 35u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Maybe { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut questionmark = Ok (None) ; ; let mut just = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Questionmark , 9u16 > (& mut questionmark) ? . on_field_id :: < Type , 4u16 > (& mut just) }) ; Ok (Self { questionmark : questionmark ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (questionmark) , } }) ? , just : just ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (just) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Method { pub input : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub output : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordMethod > , pub arrow : auto_lsp :: core :: ast :: AstNodeId < Arrow > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Method { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 30u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Method { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut input = Ok (None) ; ; let mut output = Ok (None) ; ; let mut keyword = Ok (None) ; ; let mut arrow = Ok (None) ; ; let mut name = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Struct , 3u16 > (& mut input) ? . on_field_id :: < Struct , 8u16 > (& mut output) ? . on_field_id :: < KeywordMethod , 5u16 > (& mut keyword) ? . on_field_id :: < Arrow , 1u16 > (& mut arrow) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_vec_children_id (& mut children) }) ; Ok (Self { input : input ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (input) , } }) ? , output : output ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (output) , } }) ? , keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , arrow : arrow ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (arrow) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Struct { pub member : Vec < auto_lsp :: core :: ast :: AstNodeId < StructField >> , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Struct { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 31u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Struct { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut member = vec ! [] ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_vec_field_id :: < StructField , 6u16 > (& mut member) ? . on_vec_children_id (& mut children) }) ; Ok (Self { member , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct StructField { pub name : auto_lsp :: core :: ast :: AstNodeId < FieldName > , pub value : auto_lsp :: core :: ast :: AstNodeId < Type > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for StructField { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 32u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for StructField { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < FieldName , 7u16 > (& mut name) ? . on_field_id :: < Type , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Type { pub children : auto_lsp :: core :: ast :: AstNodeId < Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Type { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 34u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Type { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_children_id (& mut children) }) ; Ok (Self { children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Typedef { pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordType > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub value : auto_lsp :: core :: ast :: AstNodeId < Enum_Struct > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Typedef { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 28u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Typedef { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut keyword = Ok (None) ; ; let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < KeywordType , 5u16 > (& mut keyword) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_field_id :: < Enum_Struct , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Typeref { pub children : auto_lsp :: core :: ast :: AstNodeId < Name > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Typeref { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 39u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Typeref { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_children_id (& mut children) }) ; Ok (Self { children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Name) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_LeftParen { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_LeftParen { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 9u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_LeftParen { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_RightParen { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_RightParen { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 11u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_RightParen { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_Comma { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_Comma { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 10u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_Comma { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_Colon { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_Colon { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 12u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_Colon { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_LeftBracket { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_LeftBracket { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 14u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_LeftBracket { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_RightBracket { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_RightBracket { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 15u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_RightBracket { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Arrow { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Arrow { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 8u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Arrow { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Bool { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Bool { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 16u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Bool { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Comment { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Comment { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Eol { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Eol { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 3u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Eol { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct FieldName { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for FieldName { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 22u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for FieldName { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Float { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Float { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 18u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Float { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Int { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Int { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 17u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Int { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct InterfaceName { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for InterfaceName { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 23u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for InterfaceName { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordError { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordError { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 6u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordError { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordInterface { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordInterface { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 4u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordInterface { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordMethod { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordMethod { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 7u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordMethod { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordType { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordType { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 5u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordType { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Name { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Name { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 21u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Name { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Object { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Object { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 20u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Object { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Questionmark { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Questionmark { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 13u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Questionmark { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct String { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for String { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 19u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for String { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub enum Comment_Eol_Error_Method_Typedef { Comment (Comment) , Eol (Eol) , Error (Error) , Method (Method) , Typedef (Typedef) } impl auto_lsp :: core :: ast :: AstNode for Comment_Eol_Error_Method_Typedef { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16 | 3u16 | 29u16 | 30u16 | 28u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Comment (node) => node . lower () , Self :: Eol (node) => node . lower () , Self :: Error (node) => node . lower () , Self :: Method (node) => node . lower () , Self :: Typedef (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Comment (node) => node . get_id () , Self :: Eol (node) => node . get_id () , Self :: Error (node) => node . get_id () , Self :: Method (node) => node . get_id () , Self :: Typedef (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Comment (node) => node . get_parent_id () , Self :: Eol (node) => node . get_parent_id () , Self :: Error (node) => node . get_parent_id () , Self :: Method (node) => node . get_parent_id () , Self :: Typedef (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Comment (node) => node . get_range () , Self :: Eol (node) => node . get_range () , Self :: Error (node) => node . get_range () , Self :: Method (node) => node . get_range () , Self :: Typedef (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment_Eol_Error_Method_Typedef { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 2u16 => Ok (Self :: Comment (Comment :: try_from ((node , db , builder , id , parent_id)) ?)) , 3u16 => Ok (Self :: Eol (Eol :: try_from ((node , db , builder , id , parent_id)) ?)) , 29u16 => Ok (Self :: Error (Error :: try_from ((node , db , builder , id , parent_id)) ?)) , 30u16 => Ok (Self :: Method (Method :: try_from ((node , db , builder , id , parent_id)) ?)) , 28u16 => Ok (Self :: Typedef (Typedef :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Comment_Eol_Error_Method_Typedef) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { Array (Array) , Bool (Bool) , Dict (Dict) , Enum (Enum) , Float (Float) , Int (Int) , Maybe (Maybe) , Object (Object) , String (String) , Struct (Struct) , Typeref (Typeref) } impl auto_lsp :: core :: ast :: AstNode for Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 37u16 | 16u16 | 38u16 | 33u16 | 18u16 | 17u16 | 35u16 | 20u16 | 19u16 | 31u16 | 39u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Array (node) => node . lower () , Self :: Bool (node) => node . lower () , Self :: Dict (node) => node . lower () , Self :: Enum (node) => node . lower () , Self :: Float (node) => node . lower () , Self :: Int (node) => node . lower () , Self :: Maybe (node) => node . lower () , Self :: Object (node) => node . lower () , Self :: String (node) => node . lower () , Self :: Struct (node) => node . lower () , Self :: Typeref (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Array (node) => node . get_id () , Self :: Bool (node) => node . get_id () , Self :: Dict (node) => node . get_id () , Self :: Enum (node) => node . get_id () , Self :: Float (node) => node . get_id () , Self :: Int (node) => node . get_id () , Self :: Maybe (node) => node . get_id () , Self :: Object (node) => node . get_id () , Self :: String (node) => node . get_id () , Self :: Struct (node) => node . get_id () , Self :: Typeref (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Array (node) => node . get_parent_id () , Self :: Bool (node) => node . get_parent_id () , Self :: Dict (node) => node . get_parent_id () , Self :: Enum (node) => node . get_parent_id () , Self :: Float (node) => node . get_parent_id () , Self :: Int (node) => node . get_parent_id () , Self :: Maybe (node) => node . get_parent_id () , Self :: Object (node) => node . get_parent_id () , Self :: String (node) => node . get_parent_id () , Self :: Struct (node) => node . get_parent_id () , Self :: Typeref (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Array (node) => node . get_range () , Self :: Bool (node) => node . get_range () , Self :: Dict (node) => node . get_range () , Self :: Enum (node) => node . get_range () , Self :: Float (node) => node . get_range () , Self :: Int (node) => node . get_range () , Self :: Maybe (node) => node . get_range () , Self :: Object (node) => node . get_range () , Self :: String (node) => node . get_range () , Self :: Struct (node) => node . get_range () , Self :: Typeref (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 37u16 => Ok (Self :: Array (Array :: try_from ((node , db , builder , id , parent_id)) ?)) , 16u16 => Ok (Self :: Bool (Bool :: try_from ((node , db , builder , id , parent_id)) ?)) , 38u16 => Ok (Self :: Dict (Dict :: try_from ((node , db , builder , id , parent_id)) ?)) , 33u16 => Ok (Self :: Enum (Enum :: try_from ((node , db , builder , id , parent_id)) ?)) , 18u16 => Ok (Self :: Float (Float :: try_from ((node , db , builder , id , parent_id)) ?)) , 17u16 => Ok (Self :: Int (Int :: try_from ((node , db , builder , id , parent_id)) ?)) , 35u16 => Ok (Self :: Maybe (Maybe :: try_from ((node , db , builder , id , parent_id)) ?)) , 20u16 => Ok (Self :: Object (Object :: try_from ((node , db , builder , id , parent_id)) ?)) , 19u16 => Ok (Self :: String (String :: try_from ((node , db , builder , id , parent_id)) ?)) , 31u16 => Ok (Self :: Struct (Struct :: try_from ((node , db , builder , id , parent_id)) ?)) , 39u16 => Ok (Self :: Typeref (Typeref :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Enum_Struct { Enum (Enum) , Struct (Struct) } impl auto_lsp :: core :: ast :: AstNode for Enum_Struct { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 33u16 | 31u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Enum (node) => node . lower () , Self :: Struct (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Enum (node) => node . get_id () , Self :: Struct (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Enum (node) => node . get_parent_id () , Self :: Struct (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Enum (node) => node . get_range () , Self :: Struct (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Enum_Struct { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 33u16 => Ok (Self :: Enum (Enum :: try_from ((node , db , builder , id , parent_id)) ?)) , 31u16 => Ok (Self :: Struct (Struct :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Enum_Struct) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Comment_Eol { Comment (Comment) , Eol (Eol) } impl auto_lsp :: core :: ast :: AstNode for Comment_Eol { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16 | 3u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Comment (node) => node . lower () , Self :: Eol (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Comment (node) => node . get_id () , Self :: Eol (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Comment (node) => node . get_parent_id () , Self :: Eol (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Comment (node) => node . get_range () , Self :: Eol (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment_Eol { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 2u16 => Ok (Self :: Comment (Comment :: try_from ((node , db , builder , id , parent_id)) ?)) , 3u16 => Ok (Self :: Eol (Eol :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Comment_Eol) , }) } } }
[INFO] [stdout]  1 + # ! [allow (clippy :: all)] # ! [allow (unused)] # ! [allow (dead_code)] # ! [allow (non_camel_case_types)] # ! [allow (non_snake_case)] # [derive (Debug , Clone , PartialEq)] pub struct Array { pub Type : auto_lsp :: core :: ast :: AstNodeId < Type > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Array { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 37u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Array { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut Type = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Type , 10u16 > (& mut Type) }) ; Ok (Self { Type : Type ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Type) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Dict { pub Type : auto_lsp :: core :: ast :: AstNodeId < Type > , pub children : auto_lsp :: core :: ast :: AstNodeId < String > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Dict { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 38u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Dict { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut Type = Ok (None) ; ; let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Type , 10u16 > (& mut Type) ? . on_children_id (& mut children) }) ; Ok (Self { Type : Type ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Type) , } }) ? , children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (String) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Enum { pub member : Vec < auto_lsp :: core :: ast :: AstNodeId < FieldName >> , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Enum { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 33u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Enum { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut member = vec ! [] ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_vec_field_id :: < FieldName , 6u16 > (& mut member) ? . on_vec_children_id (& mut children) }) ; Ok (Self { member , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Error { pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordError > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub value : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Error { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 29u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Error { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut keyword = Ok (None) ; ; let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < KeywordError , 5u16 > (& mut keyword) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_field_id :: < Struct , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Interface { pub declaration : auto_lsp :: core :: ast :: AstNodeId < InterfaceDeclaration > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol_Error_Method_Typedef >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Interface { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 24u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Interface { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut declaration = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < InterfaceDeclaration , 2u16 > (& mut declaration) ? . on_vec_children_id (& mut children) }) ; Ok (Self { declaration : declaration ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (declaration) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct InterfaceDeclaration { pub name : auto_lsp :: core :: ast :: AstNodeId < InterfaceName > , pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordInterface > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for InterfaceDeclaration { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 27u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for InterfaceDeclaration { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut name = Ok (None) ; ; let mut keyword = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < InterfaceName , 7u16 > (& mut name) ? . on_field_id :: < KeywordInterface , 5u16 > (& mut keyword) ? . on_vec_children_id (& mut children) }) ; Ok (Self { name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Maybe { pub questionmark : auto_lsp :: core :: ast :: AstNodeId < Questionmark > , pub just : auto_lsp :: core :: ast :: AstNodeId < Type > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Maybe { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 35u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Maybe { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut questionmark = Ok (None) ; ; let mut just = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Questionmark , 9u16 > (& mut questionmark) ? . on_field_id :: < Type , 4u16 > (& mut just) }) ; Ok (Self { questionmark : questionmark ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (questionmark) , } }) ? , just : just ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (just) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Method { pub input : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub output : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordMethod > , pub arrow : auto_lsp :: core :: ast :: AstNodeId < Arrow > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub children : Vec < auto_lsp :: core :: ast :: AstNode < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Method { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 30u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Method { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut input = Ok (None) ; ; let mut output = Ok (None) ; ; let mut keyword = Ok (None) ; ; let mut arrow = Ok (None) ; ; let mut name = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Struct , 3u16 > (& mut input) ? . on_field_id :: < Struct , 8u16 > (& mut output) ? . on_field_id :: < KeywordMethod , 5u16 > (& mut keyword) ? . on_field_id :: < Arrow , 1u16 > (& mut arrow) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_vec_children_id (& mut children) }) ; Ok (Self { input : input ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (input) , } }) ? , output : output ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (output) , } }) ? , keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , arrow : arrow ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (arrow) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Struct { pub member : Vec < auto_lsp :: core :: ast :: AstNodeId < StructField >> , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Struct { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 31u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Struct { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut member = vec ! [] ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_vec_field_id :: < StructField , 6u16 > (& mut member) ? . on_vec_children_id (& mut children) }) ; Ok (Self { member , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct StructField { pub name : auto_lsp :: core :: ast :: AstNodeId < FieldName > , pub value : auto_lsp :: core :: ast :: AstNodeId < Type > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for StructField { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 32u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for StructField { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < FieldName , 7u16 > (& mut name) ? . on_field_id :: < Type , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Type { pub children : auto_lsp :: core :: ast :: AstNodeId < Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Type { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 34u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Type { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_children_id (& mut children) }) ; Ok (Self { children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Typedef { pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordType > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub value : auto_lsp :: core :: ast :: AstNodeId < Enum_Struct > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Typedef { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 28u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Typedef { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut keyword = Ok (None) ; ; let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < KeywordType , 5u16 > (& mut keyword) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_field_id :: < Enum_Struct , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Typeref { pub children : auto_lsp :: core :: ast :: AstNodeId < Name > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Typeref { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 39u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Typeref { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_children_id (& mut children) }) ; Ok (Self { children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Name) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_LeftParen { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_LeftParen { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 9u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_LeftParen { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_RightParen { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_RightParen { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 11u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_RightParen { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_Comma { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_Comma { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 10u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_Comma { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_Colon { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_Colon { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 12u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_Colon { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_LeftBracket { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_LeftBracket { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 14u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_LeftBracket { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_RightBracket { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_RightBracket { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 15u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_RightBracket { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Arrow { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Arrow { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 8u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Arrow { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Bool { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Bool { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 16u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Bool { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Comment { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Comment { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Eol { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Eol { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 3u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Eol { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct FieldName { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for FieldName { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 22u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for FieldName { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Float { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Float { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 18u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Float { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Int { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Int { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 17u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Int { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct InterfaceName { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for InterfaceName { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 23u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for InterfaceName { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordError { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordError { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 6u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordError { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordInterface { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordInterface { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 4u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordInterface { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordMethod { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordMethod { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 7u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordMethod { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordType { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordType { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 5u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordType { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Name { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Name { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 21u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Name { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Object { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Object { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 20u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Object { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Questionmark { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Questionmark { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 13u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Questionmark { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct String { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for String { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 19u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for String { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub enum Comment_Eol_Error_Method_Typedef { Comment (Comment) , Eol (Eol) , Error (Error) , Method (Method) , Typedef (Typedef) } impl auto_lsp :: core :: ast :: AstNode for Comment_Eol_Error_Method_Typedef { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16 | 3u16 | 29u16 | 30u16 | 28u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Comment (node) => node . lower () , Self :: Eol (node) => node . lower () , Self :: Error (node) => node . lower () , Self :: Method (node) => node . lower () , Self :: Typedef (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Comment (node) => node . get_id () , Self :: Eol (node) => node . get_id () , Self :: Error (node) => node . get_id () , Self :: Method (node) => node . get_id () , Self :: Typedef (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Comment (node) => node . get_parent_id () , Self :: Eol (node) => node . get_parent_id () , Self :: Error (node) => node . get_parent_id () , Self :: Method (node) => node . get_parent_id () , Self :: Typedef (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Comment (node) => node . get_range () , Self :: Eol (node) => node . get_range () , Self :: Error (node) => node . get_range () , Self :: Method (node) => node . get_range () , Self :: Typedef (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment_Eol_Error_Method_Typedef { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 2u16 => Ok (Self :: Comment (Comment :: try_from ((node , db , builder , id , parent_id)) ?)) , 3u16 => Ok (Self :: Eol (Eol :: try_from ((node , db , builder , id , parent_id)) ?)) , 29u16 => Ok (Self :: Error (Error :: try_from ((node , db , builder , id , parent_id)) ?)) , 30u16 => Ok (Self :: Method (Method :: try_from ((node , db , builder , id , parent_id)) ?)) , 28u16 => Ok (Self :: Typedef (Typedef :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Comment_Eol_Error_Method_Typedef) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { Array (Array) , Bool (Bool) , Dict (Dict) , Enum (Enum) , Float (Float) , Int (Int) , Maybe (Maybe) , Object (Object) , String (String) , Struct (Struct) , Typeref (Typeref) } impl auto_lsp :: core :: ast :: AstNode for Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 37u16 | 16u16 | 38u16 | 33u16 | 18u16 | 17u16 | 35u16 | 20u16 | 19u16 | 31u16 | 39u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Array (node) => node . lower () , Self :: Bool (node) => node . lower () , Self :: Dict (node) => node . lower () , Self :: Enum (node) => node . lower () , Self :: Float (node) => node . lower () , Self :: Int (node) => node . lower () , Self :: Maybe (node) => node . lower () , Self :: Object (node) => node . lower () , Self :: String (node) => node . lower () , Self :: Struct (node) => node . lower () , Self :: Typeref (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Array (node) => node . get_id () , Self :: Bool (node) => node . get_id () , Self :: Dict (node) => node . get_id () , Self :: Enum (node) => node . get_id () , Self :: Float (node) => node . get_id () , Self :: Int (node) => node . get_id () , Self :: Maybe (node) => node . get_id () , Self :: Object (node) => node . get_id () , Self :: String (node) => node . get_id () , Self :: Struct (node) => node . get_id () , Self :: Typeref (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Array (node) => node . get_parent_id () , Self :: Bool (node) => node . get_parent_id () , Self :: Dict (node) => node . get_parent_id () , Self :: Enum (node) => node . get_parent_id () , Self :: Float (node) => node . get_parent_id () , Self :: Int (node) => node . get_parent_id () , Self :: Maybe (node) => node . get_parent_id () , Self :: Object (node) => node . get_parent_id () , Self :: String (node) => node . get_parent_id () , Self :: Struct (node) => node . get_parent_id () , Self :: Typeref (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Array (node) => node . get_range () , Self :: Bool (node) => node . get_range () , Self :: Dict (node) => node . get_range () , Self :: Enum (node) => node . get_range () , Self :: Float (node) => node . get_range () , Self :: Int (node) => node . get_range () , Self :: Maybe (node) => node . get_range () , Self :: Object (node) => node . get_range () , Self :: String (node) => node . get_range () , Self :: Struct (node) => node . get_range () , Self :: Typeref (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 37u16 => Ok (Self :: Array (Array :: try_from ((node , db , builder , id , parent_id)) ?)) , 16u16 => Ok (Self :: Bool (Bool :: try_from ((node , db , builder , id , parent_id)) ?)) , 38u16 => Ok (Self :: Dict (Dict :: try_from ((node , db , builder , id , parent_id)) ?)) , 33u16 => Ok (Self :: Enum (Enum :: try_from ((node , db , builder , id , parent_id)) ?)) , 18u16 => Ok (Self :: Float (Float :: try_from ((node , db , builder , id , parent_id)) ?)) , 17u16 => Ok (Self :: Int (Int :: try_from ((node , db , builder , id , parent_id)) ?)) , 35u16 => Ok (Self :: Maybe (Maybe :: try_from ((node , db , builder , id , parent_id)) ?)) , 20u16 => Ok (Self :: Object (Object :: try_from ((node , db , builder , id , parent_id)) ?)) , 19u16 => Ok (Self :: String (String :: try_from ((node , db , builder , id , parent_id)) ?)) , 31u16 => Ok (Self :: Struct (Struct :: try_from ((node , db , builder , id , parent_id)) ?)) , 39u16 => Ok (Self :: Typeref (Typeref :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Enum_Struct { Enum (Enum) , Struct (Struct) } impl auto_lsp :: core :: ast :: AstNode for Enum_Struct { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 33u16 | 31u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Enum (node) => node . lower () , Self :: Struct (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Enum (node) => node . get_id () , Self :: Struct (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Enum (node) => node . get_parent_id () , Self :: Struct (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Enum (node) => node . get_range () , Self :: Struct (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Enum_Struct { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 33u16 => Ok (Self :: Enum (Enum :: try_from ((node , db , builder , id , parent_id)) ?)) , 31u16 => Ok (Self :: Struct (Struct :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Enum_Struct) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Comment_Eol { Comment (Comment) , Eol (Eol) } impl auto_lsp :: core :: ast :: AstNode for Comment_Eol { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16 | 3u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Comment (node) => node . lower () , Self :: Eol (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Comment (node) => node . get_id () , Self :: Eol (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Comment (node) => node . get_parent_id () , Self :: Eol (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Comment (node) => node . get_range () , Self :: Eol (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment_Eol { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 2u16 => Ok (Self :: Comment (Comment :: try_from ((node , db , builder , id , parent_id)) ?)) , 3u16 => Ok (Self :: Eol (Eol :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Comment_Eol) , }) } } }
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `AstNodeId` in module `auto_lsp::core::ast`
[INFO] [stdout]   --> src/ast.rs:1:14764
[INFO] [stdout]    |
[INFO] [stdout]  1 | ...ruct Struct { pub member : Vec < auto_lsp :: core :: ast :: AstNodeId < StructField >> , pub children : Vec < auto_lsp :: core ::...
[INFO] [stdout]    |                                                                ^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]   ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/auto-lsp-core-0.7.0/src/ast/node.rs:26:1
[INFO] [stdout]    |
[INFO] [stdout] 26 | pub trait AstNode: std::fmt::Debug + Send + Sync + DowncastSync {
[INFO] [stdout]    | --------------------------------------------------------------- similarly named trait `AstNode` defined here
[INFO] [stdout]    |
[INFO] [stdout] help: a trait with a similar name exists
[INFO] [stdout]    |
[INFO] [stdout]  1 - # ! [allow (clippy :: all)] # ! [allow (unused)] # ! [allow (dead_code)] # ! [allow (non_camel_case_types)] # ! [allow (non_snake_case)] # [derive (Debug , Clone , PartialEq)] pub struct Array { pub Type : auto_lsp :: core :: ast :: AstNodeId < Type > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Array { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 37u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Array { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut Type = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Type , 10u16 > (& mut Type) }) ; Ok (Self { Type : Type ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Type) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Dict { pub Type : auto_lsp :: core :: ast :: AstNodeId < Type > , pub children : auto_lsp :: core :: ast :: AstNodeId < String > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Dict { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 38u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Dict { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut Type = Ok (None) ; ; let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Type , 10u16 > (& mut Type) ? . on_children_id (& mut children) }) ; Ok (Self { Type : Type ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Type) , } }) ? , children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (String) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Enum { pub member : Vec < auto_lsp :: core :: ast :: AstNodeId < FieldName >> , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Enum { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 33u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Enum { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut member = vec ! [] ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_vec_field_id :: < FieldName , 6u16 > (& mut member) ? . on_vec_children_id (& mut children) }) ; Ok (Self { member , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Error { pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordError > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub value : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Error { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 29u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Error { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut keyword = Ok (None) ; ; let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < KeywordError , 5u16 > (& mut keyword) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_field_id :: < Struct , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Interface { pub declaration : auto_lsp :: core :: ast :: AstNodeId < InterfaceDeclaration > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol_Error_Method_Typedef >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Interface { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 24u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Interface { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut declaration = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < InterfaceDeclaration , 2u16 > (& mut declaration) ? . on_vec_children_id (& mut children) }) ; Ok (Self { declaration : declaration ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (declaration) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct InterfaceDeclaration { pub name : auto_lsp :: core :: ast :: AstNodeId < InterfaceName > , pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordInterface > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for InterfaceDeclaration { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 27u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for InterfaceDeclaration { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut name = Ok (None) ; ; let mut keyword = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < InterfaceName , 7u16 > (& mut name) ? . on_field_id :: < KeywordInterface , 5u16 > (& mut keyword) ? . on_vec_children_id (& mut children) }) ; Ok (Self { name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Maybe { pub questionmark : auto_lsp :: core :: ast :: AstNodeId < Questionmark > , pub just : auto_lsp :: core :: ast :: AstNodeId < Type > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Maybe { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 35u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Maybe { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut questionmark = Ok (None) ; ; let mut just = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Questionmark , 9u16 > (& mut questionmark) ? . on_field_id :: < Type , 4u16 > (& mut just) }) ; Ok (Self { questionmark : questionmark ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (questionmark) , } }) ? , just : just ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (just) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Method { pub input : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub output : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordMethod > , pub arrow : auto_lsp :: core :: ast :: AstNodeId < Arrow > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Method { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 30u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Method { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut input = Ok (None) ; ; let mut output = Ok (None) ; ; let mut keyword = Ok (None) ; ; let mut arrow = Ok (None) ; ; let mut name = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Struct , 3u16 > (& mut input) ? . on_field_id :: < Struct , 8u16 > (& mut output) ? . on_field_id :: < KeywordMethod , 5u16 > (& mut keyword) ? . on_field_id :: < Arrow , 1u16 > (& mut arrow) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_vec_children_id (& mut children) }) ; Ok (Self { input : input ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (input) , } }) ? , output : output ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (output) , } }) ? , keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , arrow : arrow ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (arrow) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Struct { pub member : Vec < auto_lsp :: core :: ast :: AstNodeId < StructField >> , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Struct { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 31u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Struct { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut member = vec ! [] ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_vec_field_id :: < StructField , 6u16 > (& mut member) ? . on_vec_children_id (& mut children) }) ; Ok (Self { member , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct StructField { pub name : auto_lsp :: core :: ast :: AstNodeId < FieldName > , pub value : auto_lsp :: core :: ast :: AstNodeId < Type > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for StructField { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 32u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for StructField { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < FieldName , 7u16 > (& mut name) ? . on_field_id :: < Type , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Type { pub children : auto_lsp :: core :: ast :: AstNodeId < Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Type { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 34u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Type { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_children_id (& mut children) }) ; Ok (Self { children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Typedef { pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordType > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub value : auto_lsp :: core :: ast :: AstNodeId < Enum_Struct > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Typedef { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 28u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Typedef { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut keyword = Ok (None) ; ; let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < KeywordType , 5u16 > (& mut keyword) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_field_id :: < Enum_Struct , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Typeref { pub children : auto_lsp :: core :: ast :: AstNodeId < Name > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Typeref { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 39u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Typeref { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_children_id (& mut children) }) ; Ok (Self { children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Name) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_LeftParen { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_LeftParen { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 9u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_LeftParen { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_RightParen { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_RightParen { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 11u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_RightParen { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_Comma { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_Comma { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 10u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_Comma { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_Colon { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_Colon { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 12u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_Colon { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_LeftBracket { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_LeftBracket { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 14u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_LeftBracket { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_RightBracket { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_RightBracket { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 15u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_RightBracket { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Arrow { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Arrow { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 8u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Arrow { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Bool { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Bool { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 16u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Bool { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Comment { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Comment { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Eol { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Eol { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 3u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Eol { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct FieldName { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for FieldName { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 22u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for FieldName { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Float { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Float { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 18u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Float { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Int { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Int { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 17u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Int { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct InterfaceName { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for InterfaceName { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 23u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for InterfaceName { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordError { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordError { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 6u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordError { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordInterface { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordInterface { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 4u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordInterface { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordMethod { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordMethod { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 7u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordMethod { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordType { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordType { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 5u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordType { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Name { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Name { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 21u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Name { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Object { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Object { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 20u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Object { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Questionmark { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Questionmark { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 13u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Questionmark { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct String { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for String { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 19u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for String { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub enum Comment_Eol_Error_Method_Typedef { Comment (Comment) , Eol (Eol) , Error (Error) , Method (Method) , Typedef (Typedef) } impl auto_lsp :: core :: ast :: AstNode for Comment_Eol_Error_Method_Typedef { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16 | 3u16 | 29u16 | 30u16 | 28u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Comment (node) => node . lower () , Self :: Eol (node) => node . lower () , Self :: Error (node) => node . lower () , Self :: Method (node) => node . lower () , Self :: Typedef (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Comment (node) => node . get_id () , Self :: Eol (node) => node . get_id () , Self :: Error (node) => node . get_id () , Self :: Method (node) => node . get_id () , Self :: Typedef (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Comment (node) => node . get_parent_id () , Self :: Eol (node) => node . get_parent_id () , Self :: Error (node) => node . get_parent_id () , Self :: Method (node) => node . get_parent_id () , Self :: Typedef (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Comment (node) => node . get_range () , Self :: Eol (node) => node . get_range () , Self :: Error (node) => node . get_range () , Self :: Method (node) => node . get_range () , Self :: Typedef (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment_Eol_Error_Method_Typedef { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 2u16 => Ok (Self :: Comment (Comment :: try_from ((node , db , builder , id , parent_id)) ?)) , 3u16 => Ok (Self :: Eol (Eol :: try_from ((node , db , builder , id , parent_id)) ?)) , 29u16 => Ok (Self :: Error (Error :: try_from ((node , db , builder , id , parent_id)) ?)) , 30u16 => Ok (Self :: Method (Method :: try_from ((node , db , builder , id , parent_id)) ?)) , 28u16 => Ok (Self :: Typedef (Typedef :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Comment_Eol_Error_Method_Typedef) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { Array (Array) , Bool (Bool) , Dict (Dict) , Enum (Enum) , Float (Float) , Int (Int) , Maybe (Maybe) , Object (Object) , String (String) , Struct (Struct) , Typeref (Typeref) } impl auto_lsp :: core :: ast :: AstNode for Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 37u16 | 16u16 | 38u16 | 33u16 | 18u16 | 17u16 | 35u16 | 20u16 | 19u16 | 31u16 | 39u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Array (node) => node . lower () , Self :: Bool (node) => node . lower () , Self :: Dict (node) => node . lower () , Self :: Enum (node) => node . lower () , Self :: Float (node) => node . lower () , Self :: Int (node) => node . lower () , Self :: Maybe (node) => node . lower () , Self :: Object (node) => node . lower () , Self :: String (node) => node . lower () , Self :: Struct (node) => node . lower () , Self :: Typeref (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Array (node) => node . get_id () , Self :: Bool (node) => node . get_id () , Self :: Dict (node) => node . get_id () , Self :: Enum (node) => node . get_id () , Self :: Float (node) => node . get_id () , Self :: Int (node) => node . get_id () , Self :: Maybe (node) => node . get_id () , Self :: Object (node) => node . get_id () , Self :: String (node) => node . get_id () , Self :: Struct (node) => node . get_id () , Self :: Typeref (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Array (node) => node . get_parent_id () , Self :: Bool (node) => node . get_parent_id () , Self :: Dict (node) => node . get_parent_id () , Self :: Enum (node) => node . get_parent_id () , Self :: Float (node) => node . get_parent_id () , Self :: Int (node) => node . get_parent_id () , Self :: Maybe (node) => node . get_parent_id () , Self :: Object (node) => node . get_parent_id () , Self :: String (node) => node . get_parent_id () , Self :: Struct (node) => node . get_parent_id () , Self :: Typeref (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Array (node) => node . get_range () , Self :: Bool (node) => node . get_range () , Self :: Dict (node) => node . get_range () , Self :: Enum (node) => node . get_range () , Self :: Float (node) => node . get_range () , Self :: Int (node) => node . get_range () , Self :: Maybe (node) => node . get_range () , Self :: Object (node) => node . get_range () , Self :: String (node) => node . get_range () , Self :: Struct (node) => node . get_range () , Self :: Typeref (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 37u16 => Ok (Self :: Array (Array :: try_from ((node , db , builder , id , parent_id)) ?)) , 16u16 => Ok (Self :: Bool (Bool :: try_from ((node , db , builder , id , parent_id)) ?)) , 38u16 => Ok (Self :: Dict (Dict :: try_from ((node , db , builder , id , parent_id)) ?)) , 33u16 => Ok (Self :: Enum (Enum :: try_from ((node , db , builder , id , parent_id)) ?)) , 18u16 => Ok (Self :: Float (Float :: try_from ((node , db , builder , id , parent_id)) ?)) , 17u16 => Ok (Self :: Int (Int :: try_from ((node , db , builder , id , parent_id)) ?)) , 35u16 => Ok (Self :: Maybe (Maybe :: try_from ((node , db , builder , id , parent_id)) ?)) , 20u16 => Ok (Self :: Object (Object :: try_from ((node , db , builder , id , parent_id)) ?)) , 19u16 => Ok (Self :: String (String :: try_from ((node , db , builder , id , parent_id)) ?)) , 31u16 => Ok (Self :: Struct (Struct :: try_from ((node , db , builder , id , parent_id)) ?)) , 39u16 => Ok (Self :: Typeref (Typeref :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Enum_Struct { Enum (Enum) , Struct (Struct) } impl auto_lsp :: core :: ast :: AstNode for Enum_Struct { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 33u16 | 31u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Enum (node) => node . lower () , Self :: Struct (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Enum (node) => node . get_id () , Self :: Struct (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Enum (node) => node . get_parent_id () , Self :: Struct (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Enum (node) => node . get_range () , Self :: Struct (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Enum_Struct { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 33u16 => Ok (Self :: Enum (Enum :: try_from ((node , db , builder , id , parent_id)) ?)) , 31u16 => Ok (Self :: Struct (Struct :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Enum_Struct) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Comment_Eol { Comment (Comment) , Eol (Eol) } impl auto_lsp :: core :: ast :: AstNode for Comment_Eol { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16 | 3u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Comment (node) => node . lower () , Self :: Eol (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Comment (node) => node . get_id () , Self :: Eol (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Comment (node) => node . get_parent_id () , Self :: Eol (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Comment (node) => node . get_range () , Self :: Eol (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment_Eol { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 2u16 => Ok (Self :: Comment (Comment :: try_from ((node , db , builder , id , parent_id)) ?)) , 3u16 => Ok (Self :: Eol (Eol :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Comment_Eol) , }) } } }
[INFO] [stdout]  1 + # ! [allow (clippy :: all)] # ! [allow (unused)] # ! [allow (dead_code)] # ! [allow (non_camel_case_types)] # ! [allow (non_snake_case)] # [derive (Debug , Clone , PartialEq)] pub struct Array { pub Type : auto_lsp :: core :: ast :: AstNodeId < Type > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Array { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 37u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Array { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut Type = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Type , 10u16 > (& mut Type) }) ; Ok (Self { Type : Type ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Type) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Dict { pub Type : auto_lsp :: core :: ast :: AstNodeId < Type > , pub children : auto_lsp :: core :: ast :: AstNodeId < String > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Dict { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 38u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Dict { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut Type = Ok (None) ; ; let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Type , 10u16 > (& mut Type) ? . on_children_id (& mut children) }) ; Ok (Self { Type : Type ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Type) , } }) ? , children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (String) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Enum { pub member : Vec < auto_lsp :: core :: ast :: AstNodeId < FieldName >> , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Enum { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 33u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Enum { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut member = vec ! [] ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_vec_field_id :: < FieldName , 6u16 > (& mut member) ? . on_vec_children_id (& mut children) }) ; Ok (Self { member , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Error { pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordError > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub value : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Error { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 29u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Error { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut keyword = Ok (None) ; ; let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < KeywordError , 5u16 > (& mut keyword) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_field_id :: < Struct , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Interface { pub declaration : auto_lsp :: core :: ast :: AstNodeId < InterfaceDeclaration > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol_Error_Method_Typedef >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Interface { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 24u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Interface { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut declaration = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < InterfaceDeclaration , 2u16 > (& mut declaration) ? . on_vec_children_id (& mut children) }) ; Ok (Self { declaration : declaration ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (declaration) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct InterfaceDeclaration { pub name : auto_lsp :: core :: ast :: AstNodeId < InterfaceName > , pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordInterface > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for InterfaceDeclaration { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 27u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for InterfaceDeclaration { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut name = Ok (None) ; ; let mut keyword = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < InterfaceName , 7u16 > (& mut name) ? . on_field_id :: < KeywordInterface , 5u16 > (& mut keyword) ? . on_vec_children_id (& mut children) }) ; Ok (Self { name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Maybe { pub questionmark : auto_lsp :: core :: ast :: AstNodeId < Questionmark > , pub just : auto_lsp :: core :: ast :: AstNodeId < Type > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Maybe { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 35u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Maybe { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut questionmark = Ok (None) ; ; let mut just = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Questionmark , 9u16 > (& mut questionmark) ? . on_field_id :: < Type , 4u16 > (& mut just) }) ; Ok (Self { questionmark : questionmark ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (questionmark) , } }) ? , just : just ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (just) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Method { pub input : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub output : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordMethod > , pub arrow : auto_lsp :: core :: ast :: AstNodeId < Arrow > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Method { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 30u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Method { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut input = Ok (None) ; ; let mut output = Ok (None) ; ; let mut keyword = Ok (None) ; ; let mut arrow = Ok (None) ; ; let mut name = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Struct , 3u16 > (& mut input) ? . on_field_id :: < Struct , 8u16 > (& mut output) ? . on_field_id :: < KeywordMethod , 5u16 > (& mut keyword) ? . on_field_id :: < Arrow , 1u16 > (& mut arrow) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_vec_children_id (& mut children) }) ; Ok (Self { input : input ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (input) , } }) ? , output : output ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (output) , } }) ? , keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , arrow : arrow ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (arrow) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Struct { pub member : Vec < auto_lsp :: core :: ast :: AstNode < StructField >> , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Struct { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 31u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Struct { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut member = vec ! [] ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_vec_field_id :: < StructField , 6u16 > (& mut member) ? . on_vec_children_id (& mut children) }) ; Ok (Self { member , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct StructField { pub name : auto_lsp :: core :: ast :: AstNodeId < FieldName > , pub value : auto_lsp :: core :: ast :: AstNodeId < Type > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for StructField { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 32u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for StructField { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < FieldName , 7u16 > (& mut name) ? . on_field_id :: < Type , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Type { pub children : auto_lsp :: core :: ast :: AstNodeId < Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Type { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 34u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Type { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_children_id (& mut children) }) ; Ok (Self { children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Typedef { pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordType > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub value : auto_lsp :: core :: ast :: AstNodeId < Enum_Struct > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Typedef { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 28u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Typedef { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut keyword = Ok (None) ; ; let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < KeywordType , 5u16 > (& mut keyword) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_field_id :: < Enum_Struct , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Typeref { pub children : auto_lsp :: core :: ast :: AstNodeId < Name > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Typeref { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 39u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Typeref { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_children_id (& mut children) }) ; Ok (Self { children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Name) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_LeftParen { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_LeftParen { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 9u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_LeftParen { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_RightParen { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_RightParen { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 11u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_RightParen { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_Comma { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_Comma { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 10u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_Comma { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_Colon { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_Colon { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 12u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_Colon { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_LeftBracket { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_LeftBracket { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 14u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_LeftBracket { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_RightBracket { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_RightBracket { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 15u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_RightBracket { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Arrow { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Arrow { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 8u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Arrow { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Bool { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Bool { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 16u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Bool { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Comment { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Comment { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Eol { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Eol { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 3u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Eol { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct FieldName { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for FieldName { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 22u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for FieldName { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Float { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Float { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 18u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Float { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Int { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Int { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 17u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Int { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct InterfaceName { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for InterfaceName { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 23u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for InterfaceName { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordError { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordError { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 6u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordError { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordInterface { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordInterface { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 4u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordInterface { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordMethod { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordMethod { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 7u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordMethod { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordType { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordType { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 5u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordType { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Name { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Name { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 21u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Name { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Object { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Object { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 20u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Object { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Questionmark { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Questionmark { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 13u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Questionmark { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct String { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for String { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 19u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for String { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub enum Comment_Eol_Error_Method_Typedef { Comment (Comment) , Eol (Eol) , Error (Error) , Method (Method) , Typedef (Typedef) } impl auto_lsp :: core :: ast :: AstNode for Comment_Eol_Error_Method_Typedef { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16 | 3u16 | 29u16 | 30u16 | 28u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Comment (node) => node . lower () , Self :: Eol (node) => node . lower () , Self :: Error (node) => node . lower () , Self :: Method (node) => node . lower () , Self :: Typedef (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Comment (node) => node . get_id () , Self :: Eol (node) => node . get_id () , Self :: Error (node) => node . get_id () , Self :: Method (node) => node . get_id () , Self :: Typedef (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Comment (node) => node . get_parent_id () , Self :: Eol (node) => node . get_parent_id () , Self :: Error (node) => node . get_parent_id () , Self :: Method (node) => node . get_parent_id () , Self :: Typedef (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Comment (node) => node . get_range () , Self :: Eol (node) => node . get_range () , Self :: Error (node) => node . get_range () , Self :: Method (node) => node . get_range () , Self :: Typedef (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment_Eol_Error_Method_Typedef { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 2u16 => Ok (Self :: Comment (Comment :: try_from ((node , db , builder , id , parent_id)) ?)) , 3u16 => Ok (Self :: Eol (Eol :: try_from ((node , db , builder , id , parent_id)) ?)) , 29u16 => Ok (Self :: Error (Error :: try_from ((node , db , builder , id , parent_id)) ?)) , 30u16 => Ok (Self :: Method (Method :: try_from ((node , db , builder , id , parent_id)) ?)) , 28u16 => Ok (Self :: Typedef (Typedef :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Comment_Eol_Error_Method_Typedef) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { Array (Array) , Bool (Bool) , Dict (Dict) , Enum (Enum) , Float (Float) , Int (Int) , Maybe (Maybe) , Object (Object) , String (String) , Struct (Struct) , Typeref (Typeref) } impl auto_lsp :: core :: ast :: AstNode for Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 37u16 | 16u16 | 38u16 | 33u16 | 18u16 | 17u16 | 35u16 | 20u16 | 19u16 | 31u16 | 39u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Array (node) => node . lower () , Self :: Bool (node) => node . lower () , Self :: Dict (node) => node . lower () , Self :: Enum (node) => node . lower () , Self :: Float (node) => node . lower () , Self :: Int (node) => node . lower () , Self :: Maybe (node) => node . lower () , Self :: Object (node) => node . lower () , Self :: String (node) => node . lower () , Self :: Struct (node) => node . lower () , Self :: Typeref (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Array (node) => node . get_id () , Self :: Bool (node) => node . get_id () , Self :: Dict (node) => node . get_id () , Self :: Enum (node) => node . get_id () , Self :: Float (node) => node . get_id () , Self :: Int (node) => node . get_id () , Self :: Maybe (node) => node . get_id () , Self :: Object (node) => node . get_id () , Self :: String (node) => node . get_id () , Self :: Struct (node) => node . get_id () , Self :: Typeref (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Array (node) => node . get_parent_id () , Self :: Bool (node) => node . get_parent_id () , Self :: Dict (node) => node . get_parent_id () , Self :: Enum (node) => node . get_parent_id () , Self :: Float (node) => node . get_parent_id () , Self :: Int (node) => node . get_parent_id () , Self :: Maybe (node) => node . get_parent_id () , Self :: Object (node) => node . get_parent_id () , Self :: String (node) => node . get_parent_id () , Self :: Struct (node) => node . get_parent_id () , Self :: Typeref (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Array (node) => node . get_range () , Self :: Bool (node) => node . get_range () , Self :: Dict (node) => node . get_range () , Self :: Enum (node) => node . get_range () , Self :: Float (node) => node . get_range () , Self :: Int (node) => node . get_range () , Self :: Maybe (node) => node . get_range () , Self :: Object (node) => node . get_range () , Self :: String (node) => node . get_range () , Self :: Struct (node) => node . get_range () , Self :: Typeref (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 37u16 => Ok (Self :: Array (Array :: try_from ((node , db , builder , id , parent_id)) ?)) , 16u16 => Ok (Self :: Bool (Bool :: try_from ((node , db , builder , id , parent_id)) ?)) , 38u16 => Ok (Self :: Dict (Dict :: try_from ((node , db , builder , id , parent_id)) ?)) , 33u16 => Ok (Self :: Enum (Enum :: try_from ((node , db , builder , id , parent_id)) ?)) , 18u16 => Ok (Self :: Float (Float :: try_from ((node , db , builder , id , parent_id)) ?)) , 17u16 => Ok (Self :: Int (Int :: try_from ((node , db , builder , id , parent_id)) ?)) , 35u16 => Ok (Self :: Maybe (Maybe :: try_from ((node , db , builder , id , parent_id)) ?)) , 20u16 => Ok (Self :: Object (Object :: try_from ((node , db , builder , id , parent_id)) ?)) , 19u16 => Ok (Self :: String (String :: try_from ((node , db , builder , id , parent_id)) ?)) , 31u16 => Ok (Self :: Struct (Struct :: try_from ((node , db , builder , id , parent_id)) ?)) , 39u16 => Ok (Self :: Typeref (Typeref :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Enum_Struct { Enum (Enum) , Struct (Struct) } impl auto_lsp :: core :: ast :: AstNode for Enum_Struct { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 33u16 | 31u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Enum (node) => node . lower () , Self :: Struct (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Enum (node) => node . get_id () , Self :: Struct (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Enum (node) => node . get_parent_id () , Self :: Struct (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Enum (node) => node . get_range () , Self :: Struct (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Enum_Struct { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 33u16 => Ok (Self :: Enum (Enum :: try_from ((node , db , builder , id , parent_id)) ?)) , 31u16 => Ok (Self :: Struct (Struct :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Enum_Struct) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Comment_Eol { Comment (Comment) , Eol (Eol) } impl auto_lsp :: core :: ast :: AstNode for Comment_Eol { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16 | 3u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Comment (node) => node . lower () , Self :: Eol (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Comment (node) => node . get_id () , Self :: Eol (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Comment (node) => node . get_parent_id () , Self :: Eol (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Comment (node) => node . get_range () , Self :: Eol (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment_Eol { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 2u16 => Ok (Self :: Comment (Comment :: try_from ((node , db , builder , id , parent_id)) ?)) , 3u16 => Ok (Self :: Eol (Eol :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Comment_Eol) , }) } } }
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `AstNodeId` in module `auto_lsp::core::ast`
[INFO] [stdout]   --> src/ast.rs:1:14841
[INFO] [stdout]    |
[INFO] [stdout]  1 | ...tField >> , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Rang...
[INFO] [stdout]    |                                                                ^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]   ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/auto-lsp-core-0.7.0/src/ast/node.rs:26:1
[INFO] [stdout]    |
[INFO] [stdout] 26 | pub trait AstNode: std::fmt::Debug + Send + Sync + DowncastSync {
[INFO] [stdout]    | --------------------------------------------------------------- similarly named trait `AstNode` defined here
[INFO] [stdout]    |
[INFO] [stdout] help: a trait with a similar name exists
[INFO] [stdout]    |
[INFO] [stdout]  1 - # ! [allow (clippy :: all)] # ! [allow (unused)] # ! [allow (dead_code)] # ! [allow (non_camel_case_types)] # ! [allow (non_snake_case)] # [derive (Debug , Clone , PartialEq)] pub struct Array { pub Type : auto_lsp :: core :: ast :: AstNodeId < Type > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Array { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 37u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Array { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut Type = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Type , 10u16 > (& mut Type) }) ; Ok (Self { Type : Type ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Type) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Dict { pub Type : auto_lsp :: core :: ast :: AstNodeId < Type > , pub children : auto_lsp :: core :: ast :: AstNodeId < String > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Dict { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 38u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Dict { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut Type = Ok (None) ; ; let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Type , 10u16 > (& mut Type) ? . on_children_id (& mut children) }) ; Ok (Self { Type : Type ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Type) , } }) ? , children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (String) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Enum { pub member : Vec < auto_lsp :: core :: ast :: AstNodeId < FieldName >> , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Enum { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 33u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Enum { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut member = vec ! [] ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_vec_field_id :: < FieldName , 6u16 > (& mut member) ? . on_vec_children_id (& mut children) }) ; Ok (Self { member , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Error { pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordError > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub value : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Error { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 29u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Error { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut keyword = Ok (None) ; ; let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < KeywordError , 5u16 > (& mut keyword) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_field_id :: < Struct , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Interface { pub declaration : auto_lsp :: core :: ast :: AstNodeId < InterfaceDeclaration > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol_Error_Method_Typedef >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Interface { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 24u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Interface { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut declaration = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < InterfaceDeclaration , 2u16 > (& mut declaration) ? . on_vec_children_id (& mut children) }) ; Ok (Self { declaration : declaration ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (declaration) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct InterfaceDeclaration { pub name : auto_lsp :: core :: ast :: AstNodeId < InterfaceName > , pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordInterface > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for InterfaceDeclaration { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 27u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for InterfaceDeclaration { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut name = Ok (None) ; ; let mut keyword = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < InterfaceName , 7u16 > (& mut name) ? . on_field_id :: < KeywordInterface , 5u16 > (& mut keyword) ? . on_vec_children_id (& mut children) }) ; Ok (Self { name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Maybe { pub questionmark : auto_lsp :: core :: ast :: AstNodeId < Questionmark > , pub just : auto_lsp :: core :: ast :: AstNodeId < Type > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Maybe { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 35u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Maybe { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut questionmark = Ok (None) ; ; let mut just = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Questionmark , 9u16 > (& mut questionmark) ? . on_field_id :: < Type , 4u16 > (& mut just) }) ; Ok (Self { questionmark : questionmark ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (questionmark) , } }) ? , just : just ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (just) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Method { pub input : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub output : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordMethod > , pub arrow : auto_lsp :: core :: ast :: AstNodeId < Arrow > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Method { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 30u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Method { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut input = Ok (None) ; ; let mut output = Ok (None) ; ; let mut keyword = Ok (None) ; ; let mut arrow = Ok (None) ; ; let mut name = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Struct , 3u16 > (& mut input) ? . on_field_id :: < Struct , 8u16 > (& mut output) ? . on_field_id :: < KeywordMethod , 5u16 > (& mut keyword) ? . on_field_id :: < Arrow , 1u16 > (& mut arrow) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_vec_children_id (& mut children) }) ; Ok (Self { input : input ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (input) , } }) ? , output : output ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (output) , } }) ? , keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , arrow : arrow ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (arrow) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Struct { pub member : Vec < auto_lsp :: core :: ast :: AstNodeId < StructField >> , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Struct { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 31u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Struct { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut member = vec ! [] ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_vec_field_id :: < StructField , 6u16 > (& mut member) ? . on_vec_children_id (& mut children) }) ; Ok (Self { member , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct StructField { pub name : auto_lsp :: core :: ast :: AstNodeId < FieldName > , pub value : auto_lsp :: core :: ast :: AstNodeId < Type > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for StructField { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 32u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for StructField { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < FieldName , 7u16 > (& mut name) ? . on_field_id :: < Type , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Type { pub children : auto_lsp :: core :: ast :: AstNodeId < Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Type { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 34u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Type { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_children_id (& mut children) }) ; Ok (Self { children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Typedef { pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordType > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub value : auto_lsp :: core :: ast :: AstNodeId < Enum_Struct > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Typedef { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 28u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Typedef { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut keyword = Ok (None) ; ; let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < KeywordType , 5u16 > (& mut keyword) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_field_id :: < Enum_Struct , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Typeref { pub children : auto_lsp :: core :: ast :: AstNodeId < Name > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Typeref { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 39u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Typeref { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_children_id (& mut children) }) ; Ok (Self { children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Name) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_LeftParen { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_LeftParen { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 9u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_LeftParen { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_RightParen { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_RightParen { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 11u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_RightParen { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_Comma { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_Comma { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 10u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_Comma { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_Colon { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_Colon { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 12u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_Colon { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_LeftBracket { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_LeftBracket { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 14u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_LeftBracket { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_RightBracket { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_RightBracket { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 15u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_RightBracket { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Arrow { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Arrow { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 8u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Arrow { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Bool { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Bool { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 16u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Bool { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Comment { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Comment { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Eol { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Eol { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 3u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Eol { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct FieldName { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for FieldName { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 22u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for FieldName { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Float { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Float { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 18u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Float { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Int { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Int { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 17u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Int { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct InterfaceName { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for InterfaceName { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 23u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for InterfaceName { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordError { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordError { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 6u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordError { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordInterface { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordInterface { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 4u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordInterface { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordMethod { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordMethod { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 7u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordMethod { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordType { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordType { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 5u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordType { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Name { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Name { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 21u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Name { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Object { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Object { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 20u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Object { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Questionmark { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Questionmark { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 13u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Questionmark { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct String { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for String { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 19u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for String { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub enum Comment_Eol_Error_Method_Typedef { Comment (Comment) , Eol (Eol) , Error (Error) , Method (Method) , Typedef (Typedef) } impl auto_lsp :: core :: ast :: AstNode for Comment_Eol_Error_Method_Typedef { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16 | 3u16 | 29u16 | 30u16 | 28u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Comment (node) => node . lower () , Self :: Eol (node) => node . lower () , Self :: Error (node) => node . lower () , Self :: Method (node) => node . lower () , Self :: Typedef (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Comment (node) => node . get_id () , Self :: Eol (node) => node . get_id () , Self :: Error (node) => node . get_id () , Self :: Method (node) => node . get_id () , Self :: Typedef (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Comment (node) => node . get_parent_id () , Self :: Eol (node) => node . get_parent_id () , Self :: Error (node) => node . get_parent_id () , Self :: Method (node) => node . get_parent_id () , Self :: Typedef (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Comment (node) => node . get_range () , Self :: Eol (node) => node . get_range () , Self :: Error (node) => node . get_range () , Self :: Method (node) => node . get_range () , Self :: Typedef (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment_Eol_Error_Method_Typedef { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 2u16 => Ok (Self :: Comment (Comment :: try_from ((node , db , builder , id , parent_id)) ?)) , 3u16 => Ok (Self :: Eol (Eol :: try_from ((node , db , builder , id , parent_id)) ?)) , 29u16 => Ok (Self :: Error (Error :: try_from ((node , db , builder , id , parent_id)) ?)) , 30u16 => Ok (Self :: Method (Method :: try_from ((node , db , builder , id , parent_id)) ?)) , 28u16 => Ok (Self :: Typedef (Typedef :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Comment_Eol_Error_Method_Typedef) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { Array (Array) , Bool (Bool) , Dict (Dict) , Enum (Enum) , Float (Float) , Int (Int) , Maybe (Maybe) , Object (Object) , String (String) , Struct (Struct) , Typeref (Typeref) } impl auto_lsp :: core :: ast :: AstNode for Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 37u16 | 16u16 | 38u16 | 33u16 | 18u16 | 17u16 | 35u16 | 20u16 | 19u16 | 31u16 | 39u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Array (node) => node . lower () , Self :: Bool (node) => node . lower () , Self :: Dict (node) => node . lower () , Self :: Enum (node) => node . lower () , Self :: Float (node) => node . lower () , Self :: Int (node) => node . lower () , Self :: Maybe (node) => node . lower () , Self :: Object (node) => node . lower () , Self :: String (node) => node . lower () , Self :: Struct (node) => node . lower () , Self :: Typeref (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Array (node) => node . get_id () , Self :: Bool (node) => node . get_id () , Self :: Dict (node) => node . get_id () , Self :: Enum (node) => node . get_id () , Self :: Float (node) => node . get_id () , Self :: Int (node) => node . get_id () , Self :: Maybe (node) => node . get_id () , Self :: Object (node) => node . get_id () , Self :: String (node) => node . get_id () , Self :: Struct (node) => node . get_id () , Self :: Typeref (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Array (node) => node . get_parent_id () , Self :: Bool (node) => node . get_parent_id () , Self :: Dict (node) => node . get_parent_id () , Self :: Enum (node) => node . get_parent_id () , Self :: Float (node) => node . get_parent_id () , Self :: Int (node) => node . get_parent_id () , Self :: Maybe (node) => node . get_parent_id () , Self :: Object (node) => node . get_parent_id () , Self :: String (node) => node . get_parent_id () , Self :: Struct (node) => node . get_parent_id () , Self :: Typeref (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Array (node) => node . get_range () , Self :: Bool (node) => node . get_range () , Self :: Dict (node) => node . get_range () , Self :: Enum (node) => node . get_range () , Self :: Float (node) => node . get_range () , Self :: Int (node) => node . get_range () , Self :: Maybe (node) => node . get_range () , Self :: Object (node) => node . get_range () , Self :: String (node) => node . get_range () , Self :: Struct (node) => node . get_range () , Self :: Typeref (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 37u16 => Ok (Self :: Array (Array :: try_from ((node , db , builder , id , parent_id)) ?)) , 16u16 => Ok (Self :: Bool (Bool :: try_from ((node , db , builder , id , parent_id)) ?)) , 38u16 => Ok (Self :: Dict (Dict :: try_from ((node , db , builder , id , parent_id)) ?)) , 33u16 => Ok (Self :: Enum (Enum :: try_from ((node , db , builder , id , parent_id)) ?)) , 18u16 => Ok (Self :: Float (Float :: try_from ((node , db , builder , id , parent_id)) ?)) , 17u16 => Ok (Self :: Int (Int :: try_from ((node , db , builder , id , parent_id)) ?)) , 35u16 => Ok (Self :: Maybe (Maybe :: try_from ((node , db , builder , id , parent_id)) ?)) , 20u16 => Ok (Self :: Object (Object :: try_from ((node , db , builder , id , parent_id)) ?)) , 19u16 => Ok (Self :: String (String :: try_from ((node , db , builder , id , parent_id)) ?)) , 31u16 => Ok (Self :: Struct (Struct :: try_from ((node , db , builder , id , parent_id)) ?)) , 39u16 => Ok (Self :: Typeref (Typeref :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Enum_Struct { Enum (Enum) , Struct (Struct) } impl auto_lsp :: core :: ast :: AstNode for Enum_Struct { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 33u16 | 31u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Enum (node) => node . lower () , Self :: Struct (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Enum (node) => node . get_id () , Self :: Struct (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Enum (node) => node . get_parent_id () , Self :: Struct (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Enum (node) => node . get_range () , Self :: Struct (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Enum_Struct { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 33u16 => Ok (Self :: Enum (Enum :: try_from ((node , db , builder , id , parent_id)) ?)) , 31u16 => Ok (Self :: Struct (Struct :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Enum_Struct) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Comment_Eol { Comment (Comment) , Eol (Eol) } impl auto_lsp :: core :: ast :: AstNode for Comment_Eol { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16 | 3u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Comment (node) => node . lower () , Self :: Eol (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Comment (node) => node . get_id () , Self :: Eol (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Comment (node) => node . get_parent_id () , Self :: Eol (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Comment (node) => node . get_range () , Self :: Eol (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment_Eol { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 2u16 => Ok (Self :: Comment (Comment :: try_from ((node , db , builder , id , parent_id)) ?)) , 3u16 => Ok (Self :: Eol (Eol :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Comment_Eol) , }) } } }
[INFO] [stdout]  1 + # ! [allow (clippy :: all)] # ! [allow (unused)] # ! [allow (dead_code)] # ! [allow (non_camel_case_types)] # ! [allow (non_snake_case)] # [derive (Debug , Clone , PartialEq)] pub struct Array { pub Type : auto_lsp :: core :: ast :: AstNodeId < Type > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Array { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 37u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Array { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut Type = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Type , 10u16 > (& mut Type) }) ; Ok (Self { Type : Type ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Type) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Dict { pub Type : auto_lsp :: core :: ast :: AstNodeId < Type > , pub children : auto_lsp :: core :: ast :: AstNodeId < String > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Dict { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 38u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Dict { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut Type = Ok (None) ; ; let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Type , 10u16 > (& mut Type) ? . on_children_id (& mut children) }) ; Ok (Self { Type : Type ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Type) , } }) ? , children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (String) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Enum { pub member : Vec < auto_lsp :: core :: ast :: AstNodeId < FieldName >> , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Enum { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 33u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Enum { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut member = vec ! [] ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_vec_field_id :: < FieldName , 6u16 > (& mut member) ? . on_vec_children_id (& mut children) }) ; Ok (Self { member , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Error { pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordError > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub value : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Error { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 29u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Error { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut keyword = Ok (None) ; ; let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < KeywordError , 5u16 > (& mut keyword) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_field_id :: < Struct , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Interface { pub declaration : auto_lsp :: core :: ast :: AstNodeId < InterfaceDeclaration > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol_Error_Method_Typedef >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Interface { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 24u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Interface { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut declaration = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < InterfaceDeclaration , 2u16 > (& mut declaration) ? . on_vec_children_id (& mut children) }) ; Ok (Self { declaration : declaration ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (declaration) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct InterfaceDeclaration { pub name : auto_lsp :: core :: ast :: AstNodeId < InterfaceName > , pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordInterface > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for InterfaceDeclaration { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 27u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for InterfaceDeclaration { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut name = Ok (None) ; ; let mut keyword = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < InterfaceName , 7u16 > (& mut name) ? . on_field_id :: < KeywordInterface , 5u16 > (& mut keyword) ? . on_vec_children_id (& mut children) }) ; Ok (Self { name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Maybe { pub questionmark : auto_lsp :: core :: ast :: AstNodeId < Questionmark > , pub just : auto_lsp :: core :: ast :: AstNodeId < Type > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Maybe { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 35u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Maybe { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut questionmark = Ok (None) ; ; let mut just = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Questionmark , 9u16 > (& mut questionmark) ? . on_field_id :: < Type , 4u16 > (& mut just) }) ; Ok (Self { questionmark : questionmark ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (questionmark) , } }) ? , just : just ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (just) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Method { pub input : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub output : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordMethod > , pub arrow : auto_lsp :: core :: ast :: AstNodeId < Arrow > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Method { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 30u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Method { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut input = Ok (None) ; ; let mut output = Ok (None) ; ; let mut keyword = Ok (None) ; ; let mut arrow = Ok (None) ; ; let mut name = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Struct , 3u16 > (& mut input) ? . on_field_id :: < Struct , 8u16 > (& mut output) ? . on_field_id :: < KeywordMethod , 5u16 > (& mut keyword) ? . on_field_id :: < Arrow , 1u16 > (& mut arrow) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_vec_children_id (& mut children) }) ; Ok (Self { input : input ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (input) , } }) ? , output : output ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (output) , } }) ? , keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , arrow : arrow ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (arrow) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Struct { pub member : Vec < auto_lsp :: core :: ast :: AstNodeId < StructField >> , pub children : Vec < auto_lsp :: core :: ast :: AstNode < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Struct { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 31u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Struct { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut member = vec ! [] ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_vec_field_id :: < StructField , 6u16 > (& mut member) ? . on_vec_children_id (& mut children) }) ; Ok (Self { member , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct StructField { pub name : auto_lsp :: core :: ast :: AstNodeId < FieldName > , pub value : auto_lsp :: core :: ast :: AstNodeId < Type > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for StructField { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 32u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for StructField { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < FieldName , 7u16 > (& mut name) ? . on_field_id :: < Type , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Type { pub children : auto_lsp :: core :: ast :: AstNodeId < Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Type { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 34u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Type { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_children_id (& mut children) }) ; Ok (Self { children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Typedef { pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordType > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub value : auto_lsp :: core :: ast :: AstNodeId < Enum_Struct > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Typedef { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 28u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Typedef { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut keyword = Ok (None) ; ; let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < KeywordType , 5u16 > (& mut keyword) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_field_id :: < Enum_Struct , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Typeref { pub children : auto_lsp :: core :: ast :: AstNodeId < Name > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Typeref { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 39u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Typeref { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_children_id (& mut children) }) ; Ok (Self { children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Name) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_LeftParen { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_LeftParen { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 9u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_LeftParen { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_RightParen { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_RightParen { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 11u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_RightParen { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_Comma { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_Comma { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 10u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_Comma { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_Colon { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_Colon { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 12u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_Colon { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_LeftBracket { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_LeftBracket { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 14u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_LeftBracket { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_RightBracket { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_RightBracket { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 15u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_RightBracket { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Arrow { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Arrow { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 8u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Arrow { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Bool { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Bool { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 16u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Bool { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Comment { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Comment { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Eol { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Eol { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 3u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Eol { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct FieldName { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for FieldName { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 22u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for FieldName { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Float { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Float { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 18u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Float { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Int { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Int { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 17u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Int { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct InterfaceName { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for InterfaceName { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 23u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for InterfaceName { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordError { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordError { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 6u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordError { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordInterface { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordInterface { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 4u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordInterface { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordMethod { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordMethod { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 7u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordMethod { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordType { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordType { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 5u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordType { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Name { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Name { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 21u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Name { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Object { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Object { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 20u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Object { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Questionmark { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Questionmark { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 13u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Questionmark { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct String { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for String { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 19u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for String { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub enum Comment_Eol_Error_Method_Typedef { Comment (Comment) , Eol (Eol) , Error (Error) , Method (Method) , Typedef (Typedef) } impl auto_lsp :: core :: ast :: AstNode for Comment_Eol_Error_Method_Typedef { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16 | 3u16 | 29u16 | 30u16 | 28u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Comment (node) => node . lower () , Self :: Eol (node) => node . lower () , Self :: Error (node) => node . lower () , Self :: Method (node) => node . lower () , Self :: Typedef (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Comment (node) => node . get_id () , Self :: Eol (node) => node . get_id () , Self :: Error (node) => node . get_id () , Self :: Method (node) => node . get_id () , Self :: Typedef (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Comment (node) => node . get_parent_id () , Self :: Eol (node) => node . get_parent_id () , Self :: Error (node) => node . get_parent_id () , Self :: Method (node) => node . get_parent_id () , Self :: Typedef (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Comment (node) => node . get_range () , Self :: Eol (node) => node . get_range () , Self :: Error (node) => node . get_range () , Self :: Method (node) => node . get_range () , Self :: Typedef (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment_Eol_Error_Method_Typedef { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 2u16 => Ok (Self :: Comment (Comment :: try_from ((node , db , builder , id , parent_id)) ?)) , 3u16 => Ok (Self :: Eol (Eol :: try_from ((node , db , builder , id , parent_id)) ?)) , 29u16 => Ok (Self :: Error (Error :: try_from ((node , db , builder , id , parent_id)) ?)) , 30u16 => Ok (Self :: Method (Method :: try_from ((node , db , builder , id , parent_id)) ?)) , 28u16 => Ok (Self :: Typedef (Typedef :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Comment_Eol_Error_Method_Typedef) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { Array (Array) , Bool (Bool) , Dict (Dict) , Enum (Enum) , Float (Float) , Int (Int) , Maybe (Maybe) , Object (Object) , String (String) , Struct (Struct) , Typeref (Typeref) } impl auto_lsp :: core :: ast :: AstNode for Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 37u16 | 16u16 | 38u16 | 33u16 | 18u16 | 17u16 | 35u16 | 20u16 | 19u16 | 31u16 | 39u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Array (node) => node . lower () , Self :: Bool (node) => node . lower () , Self :: Dict (node) => node . lower () , Self :: Enum (node) => node . lower () , Self :: Float (node) => node . lower () , Self :: Int (node) => node . lower () , Self :: Maybe (node) => node . lower () , Self :: Object (node) => node . lower () , Self :: String (node) => node . lower () , Self :: Struct (node) => node . lower () , Self :: Typeref (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Array (node) => node . get_id () , Self :: Bool (node) => node . get_id () , Self :: Dict (node) => node . get_id () , Self :: Enum (node) => node . get_id () , Self :: Float (node) => node . get_id () , Self :: Int (node) => node . get_id () , Self :: Maybe (node) => node . get_id () , Self :: Object (node) => node . get_id () , Self :: String (node) => node . get_id () , Self :: Struct (node) => node . get_id () , Self :: Typeref (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Array (node) => node . get_parent_id () , Self :: Bool (node) => node . get_parent_id () , Self :: Dict (node) => node . get_parent_id () , Self :: Enum (node) => node . get_parent_id () , Self :: Float (node) => node . get_parent_id () , Self :: Int (node) => node . get_parent_id () , Self :: Maybe (node) => node . get_parent_id () , Self :: Object (node) => node . get_parent_id () , Self :: String (node) => node . get_parent_id () , Self :: Struct (node) => node . get_parent_id () , Self :: Typeref (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Array (node) => node . get_range () , Self :: Bool (node) => node . get_range () , Self :: Dict (node) => node . get_range () , Self :: Enum (node) => node . get_range () , Self :: Float (node) => node . get_range () , Self :: Int (node) => node . get_range () , Self :: Maybe (node) => node . get_range () , Self :: Object (node) => node . get_range () , Self :: String (node) => node . get_range () , Self :: Struct (node) => node . get_range () , Self :: Typeref (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 37u16 => Ok (Self :: Array (Array :: try_from ((node , db , builder , id , parent_id)) ?)) , 16u16 => Ok (Self :: Bool (Bool :: try_from ((node , db , builder , id , parent_id)) ?)) , 38u16 => Ok (Self :: Dict (Dict :: try_from ((node , db , builder , id , parent_id)) ?)) , 33u16 => Ok (Self :: Enum (Enum :: try_from ((node , db , builder , id , parent_id)) ?)) , 18u16 => Ok (Self :: Float (Float :: try_from ((node , db , builder , id , parent_id)) ?)) , 17u16 => Ok (Self :: Int (Int :: try_from ((node , db , builder , id , parent_id)) ?)) , 35u16 => Ok (Self :: Maybe (Maybe :: try_from ((node , db , builder , id , parent_id)) ?)) , 20u16 => Ok (Self :: Object (Object :: try_from ((node , db , builder , id , parent_id)) ?)) , 19u16 => Ok (Self :: String (String :: try_from ((node , db , builder , id , parent_id)) ?)) , 31u16 => Ok (Self :: Struct (Struct :: try_from ((node , db , builder , id , parent_id)) ?)) , 39u16 => Ok (Self :: Typeref (Typeref :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Enum_Struct { Enum (Enum) , Struct (Struct) } impl auto_lsp :: core :: ast :: AstNode for Enum_Struct { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 33u16 | 31u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Enum (node) => node . lower () , Self :: Struct (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Enum (node) => node . get_id () , Self :: Struct (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Enum (node) => node . get_parent_id () , Self :: Struct (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Enum (node) => node . get_range () , Self :: Struct (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Enum_Struct { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 33u16 => Ok (Self :: Enum (Enum :: try_from ((node , db , builder , id , parent_id)) ?)) , 31u16 => Ok (Self :: Struct (Struct :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Enum_Struct) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Comment_Eol { Comment (Comment) , Eol (Eol) } impl auto_lsp :: core :: ast :: AstNode for Comment_Eol { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16 | 3u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Comment (node) => node . lower () , Self :: Eol (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Comment (node) => node . get_id () , Self :: Eol (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Comment (node) => node . get_parent_id () , Self :: Eol (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Comment (node) => node . get_range () , Self :: Eol (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment_Eol { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 2u16 => Ok (Self :: Comment (Comment :: try_from ((node , db , builder , id , parent_id)) ?)) , 3u16 => Ok (Self :: Eol (Eol :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Comment_Eol) , }) } } }
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `AstNodeId` in module `auto_lsp::core::ast`
[INFO] [stdout]   --> src/ast.rs:1:16091
[INFO] [stdout]    |
[INFO] [stdout]  1 | ... struct StructField { pub name : auto_lsp :: core :: ast :: AstNodeId < FieldName > , pub value : auto_lsp :: core :: ast :: AstN...
[INFO] [stdout]    |                                                                ^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]   ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/auto-lsp-core-0.7.0/src/ast/node.rs:26:1
[INFO] [stdout]    |
[INFO] [stdout] 26 | pub trait AstNode: std::fmt::Debug + Send + Sync + DowncastSync {
[INFO] [stdout]    | --------------------------------------------------------------- similarly named trait `AstNode` defined here
[INFO] [stdout]    |
[INFO] [stdout] help: a trait with a similar name exists
[INFO] [stdout]    |
[INFO] [stdout]  1 - # ! [allow (clippy :: all)] # ! [allow (unused)] # ! [allow (dead_code)] # ! [allow (non_camel_case_types)] # ! [allow (non_snake_case)] # [derive (Debug , Clone , PartialEq)] pub struct Array { pub Type : auto_lsp :: core :: ast :: AstNodeId < Type > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Array { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 37u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Array { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut Type = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Type , 10u16 > (& mut Type) }) ; Ok (Self { Type : Type ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Type) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Dict { pub Type : auto_lsp :: core :: ast :: AstNodeId < Type > , pub children : auto_lsp :: core :: ast :: AstNodeId < String > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Dict { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 38u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Dict { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut Type = Ok (None) ; ; let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Type , 10u16 > (& mut Type) ? . on_children_id (& mut children) }) ; Ok (Self { Type : Type ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Type) , } }) ? , children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (String) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Enum { pub member : Vec < auto_lsp :: core :: ast :: AstNodeId < FieldName >> , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Enum { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 33u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Enum { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut member = vec ! [] ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_vec_field_id :: < FieldName , 6u16 > (& mut member) ? . on_vec_children_id (& mut children) }) ; Ok (Self { member , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Error { pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordError > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub value : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Error { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 29u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Error { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut keyword = Ok (None) ; ; let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < KeywordError , 5u16 > (& mut keyword) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_field_id :: < Struct , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Interface { pub declaration : auto_lsp :: core :: ast :: AstNodeId < InterfaceDeclaration > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol_Error_Method_Typedef >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Interface { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 24u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Interface { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut declaration = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < InterfaceDeclaration , 2u16 > (& mut declaration) ? . on_vec_children_id (& mut children) }) ; Ok (Self { declaration : declaration ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (declaration) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct InterfaceDeclaration { pub name : auto_lsp :: core :: ast :: AstNodeId < InterfaceName > , pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordInterface > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for InterfaceDeclaration { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 27u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for InterfaceDeclaration { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut name = Ok (None) ; ; let mut keyword = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < InterfaceName , 7u16 > (& mut name) ? . on_field_id :: < KeywordInterface , 5u16 > (& mut keyword) ? . on_vec_children_id (& mut children) }) ; Ok (Self { name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Maybe { pub questionmark : auto_lsp :: core :: ast :: AstNodeId < Questionmark > , pub just : auto_lsp :: core :: ast :: AstNodeId < Type > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Maybe { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 35u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Maybe { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut questionmark = Ok (None) ; ; let mut just = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Questionmark , 9u16 > (& mut questionmark) ? . on_field_id :: < Type , 4u16 > (& mut just) }) ; Ok (Self { questionmark : questionmark ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (questionmark) , } }) ? , just : just ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (just) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Method { pub input : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub output : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordMethod > , pub arrow : auto_lsp :: core :: ast :: AstNodeId < Arrow > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Method { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 30u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Method { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut input = Ok (None) ; ; let mut output = Ok (None) ; ; let mut keyword = Ok (None) ; ; let mut arrow = Ok (None) ; ; let mut name = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Struct , 3u16 > (& mut input) ? . on_field_id :: < Struct , 8u16 > (& mut output) ? . on_field_id :: < KeywordMethod , 5u16 > (& mut keyword) ? . on_field_id :: < Arrow , 1u16 > (& mut arrow) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_vec_children_id (& mut children) }) ; Ok (Self { input : input ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (input) , } }) ? , output : output ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (output) , } }) ? , keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , arrow : arrow ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (arrow) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Struct { pub member : Vec < auto_lsp :: core :: ast :: AstNodeId < StructField >> , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Struct { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 31u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Struct { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut member = vec ! [] ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_vec_field_id :: < StructField , 6u16 > (& mut member) ? . on_vec_children_id (& mut children) }) ; Ok (Self { member , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct StructField { pub name : auto_lsp :: core :: ast :: AstNodeId < FieldName > , pub value : auto_lsp :: core :: ast :: AstNodeId < Type > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for StructField { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 32u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for StructField { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < FieldName , 7u16 > (& mut name) ? . on_field_id :: < Type , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Type { pub children : auto_lsp :: core :: ast :: AstNodeId < Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Type { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 34u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Type { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_children_id (& mut children) }) ; Ok (Self { children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Typedef { pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordType > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub value : auto_lsp :: core :: ast :: AstNodeId < Enum_Struct > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Typedef { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 28u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Typedef { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut keyword = Ok (None) ; ; let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < KeywordType , 5u16 > (& mut keyword) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_field_id :: < Enum_Struct , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Typeref { pub children : auto_lsp :: core :: ast :: AstNodeId < Name > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Typeref { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 39u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Typeref { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_children_id (& mut children) }) ; Ok (Self { children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Name) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_LeftParen { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_LeftParen { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 9u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_LeftParen { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_RightParen { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_RightParen { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 11u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_RightParen { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_Comma { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_Comma { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 10u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_Comma { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_Colon { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_Colon { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 12u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_Colon { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_LeftBracket { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_LeftBracket { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 14u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_LeftBracket { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_RightBracket { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_RightBracket { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 15u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_RightBracket { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Arrow { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Arrow { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 8u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Arrow { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Bool { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Bool { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 16u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Bool { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Comment { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Comment { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Eol { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Eol { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 3u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Eol { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct FieldName { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for FieldName { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 22u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for FieldName { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Float { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Float { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 18u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Float { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Int { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Int { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 17u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Int { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct InterfaceName { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for InterfaceName { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 23u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for InterfaceName { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordError { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordError { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 6u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordError { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordInterface { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordInterface { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 4u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordInterface { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordMethod { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordMethod { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 7u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordMethod { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordType { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordType { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 5u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordType { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Name { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Name { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 21u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Name { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Object { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Object { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 20u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Object { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Questionmark { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Questionmark { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 13u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Questionmark { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct String { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for String { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 19u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for String { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub enum Comment_Eol_Error_Method_Typedef { Comment (Comment) , Eol (Eol) , Error (Error) , Method (Method) , Typedef (Typedef) } impl auto_lsp :: core :: ast :: AstNode for Comment_Eol_Error_Method_Typedef { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16 | 3u16 | 29u16 | 30u16 | 28u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Comment (node) => node . lower () , Self :: Eol (node) => node . lower () , Self :: Error (node) => node . lower () , Self :: Method (node) => node . lower () , Self :: Typedef (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Comment (node) => node . get_id () , Self :: Eol (node) => node . get_id () , Self :: Error (node) => node . get_id () , Self :: Method (node) => node . get_id () , Self :: Typedef (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Comment (node) => node . get_parent_id () , Self :: Eol (node) => node . get_parent_id () , Self :: Error (node) => node . get_parent_id () , Self :: Method (node) => node . get_parent_id () , Self :: Typedef (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Comment (node) => node . get_range () , Self :: Eol (node) => node . get_range () , Self :: Error (node) => node . get_range () , Self :: Method (node) => node . get_range () , Self :: Typedef (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment_Eol_Error_Method_Typedef { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 2u16 => Ok (Self :: Comment (Comment :: try_from ((node , db , builder , id , parent_id)) ?)) , 3u16 => Ok (Self :: Eol (Eol :: try_from ((node , db , builder , id , parent_id)) ?)) , 29u16 => Ok (Self :: Error (Error :: try_from ((node , db , builder , id , parent_id)) ?)) , 30u16 => Ok (Self :: Method (Method :: try_from ((node , db , builder , id , parent_id)) ?)) , 28u16 => Ok (Self :: Typedef (Typedef :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Comment_Eol_Error_Method_Typedef) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { Array (Array) , Bool (Bool) , Dict (Dict) , Enum (Enum) , Float (Float) , Int (Int) , Maybe (Maybe) , Object (Object) , String (String) , Struct (Struct) , Typeref (Typeref) } impl auto_lsp :: core :: ast :: AstNode for Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 37u16 | 16u16 | 38u16 | 33u16 | 18u16 | 17u16 | 35u16 | 20u16 | 19u16 | 31u16 | 39u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Array (node) => node . lower () , Self :: Bool (node) => node . lower () , Self :: Dict (node) => node . lower () , Self :: Enum (node) => node . lower () , Self :: Float (node) => node . lower () , Self :: Int (node) => node . lower () , Self :: Maybe (node) => node . lower () , Self :: Object (node) => node . lower () , Self :: String (node) => node . lower () , Self :: Struct (node) => node . lower () , Self :: Typeref (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Array (node) => node . get_id () , Self :: Bool (node) => node . get_id () , Self :: Dict (node) => node . get_id () , Self :: Enum (node) => node . get_id () , Self :: Float (node) => node . get_id () , Self :: Int (node) => node . get_id () , Self :: Maybe (node) => node . get_id () , Self :: Object (node) => node . get_id () , Self :: String (node) => node . get_id () , Self :: Struct (node) => node . get_id () , Self :: Typeref (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Array (node) => node . get_parent_id () , Self :: Bool (node) => node . get_parent_id () , Self :: Dict (node) => node . get_parent_id () , Self :: Enum (node) => node . get_parent_id () , Self :: Float (node) => node . get_parent_id () , Self :: Int (node) => node . get_parent_id () , Self :: Maybe (node) => node . get_parent_id () , Self :: Object (node) => node . get_parent_id () , Self :: String (node) => node . get_parent_id () , Self :: Struct (node) => node . get_parent_id () , Self :: Typeref (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Array (node) => node . get_range () , Self :: Bool (node) => node . get_range () , Self :: Dict (node) => node . get_range () , Self :: Enum (node) => node . get_range () , Self :: Float (node) => node . get_range () , Self :: Int (node) => node . get_range () , Self :: Maybe (node) => node . get_range () , Self :: Object (node) => node . get_range () , Self :: String (node) => node . get_range () , Self :: Struct (node) => node . get_range () , Self :: Typeref (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 37u16 => Ok (Self :: Array (Array :: try_from ((node , db , builder , id , parent_id)) ?)) , 16u16 => Ok (Self :: Bool (Bool :: try_from ((node , db , builder , id , parent_id)) ?)) , 38u16 => Ok (Self :: Dict (Dict :: try_from ((node , db , builder , id , parent_id)) ?)) , 33u16 => Ok (Self :: Enum (Enum :: try_from ((node , db , builder , id , parent_id)) ?)) , 18u16 => Ok (Self :: Float (Float :: try_from ((node , db , builder , id , parent_id)) ?)) , 17u16 => Ok (Self :: Int (Int :: try_from ((node , db , builder , id , parent_id)) ?)) , 35u16 => Ok (Self :: Maybe (Maybe :: try_from ((node , db , builder , id , parent_id)) ?)) , 20u16 => Ok (Self :: Object (Object :: try_from ((node , db , builder , id , parent_id)) ?)) , 19u16 => Ok (Self :: String (String :: try_from ((node , db , builder , id , parent_id)) ?)) , 31u16 => Ok (Self :: Struct (Struct :: try_from ((node , db , builder , id , parent_id)) ?)) , 39u16 => Ok (Self :: Typeref (Typeref :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Enum_Struct { Enum (Enum) , Struct (Struct) } impl auto_lsp :: core :: ast :: AstNode for Enum_Struct { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 33u16 | 31u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Enum (node) => node . lower () , Self :: Struct (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Enum (node) => node . get_id () , Self :: Struct (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Enum (node) => node . get_parent_id () , Self :: Struct (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Enum (node) => node . get_range () , Self :: Struct (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Enum_Struct { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 33u16 => Ok (Self :: Enum (Enum :: try_from ((node , db , builder , id , parent_id)) ?)) , 31u16 => Ok (Self :: Struct (Struct :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Enum_Struct) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Comment_Eol { Comment (Comment) , Eol (Eol) } impl auto_lsp :: core :: ast :: AstNode for Comment_Eol { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16 | 3u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Comment (node) => node . lower () , Self :: Eol (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Comment (node) => node . get_id () , Self :: Eol (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Comment (node) => node . get_parent_id () , Self :: Eol (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Comment (node) => node . get_range () , Self :: Eol (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment_Eol { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 2u16 => Ok (Self :: Comment (Comment :: try_from ((node , db , builder , id , parent_id)) ?)) , 3u16 => Ok (Self :: Eol (Eol :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Comment_Eol) , }) } } }
[INFO] [stdout]  1 + # ! [allow (clippy :: all)] # ! [allow (unused)] # ! [allow (dead_code)] # ! [allow (non_camel_case_types)] # ! [allow (non_snake_case)] # [derive (Debug , Clone , PartialEq)] pub struct Array { pub Type : auto_lsp :: core :: ast :: AstNodeId < Type > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Array { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 37u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Array { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut Type = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Type , 10u16 > (& mut Type) }) ; Ok (Self { Type : Type ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Type) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Dict { pub Type : auto_lsp :: core :: ast :: AstNodeId < Type > , pub children : auto_lsp :: core :: ast :: AstNodeId < String > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Dict { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 38u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Dict { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut Type = Ok (None) ; ; let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Type , 10u16 > (& mut Type) ? . on_children_id (& mut children) }) ; Ok (Self { Type : Type ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Type) , } }) ? , children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (String) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Enum { pub member : Vec < auto_lsp :: core :: ast :: AstNodeId < FieldName >> , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Enum { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 33u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Enum { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut member = vec ! [] ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_vec_field_id :: < FieldName , 6u16 > (& mut member) ? . on_vec_children_id (& mut children) }) ; Ok (Self { member , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Error { pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordError > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub value : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Error { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 29u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Error { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut keyword = Ok (None) ; ; let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < KeywordError , 5u16 > (& mut keyword) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_field_id :: < Struct , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Interface { pub declaration : auto_lsp :: core :: ast :: AstNodeId < InterfaceDeclaration > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol_Error_Method_Typedef >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Interface { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 24u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Interface { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut declaration = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < InterfaceDeclaration , 2u16 > (& mut declaration) ? . on_vec_children_id (& mut children) }) ; Ok (Self { declaration : declaration ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (declaration) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct InterfaceDeclaration { pub name : auto_lsp :: core :: ast :: AstNodeId < InterfaceName > , pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordInterface > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for InterfaceDeclaration { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 27u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for InterfaceDeclaration { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut name = Ok (None) ; ; let mut keyword = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < InterfaceName , 7u16 > (& mut name) ? . on_field_id :: < KeywordInterface , 5u16 > (& mut keyword) ? . on_vec_children_id (& mut children) }) ; Ok (Self { name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Maybe { pub questionmark : auto_lsp :: core :: ast :: AstNodeId < Questionmark > , pub just : auto_lsp :: core :: ast :: AstNodeId < Type > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Maybe { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 35u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Maybe { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut questionmark = Ok (None) ; ; let mut just = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Questionmark , 9u16 > (& mut questionmark) ? . on_field_id :: < Type , 4u16 > (& mut just) }) ; Ok (Self { questionmark : questionmark ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (questionmark) , } }) ? , just : just ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (just) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Method { pub input : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub output : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordMethod > , pub arrow : auto_lsp :: core :: ast :: AstNodeId < Arrow > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Method { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 30u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Method { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut input = Ok (None) ; ; let mut output = Ok (None) ; ; let mut keyword = Ok (None) ; ; let mut arrow = Ok (None) ; ; let mut name = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Struct , 3u16 > (& mut input) ? . on_field_id :: < Struct , 8u16 > (& mut output) ? . on_field_id :: < KeywordMethod , 5u16 > (& mut keyword) ? . on_field_id :: < Arrow , 1u16 > (& mut arrow) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_vec_children_id (& mut children) }) ; Ok (Self { input : input ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (input) , } }) ? , output : output ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (output) , } }) ? , keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , arrow : arrow ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (arrow) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Struct { pub member : Vec < auto_lsp :: core :: ast :: AstNodeId < StructField >> , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Struct { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 31u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Struct { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut member = vec ! [] ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_vec_field_id :: < StructField , 6u16 > (& mut member) ? . on_vec_children_id (& mut children) }) ; Ok (Self { member , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct StructField { pub name : auto_lsp :: core :: ast :: AstNode < FieldName > , pub value : auto_lsp :: core :: ast :: AstNodeId < Type > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for StructField { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 32u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for StructField { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < FieldName , 7u16 > (& mut name) ? . on_field_id :: < Type , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Type { pub children : auto_lsp :: core :: ast :: AstNodeId < Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Type { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 34u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Type { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_children_id (& mut children) }) ; Ok (Self { children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Typedef { pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordType > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub value : auto_lsp :: core :: ast :: AstNodeId < Enum_Struct > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Typedef { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 28u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Typedef { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut keyword = Ok (None) ; ; let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < KeywordType , 5u16 > (& mut keyword) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_field_id :: < Enum_Struct , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Typeref { pub children : auto_lsp :: core :: ast :: AstNodeId < Name > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Typeref { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 39u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Typeref { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_children_id (& mut children) }) ; Ok (Self { children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Name) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_LeftParen { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_LeftParen { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 9u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_LeftParen { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_RightParen { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_RightParen { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 11u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_RightParen { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_Comma { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_Comma { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 10u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_Comma { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_Colon { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_Colon { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 12u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_Colon { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_LeftBracket { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_LeftBracket { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 14u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_LeftBracket { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_RightBracket { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_RightBracket { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 15u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_RightBracket { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Arrow { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Arrow { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 8u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Arrow { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Bool { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Bool { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 16u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Bool { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Comment { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Comment { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Eol { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Eol { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 3u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Eol { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct FieldName { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for FieldName { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 22u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for FieldName { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Float { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Float { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 18u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Float { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Int { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Int { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 17u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Int { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct InterfaceName { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for InterfaceName { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 23u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for InterfaceName { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordError { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordError { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 6u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordError { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordInterface { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordInterface { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 4u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordInterface { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordMethod { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordMethod { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 7u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordMethod { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordType { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordType { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 5u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordType { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Name { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Name { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 21u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Name { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Object { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Object { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 20u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Object { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Questionmark { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Questionmark { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 13u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Questionmark { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct String { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for String { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 19u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for String { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub enum Comment_Eol_Error_Method_Typedef { Comment (Comment) , Eol (Eol) , Error (Error) , Method (Method) , Typedef (Typedef) } impl auto_lsp :: core :: ast :: AstNode for Comment_Eol_Error_Method_Typedef { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16 | 3u16 | 29u16 | 30u16 | 28u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Comment (node) => node . lower () , Self :: Eol (node) => node . lower () , Self :: Error (node) => node . lower () , Self :: Method (node) => node . lower () , Self :: Typedef (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Comment (node) => node . get_id () , Self :: Eol (node) => node . get_id () , Self :: Error (node) => node . get_id () , Self :: Method (node) => node . get_id () , Self :: Typedef (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Comment (node) => node . get_parent_id () , Self :: Eol (node) => node . get_parent_id () , Self :: Error (node) => node . get_parent_id () , Self :: Method (node) => node . get_parent_id () , Self :: Typedef (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Comment (node) => node . get_range () , Self :: Eol (node) => node . get_range () , Self :: Error (node) => node . get_range () , Self :: Method (node) => node . get_range () , Self :: Typedef (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment_Eol_Error_Method_Typedef { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 2u16 => Ok (Self :: Comment (Comment :: try_from ((node , db , builder , id , parent_id)) ?)) , 3u16 => Ok (Self :: Eol (Eol :: try_from ((node , db , builder , id , parent_id)) ?)) , 29u16 => Ok (Self :: Error (Error :: try_from ((node , db , builder , id , parent_id)) ?)) , 30u16 => Ok (Self :: Method (Method :: try_from ((node , db , builder , id , parent_id)) ?)) , 28u16 => Ok (Self :: Typedef (Typedef :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Comment_Eol_Error_Method_Typedef) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { Array (Array) , Bool (Bool) , Dict (Dict) , Enum (Enum) , Float (Float) , Int (Int) , Maybe (Maybe) , Object (Object) , String (String) , Struct (Struct) , Typeref (Typeref) } impl auto_lsp :: core :: ast :: AstNode for Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 37u16 | 16u16 | 38u16 | 33u16 | 18u16 | 17u16 | 35u16 | 20u16 | 19u16 | 31u16 | 39u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Array (node) => node . lower () , Self :: Bool (node) => node . lower () , Self :: Dict (node) => node . lower () , Self :: Enum (node) => node . lower () , Self :: Float (node) => node . lower () , Self :: Int (node) => node . lower () , Self :: Maybe (node) => node . lower () , Self :: Object (node) => node . lower () , Self :: String (node) => node . lower () , Self :: Struct (node) => node . lower () , Self :: Typeref (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Array (node) => node . get_id () , Self :: Bool (node) => node . get_id () , Self :: Dict (node) => node . get_id () , Self :: Enum (node) => node . get_id () , Self :: Float (node) => node . get_id () , Self :: Int (node) => node . get_id () , Self :: Maybe (node) => node . get_id () , Self :: Object (node) => node . get_id () , Self :: String (node) => node . get_id () , Self :: Struct (node) => node . get_id () , Self :: Typeref (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Array (node) => node . get_parent_id () , Self :: Bool (node) => node . get_parent_id () , Self :: Dict (node) => node . get_parent_id () , Self :: Enum (node) => node . get_parent_id () , Self :: Float (node) => node . get_parent_id () , Self :: Int (node) => node . get_parent_id () , Self :: Maybe (node) => node . get_parent_id () , Self :: Object (node) => node . get_parent_id () , Self :: String (node) => node . get_parent_id () , Self :: Struct (node) => node . get_parent_id () , Self :: Typeref (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Array (node) => node . get_range () , Self :: Bool (node) => node . get_range () , Self :: Dict (node) => node . get_range () , Self :: Enum (node) => node . get_range () , Self :: Float (node) => node . get_range () , Self :: Int (node) => node . get_range () , Self :: Maybe (node) => node . get_range () , Self :: Object (node) => node . get_range () , Self :: String (node) => node . get_range () , Self :: Struct (node) => node . get_range () , Self :: Typeref (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 37u16 => Ok (Self :: Array (Array :: try_from ((node , db , builder , id , parent_id)) ?)) , 16u16 => Ok (Self :: Bool (Bool :: try_from ((node , db , builder , id , parent_id)) ?)) , 38u16 => Ok (Self :: Dict (Dict :: try_from ((node , db , builder , id , parent_id)) ?)) , 33u16 => Ok (Self :: Enum (Enum :: try_from ((node , db , builder , id , parent_id)) ?)) , 18u16 => Ok (Self :: Float (Float :: try_from ((node , db , builder , id , parent_id)) ?)) , 17u16 => Ok (Self :: Int (Int :: try_from ((node , db , builder , id , parent_id)) ?)) , 35u16 => Ok (Self :: Maybe (Maybe :: try_from ((node , db , builder , id , parent_id)) ?)) , 20u16 => Ok (Self :: Object (Object :: try_from ((node , db , builder , id , parent_id)) ?)) , 19u16 => Ok (Self :: String (String :: try_from ((node , db , builder , id , parent_id)) ?)) , 31u16 => Ok (Self :: Struct (Struct :: try_from ((node , db , builder , id , parent_id)) ?)) , 39u16 => Ok (Self :: Typeref (Typeref :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Enum_Struct { Enum (Enum) , Struct (Struct) } impl auto_lsp :: core :: ast :: AstNode for Enum_Struct { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 33u16 | 31u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Enum (node) => node . lower () , Self :: Struct (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Enum (node) => node . get_id () , Self :: Struct (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Enum (node) => node . get_parent_id () , Self :: Struct (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Enum (node) => node . get_range () , Self :: Struct (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Enum_Struct { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 33u16 => Ok (Self :: Enum (Enum :: try_from ((node , db , builder , id , parent_id)) ?)) , 31u16 => Ok (Self :: Struct (Struct :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Enum_Struct) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Comment_Eol { Comment (Comment) , Eol (Eol) } impl auto_lsp :: core :: ast :: AstNode for Comment_Eol { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16 | 3u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Comment (node) => node . lower () , Self :: Eol (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Comment (node) => node . get_id () , Self :: Eol (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Comment (node) => node . get_parent_id () , Self :: Eol (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Comment (node) => node . get_range () , Self :: Eol (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment_Eol { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 2u16 => Ok (Self :: Comment (Comment :: try_from ((node , db , builder , id , parent_id)) ?)) , 3u16 => Ok (Self :: Eol (Eol :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Comment_Eol) , }) } } }
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `AstNodeId` in module `auto_lsp::core::ast`
[INFO] [stdout]   --> src/ast.rs:1:16156
[INFO] [stdout]    |
[INFO] [stdout]  1 | ...deId < FieldName > , pub value : auto_lsp :: core :: ast :: AstNodeId < Type > , pub children : Vec < auto_lsp :: core :: ast :: ...
[INFO] [stdout]    |                                                                ^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]   ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/auto-lsp-core-0.7.0/src/ast/node.rs:26:1
[INFO] [stdout]    |
[INFO] [stdout] 26 | pub trait AstNode: std::fmt::Debug + Send + Sync + DowncastSync {
[INFO] [stdout]    | --------------------------------------------------------------- similarly named trait `AstNode` defined here
[INFO] [stdout]    |
[INFO] [stdout] help: a trait with a similar name exists
[INFO] [stdout]    |
[INFO] [stdout]  1 - # ! [allow (clippy :: all)] # ! [allow (unused)] # ! [allow (dead_code)] # ! [allow (non_camel_case_types)] # ! [allow (non_snake_case)] # [derive (Debug , Clone , PartialEq)] pub struct Array { pub Type : auto_lsp :: core :: ast :: AstNodeId < Type > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Array { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 37u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Array { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut Type = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Type , 10u16 > (& mut Type) }) ; Ok (Self { Type : Type ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Type) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Dict { pub Type : auto_lsp :: core :: ast :: AstNodeId < Type > , pub children : auto_lsp :: core :: ast :: AstNodeId < String > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Dict { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 38u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Dict { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut Type = Ok (None) ; ; let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Type , 10u16 > (& mut Type) ? . on_children_id (& mut children) }) ; Ok (Self { Type : Type ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Type) , } }) ? , children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (String) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Enum { pub member : Vec < auto_lsp :: core :: ast :: AstNodeId < FieldName >> , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Enum { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 33u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Enum { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut member = vec ! [] ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_vec_field_id :: < FieldName , 6u16 > (& mut member) ? . on_vec_children_id (& mut children) }) ; Ok (Self { member , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Error { pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordError > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub value : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Error { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 29u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Error { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut keyword = Ok (None) ; ; let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < KeywordError , 5u16 > (& mut keyword) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_field_id :: < Struct , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Interface { pub declaration : auto_lsp :: core :: ast :: AstNodeId < InterfaceDeclaration > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol_Error_Method_Typedef >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Interface { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 24u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Interface { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut declaration = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < InterfaceDeclaration , 2u16 > (& mut declaration) ? . on_vec_children_id (& mut children) }) ; Ok (Self { declaration : declaration ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (declaration) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct InterfaceDeclaration { pub name : auto_lsp :: core :: ast :: AstNodeId < InterfaceName > , pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordInterface > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for InterfaceDeclaration { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 27u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for InterfaceDeclaration { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut name = Ok (None) ; ; let mut keyword = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < InterfaceName , 7u16 > (& mut name) ? . on_field_id :: < KeywordInterface , 5u16 > (& mut keyword) ? . on_vec_children_id (& mut children) }) ; Ok (Self { name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Maybe { pub questionmark : auto_lsp :: core :: ast :: AstNodeId < Questionmark > , pub just : auto_lsp :: core :: ast :: AstNodeId < Type > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Maybe { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 35u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Maybe { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut questionmark = Ok (None) ; ; let mut just = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Questionmark , 9u16 > (& mut questionmark) ? . on_field_id :: < Type , 4u16 > (& mut just) }) ; Ok (Self { questionmark : questionmark ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (questionmark) , } }) ? , just : just ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (just) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Method { pub input : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub output : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordMethod > , pub arrow : auto_lsp :: core :: ast :: AstNodeId < Arrow > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Method { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 30u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Method { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut input = Ok (None) ; ; let mut output = Ok (None) ; ; let mut keyword = Ok (None) ; ; let mut arrow = Ok (None) ; ; let mut name = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Struct , 3u16 > (& mut input) ? . on_field_id :: < Struct , 8u16 > (& mut output) ? . on_field_id :: < KeywordMethod , 5u16 > (& mut keyword) ? . on_field_id :: < Arrow , 1u16 > (& mut arrow) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_vec_children_id (& mut children) }) ; Ok (Self { input : input ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (input) , } }) ? , output : output ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (output) , } }) ? , keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , arrow : arrow ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (arrow) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Struct { pub member : Vec < auto_lsp :: core :: ast :: AstNodeId < StructField >> , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Struct { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 31u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Struct { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut member = vec ! [] ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_vec_field_id :: < StructField , 6u16 > (& mut member) ? . on_vec_children_id (& mut children) }) ; Ok (Self { member , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct StructField { pub name : auto_lsp :: core :: ast :: AstNodeId < FieldName > , pub value : auto_lsp :: core :: ast :: AstNodeId < Type > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for StructField { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 32u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for StructField { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < FieldName , 7u16 > (& mut name) ? . on_field_id :: < Type , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Type { pub children : auto_lsp :: core :: ast :: AstNodeId < Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Type { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 34u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Type { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_children_id (& mut children) }) ; Ok (Self { children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Typedef { pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordType > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub value : auto_lsp :: core :: ast :: AstNodeId < Enum_Struct > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Typedef { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 28u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Typedef { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut keyword = Ok (None) ; ; let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < KeywordType , 5u16 > (& mut keyword) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_field_id :: < Enum_Struct , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Typeref { pub children : auto_lsp :: core :: ast :: AstNodeId < Name > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Typeref { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 39u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Typeref { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_children_id (& mut children) }) ; Ok (Self { children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Name) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_LeftParen { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_LeftParen { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 9u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_LeftParen { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_RightParen { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_RightParen { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 11u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_RightParen { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_Comma { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_Comma { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 10u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_Comma { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_Colon { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_Colon { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 12u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_Colon { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_LeftBracket { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_LeftBracket { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 14u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_LeftBracket { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_RightBracket { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_RightBracket { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 15u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_RightBracket { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Arrow { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Arrow { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 8u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Arrow { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Bool { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Bool { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 16u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Bool { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Comment { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Comment { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Eol { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Eol { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 3u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Eol { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct FieldName { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for FieldName { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 22u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for FieldName { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Float { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Float { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 18u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Float { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Int { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Int { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 17u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Int { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct InterfaceName { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for InterfaceName { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 23u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for InterfaceName { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordError { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordError { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 6u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordError { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordInterface { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordInterface { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 4u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordInterface { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordMethod { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordMethod { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 7u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordMethod { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordType { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordType { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 5u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordType { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Name { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Name { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 21u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Name { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Object { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Object { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 20u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Object { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Questionmark { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Questionmark { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 13u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Questionmark { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct String { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for String { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 19u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for String { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub enum Comment_Eol_Error_Method_Typedef { Comment (Comment) , Eol (Eol) , Error (Error) , Method (Method) , Typedef (Typedef) } impl auto_lsp :: core :: ast :: AstNode for Comment_Eol_Error_Method_Typedef { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16 | 3u16 | 29u16 | 30u16 | 28u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Comment (node) => node . lower () , Self :: Eol (node) => node . lower () , Self :: Error (node) => node . lower () , Self :: Method (node) => node . lower () , Self :: Typedef (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Comment (node) => node . get_id () , Self :: Eol (node) => node . get_id () , Self :: Error (node) => node . get_id () , Self :: Method (node) => node . get_id () , Self :: Typedef (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Comment (node) => node . get_parent_id () , Self :: Eol (node) => node . get_parent_id () , Self :: Error (node) => node . get_parent_id () , Self :: Method (node) => node . get_parent_id () , Self :: Typedef (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Comment (node) => node . get_range () , Self :: Eol (node) => node . get_range () , Self :: Error (node) => node . get_range () , Self :: Method (node) => node . get_range () , Self :: Typedef (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment_Eol_Error_Method_Typedef { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 2u16 => Ok (Self :: Comment (Comment :: try_from ((node , db , builder , id , parent_id)) ?)) , 3u16 => Ok (Self :: Eol (Eol :: try_from ((node , db , builder , id , parent_id)) ?)) , 29u16 => Ok (Self :: Error (Error :: try_from ((node , db , builder , id , parent_id)) ?)) , 30u16 => Ok (Self :: Method (Method :: try_from ((node , db , builder , id , parent_id)) ?)) , 28u16 => Ok (Self :: Typedef (Typedef :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Comment_Eol_Error_Method_Typedef) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { Array (Array) , Bool (Bool) , Dict (Dict) , Enum (Enum) , Float (Float) , Int (Int) , Maybe (Maybe) , Object (Object) , String (String) , Struct (Struct) , Typeref (Typeref) } impl auto_lsp :: core :: ast :: AstNode for Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 37u16 | 16u16 | 38u16 | 33u16 | 18u16 | 17u16 | 35u16 | 20u16 | 19u16 | 31u16 | 39u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Array (node) => node . lower () , Self :: Bool (node) => node . lower () , Self :: Dict (node) => node . lower () , Self :: Enum (node) => node . lower () , Self :: Float (node) => node . lower () , Self :: Int (node) => node . lower () , Self :: Maybe (node) => node . lower () , Self :: Object (node) => node . lower () , Self :: String (node) => node . lower () , Self :: Struct (node) => node . lower () , Self :: Typeref (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Array (node) => node . get_id () , Self :: Bool (node) => node . get_id () , Self :: Dict (node) => node . get_id () , Self :: Enum (node) => node . get_id () , Self :: Float (node) => node . get_id () , Self :: Int (node) => node . get_id () , Self :: Maybe (node) => node . get_id () , Self :: Object (node) => node . get_id () , Self :: String (node) => node . get_id () , Self :: Struct (node) => node . get_id () , Self :: Typeref (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Array (node) => node . get_parent_id () , Self :: Bool (node) => node . get_parent_id () , Self :: Dict (node) => node . get_parent_id () , Self :: Enum (node) => node . get_parent_id () , Self :: Float (node) => node . get_parent_id () , Self :: Int (node) => node . get_parent_id () , Self :: Maybe (node) => node . get_parent_id () , Self :: Object (node) => node . get_parent_id () , Self :: String (node) => node . get_parent_id () , Self :: Struct (node) => node . get_parent_id () , Self :: Typeref (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Array (node) => node . get_range () , Self :: Bool (node) => node . get_range () , Self :: Dict (node) => node . get_range () , Self :: Enum (node) => node . get_range () , Self :: Float (node) => node . get_range () , Self :: Int (node) => node . get_range () , Self :: Maybe (node) => node . get_range () , Self :: Object (node) => node . get_range () , Self :: String (node) => node . get_range () , Self :: Struct (node) => node . get_range () , Self :: Typeref (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 37u16 => Ok (Self :: Array (Array :: try_from ((node , db , builder , id , parent_id)) ?)) , 16u16 => Ok (Self :: Bool (Bool :: try_from ((node , db , builder , id , parent_id)) ?)) , 38u16 => Ok (Self :: Dict (Dict :: try_from ((node , db , builder , id , parent_id)) ?)) , 33u16 => Ok (Self :: Enum (Enum :: try_from ((node , db , builder , id , parent_id)) ?)) , 18u16 => Ok (Self :: Float (Float :: try_from ((node , db , builder , id , parent_id)) ?)) , 17u16 => Ok (Self :: Int (Int :: try_from ((node , db , builder , id , parent_id)) ?)) , 35u16 => Ok (Self :: Maybe (Maybe :: try_from ((node , db , builder , id , parent_id)) ?)) , 20u16 => Ok (Self :: Object (Object :: try_from ((node , db , builder , id , parent_id)) ?)) , 19u16 => Ok (Self :: String (String :: try_from ((node , db , builder , id , parent_id)) ?)) , 31u16 => Ok (Self :: Struct (Struct :: try_from ((node , db , builder , id , parent_id)) ?)) , 39u16 => Ok (Self :: Typeref (Typeref :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Enum_Struct { Enum (Enum) , Struct (Struct) } impl auto_lsp :: core :: ast :: AstNode for Enum_Struct { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 33u16 | 31u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Enum (node) => node . lower () , Self :: Struct (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Enum (node) => node . get_id () , Self :: Struct (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Enum (node) => node . get_parent_id () , Self :: Struct (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Enum (node) => node . get_range () , Self :: Struct (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Enum_Struct { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 33u16 => Ok (Self :: Enum (Enum :: try_from ((node , db , builder , id , parent_id)) ?)) , 31u16 => Ok (Self :: Struct (Struct :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Enum_Struct) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Comment_Eol { Comment (Comment) , Eol (Eol) } impl auto_lsp :: core :: ast :: AstNode for Comment_Eol { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16 | 3u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Comment (node) => node . lower () , Self :: Eol (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Comment (node) => node . get_id () , Self :: Eol (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Comment (node) => node . get_parent_id () , Self :: Eol (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Comment (node) => node . get_range () , Self :: Eol (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment_Eol { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 2u16 => Ok (Self :: Comment (Comment :: try_from ((node , db , builder , id , parent_id)) ?)) , 3u16 => Ok (Self :: Eol (Eol :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Comment_Eol) , }) } } }
[INFO] [stdout]  1 + # ! [allow (clippy :: all)] # ! [allow (unused)] # ! [allow (dead_code)] # ! [allow (non_camel_case_types)] # ! [allow (non_snake_case)] # [derive (Debug , Clone , PartialEq)] pub struct Array { pub Type : auto_lsp :: core :: ast :: AstNodeId < Type > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Array { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 37u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Array { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut Type = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Type , 10u16 > (& mut Type) }) ; Ok (Self { Type : Type ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Type) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Dict { pub Type : auto_lsp :: core :: ast :: AstNodeId < Type > , pub children : auto_lsp :: core :: ast :: AstNodeId < String > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Dict { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 38u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Dict { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut Type = Ok (None) ; ; let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Type , 10u16 > (& mut Type) ? . on_children_id (& mut children) }) ; Ok (Self { Type : Type ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Type) , } }) ? , children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (String) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Enum { pub member : Vec < auto_lsp :: core :: ast :: AstNodeId < FieldName >> , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Enum { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 33u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Enum { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut member = vec ! [] ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_vec_field_id :: < FieldName , 6u16 > (& mut member) ? . on_vec_children_id (& mut children) }) ; Ok (Self { member , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Error { pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordError > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub value : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Error { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 29u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Error { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut keyword = Ok (None) ; ; let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < KeywordError , 5u16 > (& mut keyword) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_field_id :: < Struct , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Interface { pub declaration : auto_lsp :: core :: ast :: AstNodeId < InterfaceDeclaration > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol_Error_Method_Typedef >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Interface { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 24u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Interface { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut declaration = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < InterfaceDeclaration , 2u16 > (& mut declaration) ? . on_vec_children_id (& mut children) }) ; Ok (Self { declaration : declaration ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (declaration) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct InterfaceDeclaration { pub name : auto_lsp :: core :: ast :: AstNodeId < InterfaceName > , pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordInterface > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for InterfaceDeclaration { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 27u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for InterfaceDeclaration { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut name = Ok (None) ; ; let mut keyword = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < InterfaceName , 7u16 > (& mut name) ? . on_field_id :: < KeywordInterface , 5u16 > (& mut keyword) ? . on_vec_children_id (& mut children) }) ; Ok (Self { name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Maybe { pub questionmark : auto_lsp :: core :: ast :: AstNodeId < Questionmark > , pub just : auto_lsp :: core :: ast :: AstNodeId < Type > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Maybe { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 35u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Maybe { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut questionmark = Ok (None) ; ; let mut just = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Questionmark , 9u16 > (& mut questionmark) ? . on_field_id :: < Type , 4u16 > (& mut just) }) ; Ok (Self { questionmark : questionmark ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (questionmark) , } }) ? , just : just ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (just) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Method { pub input : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub output : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordMethod > , pub arrow : auto_lsp :: core :: ast :: AstNodeId < Arrow > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Method { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 30u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Method { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut input = Ok (None) ; ; let mut output = Ok (None) ; ; let mut keyword = Ok (None) ; ; let mut arrow = Ok (None) ; ; let mut name = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Struct , 3u16 > (& mut input) ? . on_field_id :: < Struct , 8u16 > (& mut output) ? . on_field_id :: < KeywordMethod , 5u16 > (& mut keyword) ? . on_field_id :: < Arrow , 1u16 > (& mut arrow) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_vec_children_id (& mut children) }) ; Ok (Self { input : input ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (input) , } }) ? , output : output ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (output) , } }) ? , keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , arrow : arrow ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (arrow) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Struct { pub member : Vec < auto_lsp :: core :: ast :: AstNodeId < StructField >> , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Struct { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 31u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Struct { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut member = vec ! [] ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_vec_field_id :: < StructField , 6u16 > (& mut member) ? . on_vec_children_id (& mut children) }) ; Ok (Self { member , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct StructField { pub name : auto_lsp :: core :: ast :: AstNodeId < FieldName > , pub value : auto_lsp :: core :: ast :: AstNode < Type > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for StructField { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 32u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for StructField { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < FieldName , 7u16 > (& mut name) ? . on_field_id :: < Type , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Type { pub children : auto_lsp :: core :: ast :: AstNodeId < Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Type { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 34u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Type { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_children_id (& mut children) }) ; Ok (Self { children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Typedef { pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordType > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub value : auto_lsp :: core :: ast :: AstNodeId < Enum_Struct > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Typedef { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 28u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Typedef { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut keyword = Ok (None) ; ; let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < KeywordType , 5u16 > (& mut keyword) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_field_id :: < Enum_Struct , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Typeref { pub children : auto_lsp :: core :: ast :: AstNodeId < Name > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Typeref { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 39u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Typeref { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_children_id (& mut children) }) ; Ok (Self { children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Name) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_LeftParen { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_LeftParen { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 9u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_LeftParen { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_RightParen { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_RightParen { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 11u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_RightParen { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_Comma { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_Comma { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 10u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_Comma { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_Colon { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_Colon { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 12u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_Colon { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_LeftBracket { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_LeftBracket { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 14u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_LeftBracket { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_RightBracket { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_RightBracket { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 15u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_RightBracket { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Arrow { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Arrow { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 8u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Arrow { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Bool { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Bool { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 16u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Bool { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Comment { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Comment { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Eol { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Eol { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 3u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Eol { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct FieldName { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for FieldName { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 22u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for FieldName { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Float { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Float { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 18u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Float { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Int { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Int { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 17u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Int { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct InterfaceName { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for InterfaceName { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 23u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for InterfaceName { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordError { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordError { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 6u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordError { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordInterface { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordInterface { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 4u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordInterface { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordMethod { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordMethod { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 7u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordMethod { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordType { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordType { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 5u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordType { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Name { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Name { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 21u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Name { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Object { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Object { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 20u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Object { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Questionmark { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Questionmark { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 13u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Questionmark { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct String { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for String { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 19u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for String { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub enum Comment_Eol_Error_Method_Typedef { Comment (Comment) , Eol (Eol) , Error (Error) , Method (Method) , Typedef (Typedef) } impl auto_lsp :: core :: ast :: AstNode for Comment_Eol_Error_Method_Typedef { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16 | 3u16 | 29u16 | 30u16 | 28u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Comment (node) => node . lower () , Self :: Eol (node) => node . lower () , Self :: Error (node) => node . lower () , Self :: Method (node) => node . lower () , Self :: Typedef (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Comment (node) => node . get_id () , Self :: Eol (node) => node . get_id () , Self :: Error (node) => node . get_id () , Self :: Method (node) => node . get_id () , Self :: Typedef (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Comment (node) => node . get_parent_id () , Self :: Eol (node) => node . get_parent_id () , Self :: Error (node) => node . get_parent_id () , Self :: Method (node) => node . get_parent_id () , Self :: Typedef (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Comment (node) => node . get_range () , Self :: Eol (node) => node . get_range () , Self :: Error (node) => node . get_range () , Self :: Method (node) => node . get_range () , Self :: Typedef (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment_Eol_Error_Method_Typedef { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 2u16 => Ok (Self :: Comment (Comment :: try_from ((node , db , builder , id , parent_id)) ?)) , 3u16 => Ok (Self :: Eol (Eol :: try_from ((node , db , builder , id , parent_id)) ?)) , 29u16 => Ok (Self :: Error (Error :: try_from ((node , db , builder , id , parent_id)) ?)) , 30u16 => Ok (Self :: Method (Method :: try_from ((node , db , builder , id , parent_id)) ?)) , 28u16 => Ok (Self :: Typedef (Typedef :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Comment_Eol_Error_Method_Typedef) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { Array (Array) , Bool (Bool) , Dict (Dict) , Enum (Enum) , Float (Float) , Int (Int) , Maybe (Maybe) , Object (Object) , String (String) , Struct (Struct) , Typeref (Typeref) } impl auto_lsp :: core :: ast :: AstNode for Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 37u16 | 16u16 | 38u16 | 33u16 | 18u16 | 17u16 | 35u16 | 20u16 | 19u16 | 31u16 | 39u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Array (node) => node . lower () , Self :: Bool (node) => node . lower () , Self :: Dict (node) => node . lower () , Self :: Enum (node) => node . lower () , Self :: Float (node) => node . lower () , Self :: Int (node) => node . lower () , Self :: Maybe (node) => node . lower () , Self :: Object (node) => node . lower () , Self :: String (node) => node . lower () , Self :: Struct (node) => node . lower () , Self :: Typeref (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Array (node) => node . get_id () , Self :: Bool (node) => node . get_id () , Self :: Dict (node) => node . get_id () , Self :: Enum (node) => node . get_id () , Self :: Float (node) => node . get_id () , Self :: Int (node) => node . get_id () , Self :: Maybe (node) => node . get_id () , Self :: Object (node) => node . get_id () , Self :: String (node) => node . get_id () , Self :: Struct (node) => node . get_id () , Self :: Typeref (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Array (node) => node . get_parent_id () , Self :: Bool (node) => node . get_parent_id () , Self :: Dict (node) => node . get_parent_id () , Self :: Enum (node) => node . get_parent_id () , Self :: Float (node) => node . get_parent_id () , Self :: Int (node) => node . get_parent_id () , Self :: Maybe (node) => node . get_parent_id () , Self :: Object (node) => node . get_parent_id () , Self :: String (node) => node . get_parent_id () , Self :: Struct (node) => node . get_parent_id () , Self :: Typeref (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Array (node) => node . get_range () , Self :: Bool (node) => node . get_range () , Self :: Dict (node) => node . get_range () , Self :: Enum (node) => node . get_range () , Self :: Float (node) => node . get_range () , Self :: Int (node) => node . get_range () , Self :: Maybe (node) => node . get_range () , Self :: Object (node) => node . get_range () , Self :: String (node) => node . get_range () , Self :: Struct (node) => node . get_range () , Self :: Typeref (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 37u16 => Ok (Self :: Array (Array :: try_from ((node , db , builder , id , parent_id)) ?)) , 16u16 => Ok (Self :: Bool (Bool :: try_from ((node , db , builder , id , parent_id)) ?)) , 38u16 => Ok (Self :: Dict (Dict :: try_from ((node , db , builder , id , parent_id)) ?)) , 33u16 => Ok (Self :: Enum (Enum :: try_from ((node , db , builder , id , parent_id)) ?)) , 18u16 => Ok (Self :: Float (Float :: try_from ((node , db , builder , id , parent_id)) ?)) , 17u16 => Ok (Self :: Int (Int :: try_from ((node , db , builder , id , parent_id)) ?)) , 35u16 => Ok (Self :: Maybe (Maybe :: try_from ((node , db , builder , id , parent_id)) ?)) , 20u16 => Ok (Self :: Object (Object :: try_from ((node , db , builder , id , parent_id)) ?)) , 19u16 => Ok (Self :: String (String :: try_from ((node , db , builder , id , parent_id)) ?)) , 31u16 => Ok (Self :: Struct (Struct :: try_from ((node , db , builder , id , parent_id)) ?)) , 39u16 => Ok (Self :: Typeref (Typeref :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Enum_Struct { Enum (Enum) , Struct (Struct) } impl auto_lsp :: core :: ast :: AstNode for Enum_Struct { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 33u16 | 31u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Enum (node) => node . lower () , Self :: Struct (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Enum (node) => node . get_id () , Self :: Struct (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Enum (node) => node . get_parent_id () , Self :: Struct (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Enum (node) => node . get_range () , Self :: Struct (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Enum_Struct { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 33u16 => Ok (Self :: Enum (Enum :: try_from ((node , db , builder , id , parent_id)) ?)) , 31u16 => Ok (Self :: Struct (Struct :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Enum_Struct) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Comment_Eol { Comment (Comment) , Eol (Eol) } impl auto_lsp :: core :: ast :: AstNode for Comment_Eol { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16 | 3u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Comment (node) => node . lower () , Self :: Eol (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Comment (node) => node . get_id () , Self :: Eol (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Comment (node) => node . get_parent_id () , Self :: Eol (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Comment (node) => node . get_range () , Self :: Eol (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment_Eol { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 2u16 => Ok (Self :: Comment (Comment :: try_from ((node , db , builder , id , parent_id)) ?)) , 3u16 => Ok (Self :: Eol (Eol :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Comment_Eol) , }) } } }
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `AstNodeId` in module `auto_lsp::core::ast`
[INFO] [stdout]   --> src/ast.rs:1:16225
[INFO] [stdout]    |
[INFO] [stdout]  1 | ... < Type > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Rang...
[INFO] [stdout]    |                                                                ^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]   ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/auto-lsp-core-0.7.0/src/ast/node.rs:26:1
[INFO] [stdout]    |
[INFO] [stdout] 26 | pub trait AstNode: std::fmt::Debug + Send + Sync + DowncastSync {
[INFO] [stdout]    | --------------------------------------------------------------- similarly named trait `AstNode` defined here
[INFO] [stdout]    |
[INFO] [stdout] help: a trait with a similar name exists
[INFO] [stdout]    |
[INFO] [stdout]  1 - # ! [allow (clippy :: all)] # ! [allow (unused)] # ! [allow (dead_code)] # ! [allow (non_camel_case_types)] # ! [allow (non_snake_case)] # [derive (Debug , Clone , PartialEq)] pub struct Array { pub Type : auto_lsp :: core :: ast :: AstNodeId < Type > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Array { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 37u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Array { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut Type = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Type , 10u16 > (& mut Type) }) ; Ok (Self { Type : Type ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Type) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Dict { pub Type : auto_lsp :: core :: ast :: AstNodeId < Type > , pub children : auto_lsp :: core :: ast :: AstNodeId < String > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Dict { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 38u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Dict { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut Type = Ok (None) ; ; let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Type , 10u16 > (& mut Type) ? . on_children_id (& mut children) }) ; Ok (Self { Type : Type ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Type) , } }) ? , children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (String) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Enum { pub member : Vec < auto_lsp :: core :: ast :: AstNodeId < FieldName >> , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Enum { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 33u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Enum { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut member = vec ! [] ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_vec_field_id :: < FieldName , 6u16 > (& mut member) ? . on_vec_children_id (& mut children) }) ; Ok (Self { member , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Error { pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordError > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub value : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Error { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 29u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Error { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut keyword = Ok (None) ; ; let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < KeywordError , 5u16 > (& mut keyword) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_field_id :: < Struct , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Interface { pub declaration : auto_lsp :: core :: ast :: AstNodeId < InterfaceDeclaration > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol_Error_Method_Typedef >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Interface { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 24u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Interface { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut declaration = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < InterfaceDeclaration , 2u16 > (& mut declaration) ? . on_vec_children_id (& mut children) }) ; Ok (Self { declaration : declaration ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (declaration) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct InterfaceDeclaration { pub name : auto_lsp :: core :: ast :: AstNodeId < InterfaceName > , pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordInterface > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for InterfaceDeclaration { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 27u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for InterfaceDeclaration { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut name = Ok (None) ; ; let mut keyword = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < InterfaceName , 7u16 > (& mut name) ? . on_field_id :: < KeywordInterface , 5u16 > (& mut keyword) ? . on_vec_children_id (& mut children) }) ; Ok (Self { name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Maybe { pub questionmark : auto_lsp :: core :: ast :: AstNodeId < Questionmark > , pub just : auto_lsp :: core :: ast :: AstNodeId < Type > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Maybe { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 35u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Maybe { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut questionmark = Ok (None) ; ; let mut just = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Questionmark , 9u16 > (& mut questionmark) ? . on_field_id :: < Type , 4u16 > (& mut just) }) ; Ok (Self { questionmark : questionmark ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (questionmark) , } }) ? , just : just ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (just) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Method { pub input : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub output : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordMethod > , pub arrow : auto_lsp :: core :: ast :: AstNodeId < Arrow > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Method { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 30u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Method { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut input = Ok (None) ; ; let mut output = Ok (None) ; ; let mut keyword = Ok (None) ; ; let mut arrow = Ok (None) ; ; let mut name = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Struct , 3u16 > (& mut input) ? . on_field_id :: < Struct , 8u16 > (& mut output) ? . on_field_id :: < KeywordMethod , 5u16 > (& mut keyword) ? . on_field_id :: < Arrow , 1u16 > (& mut arrow) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_vec_children_id (& mut children) }) ; Ok (Self { input : input ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (input) , } }) ? , output : output ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (output) , } }) ? , keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , arrow : arrow ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (arrow) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Struct { pub member : Vec < auto_lsp :: core :: ast :: AstNodeId < StructField >> , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Struct { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 31u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Struct { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut member = vec ! [] ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_vec_field_id :: < StructField , 6u16 > (& mut member) ? . on_vec_children_id (& mut children) }) ; Ok (Self { member , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct StructField { pub name : auto_lsp :: core :: ast :: AstNodeId < FieldName > , pub value : auto_lsp :: core :: ast :: AstNodeId < Type > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for StructField { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 32u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for StructField { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < FieldName , 7u16 > (& mut name) ? . on_field_id :: < Type , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Type { pub children : auto_lsp :: core :: ast :: AstNodeId < Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Type { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 34u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Type { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_children_id (& mut children) }) ; Ok (Self { children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Typedef { pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordType > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub value : auto_lsp :: core :: ast :: AstNodeId < Enum_Struct > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Typedef { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 28u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Typedef { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut keyword = Ok (None) ; ; let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < KeywordType , 5u16 > (& mut keyword) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_field_id :: < Enum_Struct , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Typeref { pub children : auto_lsp :: core :: ast :: AstNodeId < Name > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Typeref { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 39u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Typeref { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_children_id (& mut children) }) ; Ok (Self { children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Name) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_LeftParen { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_LeftParen { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 9u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_LeftParen { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_RightParen { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_RightParen { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 11u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_RightParen { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_Comma { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_Comma { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 10u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_Comma { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_Colon { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_Colon { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 12u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_Colon { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_LeftBracket { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_LeftBracket { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 14u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_LeftBracket { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_RightBracket { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_RightBracket { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 15u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_RightBracket { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Arrow { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Arrow { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 8u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Arrow { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Bool { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Bool { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 16u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Bool { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Comment { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Comment { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Eol { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Eol { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 3u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Eol { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct FieldName { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for FieldName { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 22u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for FieldName { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Float { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Float { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 18u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Float { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Int { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Int { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 17u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Int { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct InterfaceName { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for InterfaceName { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 23u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for InterfaceName { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordError { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordError { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 6u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordError { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordInterface { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordInterface { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 4u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordInterface { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordMethod { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordMethod { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 7u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordMethod { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordType { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordType { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 5u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordType { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Name { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Name { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 21u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Name { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Object { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Object { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 20u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Object { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Questionmark { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Questionmark { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 13u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Questionmark { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct String { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for String { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 19u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for String { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub enum Comment_Eol_Error_Method_Typedef { Comment (Comment) , Eol (Eol) , Error (Error) , Method (Method) , Typedef (Typedef) } impl auto_lsp :: core :: ast :: AstNode for Comment_Eol_Error_Method_Typedef { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16 | 3u16 | 29u16 | 30u16 | 28u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Comment (node) => node . lower () , Self :: Eol (node) => node . lower () , Self :: Error (node) => node . lower () , Self :: Method (node) => node . lower () , Self :: Typedef (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Comment (node) => node . get_id () , Self :: Eol (node) => node . get_id () , Self :: Error (node) => node . get_id () , Self :: Method (node) => node . get_id () , Self :: Typedef (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Comment (node) => node . get_parent_id () , Self :: Eol (node) => node . get_parent_id () , Self :: Error (node) => node . get_parent_id () , Self :: Method (node) => node . get_parent_id () , Self :: Typedef (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Comment (node) => node . get_range () , Self :: Eol (node) => node . get_range () , Self :: Error (node) => node . get_range () , Self :: Method (node) => node . get_range () , Self :: Typedef (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment_Eol_Error_Method_Typedef { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 2u16 => Ok (Self :: Comment (Comment :: try_from ((node , db , builder , id , parent_id)) ?)) , 3u16 => Ok (Self :: Eol (Eol :: try_from ((node , db , builder , id , parent_id)) ?)) , 29u16 => Ok (Self :: Error (Error :: try_from ((node , db , builder , id , parent_id)) ?)) , 30u16 => Ok (Self :: Method (Method :: try_from ((node , db , builder , id , parent_id)) ?)) , 28u16 => Ok (Self :: Typedef (Typedef :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Comment_Eol_Error_Method_Typedef) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { Array (Array) , Bool (Bool) , Dict (Dict) , Enum (Enum) , Float (Float) , Int (Int) , Maybe (Maybe) , Object (Object) , String (String) , Struct (Struct) , Typeref (Typeref) } impl auto_lsp :: core :: ast :: AstNode for Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 37u16 | 16u16 | 38u16 | 33u16 | 18u16 | 17u16 | 35u16 | 20u16 | 19u16 | 31u16 | 39u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Array (node) => node . lower () , Self :: Bool (node) => node . lower () , Self :: Dict (node) => node . lower () , Self :: Enum (node) => node . lower () , Self :: Float (node) => node . lower () , Self :: Int (node) => node . lower () , Self :: Maybe (node) => node . lower () , Self :: Object (node) => node . lower () , Self :: String (node) => node . lower () , Self :: Struct (node) => node . lower () , Self :: Typeref (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Array (node) => node . get_id () , Self :: Bool (node) => node . get_id () , Self :: Dict (node) => node . get_id () , Self :: Enum (node) => node . get_id () , Self :: Float (node) => node . get_id () , Self :: Int (node) => node . get_id () , Self :: Maybe (node) => node . get_id () , Self :: Object (node) => node . get_id () , Self :: String (node) => node . get_id () , Self :: Struct (node) => node . get_id () , Self :: Typeref (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Array (node) => node . get_parent_id () , Self :: Bool (node) => node . get_parent_id () , Self :: Dict (node) => node . get_parent_id () , Self :: Enum (node) => node . get_parent_id () , Self :: Float (node) => node . get_parent_id () , Self :: Int (node) => node . get_parent_id () , Self :: Maybe (node) => node . get_parent_id () , Self :: Object (node) => node . get_parent_id () , Self :: String (node) => node . get_parent_id () , Self :: Struct (node) => node . get_parent_id () , Self :: Typeref (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Array (node) => node . get_range () , Self :: Bool (node) => node . get_range () , Self :: Dict (node) => node . get_range () , Self :: Enum (node) => node . get_range () , Self :: Float (node) => node . get_range () , Self :: Int (node) => node . get_range () , Self :: Maybe (node) => node . get_range () , Self :: Object (node) => node . get_range () , Self :: String (node) => node . get_range () , Self :: Struct (node) => node . get_range () , Self :: Typeref (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 37u16 => Ok (Self :: Array (Array :: try_from ((node , db , builder , id , parent_id)) ?)) , 16u16 => Ok (Self :: Bool (Bool :: try_from ((node , db , builder , id , parent_id)) ?)) , 38u16 => Ok (Self :: Dict (Dict :: try_from ((node , db , builder , id , parent_id)) ?)) , 33u16 => Ok (Self :: Enum (Enum :: try_from ((node , db , builder , id , parent_id)) ?)) , 18u16 => Ok (Self :: Float (Float :: try_from ((node , db , builder , id , parent_id)) ?)) , 17u16 => Ok (Self :: Int (Int :: try_from ((node , db , builder , id , parent_id)) ?)) , 35u16 => Ok (Self :: Maybe (Maybe :: try_from ((node , db , builder , id , parent_id)) ?)) , 20u16 => Ok (Self :: Object (Object :: try_from ((node , db , builder , id , parent_id)) ?)) , 19u16 => Ok (Self :: String (String :: try_from ((node , db , builder , id , parent_id)) ?)) , 31u16 => Ok (Self :: Struct (Struct :: try_from ((node , db , builder , id , parent_id)) ?)) , 39u16 => Ok (Self :: Typeref (Typeref :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Enum_Struct { Enum (Enum) , Struct (Struct) } impl auto_lsp :: core :: ast :: AstNode for Enum_Struct { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 33u16 | 31u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Enum (node) => node . lower () , Self :: Struct (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Enum (node) => node . get_id () , Self :: Struct (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Enum (node) => node . get_parent_id () , Self :: Struct (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Enum (node) => node . get_range () , Self :: Struct (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Enum_Struct { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 33u16 => Ok (Self :: Enum (Enum :: try_from ((node , db , builder , id , parent_id)) ?)) , 31u16 => Ok (Self :: Struct (Struct :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Enum_Struct) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Comment_Eol { Comment (Comment) , Eol (Eol) } impl auto_lsp :: core :: ast :: AstNode for Comment_Eol { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16 | 3u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Comment (node) => node . lower () , Self :: Eol (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Comment (node) => node . get_id () , Self :: Eol (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Comment (node) => node . get_parent_id () , Self :: Eol (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Comment (node) => node . get_range () , Self :: Eol (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment_Eol { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 2u16 => Ok (Self :: Comment (Comment :: try_from ((node , db , builder , id , parent_id)) ?)) , 3u16 => Ok (Self :: Eol (Eol :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Comment_Eol) , }) } } }
[INFO] [stdout]  1 + # ! [allow (clippy :: all)] # ! [allow (unused)] # ! [allow (dead_code)] # ! [allow (non_camel_case_types)] # ! [allow (non_snake_case)] # [derive (Debug , Clone , PartialEq)] pub struct Array { pub Type : auto_lsp :: core :: ast :: AstNodeId < Type > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Array { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 37u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Array { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut Type = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Type , 10u16 > (& mut Type) }) ; Ok (Self { Type : Type ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Type) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Dict { pub Type : auto_lsp :: core :: ast :: AstNodeId < Type > , pub children : auto_lsp :: core :: ast :: AstNodeId < String > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Dict { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 38u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Dict { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut Type = Ok (None) ; ; let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Type , 10u16 > (& mut Type) ? . on_children_id (& mut children) }) ; Ok (Self { Type : Type ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Type) , } }) ? , children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (String) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Enum { pub member : Vec < auto_lsp :: core :: ast :: AstNodeId < FieldName >> , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Enum { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 33u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Enum { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut member = vec ! [] ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_vec_field_id :: < FieldName , 6u16 > (& mut member) ? . on_vec_children_id (& mut children) }) ; Ok (Self { member , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Error { pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordError > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub value : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Error { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 29u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Error { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut keyword = Ok (None) ; ; let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < KeywordError , 5u16 > (& mut keyword) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_field_id :: < Struct , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Interface { pub declaration : auto_lsp :: core :: ast :: AstNodeId < InterfaceDeclaration > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol_Error_Method_Typedef >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Interface { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 24u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Interface { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut declaration = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < InterfaceDeclaration , 2u16 > (& mut declaration) ? . on_vec_children_id (& mut children) }) ; Ok (Self { declaration : declaration ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (declaration) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct InterfaceDeclaration { pub name : auto_lsp :: core :: ast :: AstNodeId < InterfaceName > , pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordInterface > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for InterfaceDeclaration { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 27u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for InterfaceDeclaration { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut name = Ok (None) ; ; let mut keyword = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < InterfaceName , 7u16 > (& mut name) ? . on_field_id :: < KeywordInterface , 5u16 > (& mut keyword) ? . on_vec_children_id (& mut children) }) ; Ok (Self { name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Maybe { pub questionmark : auto_lsp :: core :: ast :: AstNodeId < Questionmark > , pub just : auto_lsp :: core :: ast :: AstNodeId < Type > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Maybe { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 35u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Maybe { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut questionmark = Ok (None) ; ; let mut just = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Questionmark , 9u16 > (& mut questionmark) ? . on_field_id :: < Type , 4u16 > (& mut just) }) ; Ok (Self { questionmark : questionmark ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (questionmark) , } }) ? , just : just ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (just) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Method { pub input : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub output : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordMethod > , pub arrow : auto_lsp :: core :: ast :: AstNodeId < Arrow > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Method { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 30u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Method { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut input = Ok (None) ; ; let mut output = Ok (None) ; ; let mut keyword = Ok (None) ; ; let mut arrow = Ok (None) ; ; let mut name = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Struct , 3u16 > (& mut input) ? . on_field_id :: < Struct , 8u16 > (& mut output) ? . on_field_id :: < KeywordMethod , 5u16 > (& mut keyword) ? . on_field_id :: < Arrow , 1u16 > (& mut arrow) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_vec_children_id (& mut children) }) ; Ok (Self { input : input ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (input) , } }) ? , output : output ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (output) , } }) ? , keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , arrow : arrow ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (arrow) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Struct { pub member : Vec < auto_lsp :: core :: ast :: AstNodeId < StructField >> , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Struct { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 31u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Struct { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut member = vec ! [] ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_vec_field_id :: < StructField , 6u16 > (& mut member) ? . on_vec_children_id (& mut children) }) ; Ok (Self { member , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct StructField { pub name : auto_lsp :: core :: ast :: AstNodeId < FieldName > , pub value : auto_lsp :: core :: ast :: AstNodeId < Type > , pub children : Vec < auto_lsp :: core :: ast :: AstNode < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for StructField { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 32u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for StructField { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < FieldName , 7u16 > (& mut name) ? . on_field_id :: < Type , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Type { pub children : auto_lsp :: core :: ast :: AstNodeId < Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Type { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 34u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Type { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_children_id (& mut children) }) ; Ok (Self { children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Typedef { pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordType > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub value : auto_lsp :: core :: ast :: AstNodeId < Enum_Struct > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Typedef { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 28u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Typedef { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut keyword = Ok (None) ; ; let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < KeywordType , 5u16 > (& mut keyword) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_field_id :: < Enum_Struct , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Typeref { pub children : auto_lsp :: core :: ast :: AstNodeId < Name > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Typeref { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 39u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Typeref { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_children_id (& mut children) }) ; Ok (Self { children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Name) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_LeftParen { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_LeftParen { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 9u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_LeftParen { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_RightParen { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_RightParen { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 11u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_RightParen { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_Comma { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_Comma { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 10u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_Comma { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_Colon { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_Colon { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 12u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_Colon { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_LeftBracket { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_LeftBracket { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 14u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_LeftBracket { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_RightBracket { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_RightBracket { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 15u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_RightBracket { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Arrow { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Arrow { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 8u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Arrow { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Bool { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Bool { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 16u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Bool { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Comment { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Comment { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Eol { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Eol { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 3u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Eol { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct FieldName { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for FieldName { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 22u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for FieldName { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Float { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Float { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 18u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Float { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Int { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Int { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 17u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Int { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct InterfaceName { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for InterfaceName { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 23u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for InterfaceName { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordError { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordError { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 6u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordError { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordInterface { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordInterface { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 4u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordInterface { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordMethod { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordMethod { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 7u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordMethod { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordType { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordType { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 5u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordType { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Name { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Name { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 21u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Name { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Object { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Object { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 20u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Object { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Questionmark { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Questionmark { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 13u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Questionmark { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct String { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for String { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 19u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for String { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub enum Comment_Eol_Error_Method_Typedef { Comment (Comment) , Eol (Eol) , Error (Error) , Method (Method) , Typedef (Typedef) } impl auto_lsp :: core :: ast :: AstNode for Comment_Eol_Error_Method_Typedef { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16 | 3u16 | 29u16 | 30u16 | 28u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Comment (node) => node . lower () , Self :: Eol (node) => node . lower () , Self :: Error (node) => node . lower () , Self :: Method (node) => node . lower () , Self :: Typedef (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Comment (node) => node . get_id () , Self :: Eol (node) => node . get_id () , Self :: Error (node) => node . get_id () , Self :: Method (node) => node . get_id () , Self :: Typedef (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Comment (node) => node . get_parent_id () , Self :: Eol (node) => node . get_parent_id () , Self :: Error (node) => node . get_parent_id () , Self :: Method (node) => node . get_parent_id () , Self :: Typedef (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Comment (node) => node . get_range () , Self :: Eol (node) => node . get_range () , Self :: Error (node) => node . get_range () , Self :: Method (node) => node . get_range () , Self :: Typedef (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment_Eol_Error_Method_Typedef { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 2u16 => Ok (Self :: Comment (Comment :: try_from ((node , db , builder , id , parent_id)) ?)) , 3u16 => Ok (Self :: Eol (Eol :: try_from ((node , db , builder , id , parent_id)) ?)) , 29u16 => Ok (Self :: Error (Error :: try_from ((node , db , builder , id , parent_id)) ?)) , 30u16 => Ok (Self :: Method (Method :: try_from ((node , db , builder , id , parent_id)) ?)) , 28u16 => Ok (Self :: Typedef (Typedef :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Comment_Eol_Error_Method_Typedef) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { Array (Array) , Bool (Bool) , Dict (Dict) , Enum (Enum) , Float (Float) , Int (Int) , Maybe (Maybe) , Object (Object) , String (String) , Struct (Struct) , Typeref (Typeref) } impl auto_lsp :: core :: ast :: AstNode for Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 37u16 | 16u16 | 38u16 | 33u16 | 18u16 | 17u16 | 35u16 | 20u16 | 19u16 | 31u16 | 39u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Array (node) => node . lower () , Self :: Bool (node) => node . lower () , Self :: Dict (node) => node . lower () , Self :: Enum (node) => node . lower () , Self :: Float (node) => node . lower () , Self :: Int (node) => node . lower () , Self :: Maybe (node) => node . lower () , Self :: Object (node) => node . lower () , Self :: String (node) => node . lower () , Self :: Struct (node) => node . lower () , Self :: Typeref (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Array (node) => node . get_id () , Self :: Bool (node) => node . get_id () , Self :: Dict (node) => node . get_id () , Self :: Enum (node) => node . get_id () , Self :: Float (node) => node . get_id () , Self :: Int (node) => node . get_id () , Self :: Maybe (node) => node . get_id () , Self :: Object (node) => node . get_id () , Self :: String (node) => node . get_id () , Self :: Struct (node) => node . get_id () , Self :: Typeref (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Array (node) => node . get_parent_id () , Self :: Bool (node) => node . get_parent_id () , Self :: Dict (node) => node . get_parent_id () , Self :: Enum (node) => node . get_parent_id () , Self :: Float (node) => node . get_parent_id () , Self :: Int (node) => node . get_parent_id () , Self :: Maybe (node) => node . get_parent_id () , Self :: Object (node) => node . get_parent_id () , Self :: String (node) => node . get_parent_id () , Self :: Struct (node) => node . get_parent_id () , Self :: Typeref (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Array (node) => node . get_range () , Self :: Bool (node) => node . get_range () , Self :: Dict (node) => node . get_range () , Self :: Enum (node) => node . get_range () , Self :: Float (node) => node . get_range () , Self :: Int (node) => node . get_range () , Self :: Maybe (node) => node . get_range () , Self :: Object (node) => node . get_range () , Self :: String (node) => node . get_range () , Self :: Struct (node) => node . get_range () , Self :: Typeref (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 37u16 => Ok (Self :: Array (Array :: try_from ((node , db , builder , id , parent_id)) ?)) , 16u16 => Ok (Self :: Bool (Bool :: try_from ((node , db , builder , id , parent_id)) ?)) , 38u16 => Ok (Self :: Dict (Dict :: try_from ((node , db , builder , id , parent_id)) ?)) , 33u16 => Ok (Self :: Enum (Enum :: try_from ((node , db , builder , id , parent_id)) ?)) , 18u16 => Ok (Self :: Float (Float :: try_from ((node , db , builder , id , parent_id)) ?)) , 17u16 => Ok (Self :: Int (Int :: try_from ((node , db , builder , id , parent_id)) ?)) , 35u16 => Ok (Self :: Maybe (Maybe :: try_from ((node , db , builder , id , parent_id)) ?)) , 20u16 => Ok (Self :: Object (Object :: try_from ((node , db , builder , id , parent_id)) ?)) , 19u16 => Ok (Self :: String (String :: try_from ((node , db , builder , id , parent_id)) ?)) , 31u16 => Ok (Self :: Struct (Struct :: try_from ((node , db , builder , id , parent_id)) ?)) , 39u16 => Ok (Self :: Typeref (Typeref :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Enum_Struct { Enum (Enum) , Struct (Struct) } impl auto_lsp :: core :: ast :: AstNode for Enum_Struct { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 33u16 | 31u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Enum (node) => node . lower () , Self :: Struct (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Enum (node) => node . get_id () , Self :: Struct (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Enum (node) => node . get_parent_id () , Self :: Struct (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Enum (node) => node . get_range () , Self :: Struct (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Enum_Struct { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 33u16 => Ok (Self :: Enum (Enum :: try_from ((node , db , builder , id , parent_id)) ?)) , 31u16 => Ok (Self :: Struct (Struct :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Enum_Struct) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Comment_Eol { Comment (Comment) , Eol (Eol) } impl auto_lsp :: core :: ast :: AstNode for Comment_Eol { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16 | 3u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Comment (node) => node . lower () , Self :: Eol (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Comment (node) => node . get_id () , Self :: Eol (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Comment (node) => node . get_parent_id () , Self :: Eol (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Comment (node) => node . get_range () , Self :: Eol (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment_Eol { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 2u16 => Ok (Self :: Comment (Comment :: try_from ((node , db , builder , id , parent_id)) ?)) , 3u16 => Ok (Self :: Eol (Eol :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Comment_Eol) , }) } } }
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `AstNodeId` in module `auto_lsp::core::ast`
[INFO] [stdout]   --> src/ast.rs:1:17927
[INFO] [stdout]    |
[INFO] [stdout]  1 | ...pub struct Type { pub children : auto_lsp :: core :: ast :: AstNodeId < Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct...
[INFO] [stdout]    |                                                                ^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]   ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/auto-lsp-core-0.7.0/src/ast/node.rs:26:1
[INFO] [stdout]    |
[INFO] [stdout] 26 | pub trait AstNode: std::fmt::Debug + Send + Sync + DowncastSync {
[INFO] [stdout]    | --------------------------------------------------------------- similarly named trait `AstNode` defined here
[INFO] [stdout]    |
[INFO] [stdout] help: a trait with a similar name exists
[INFO] [stdout]    |
[INFO] [stdout]  1 - # ! [allow (clippy :: all)] # ! [allow (unused)] # ! [allow (dead_code)] # ! [allow (non_camel_case_types)] # ! [allow (non_snake_case)] # [derive (Debug , Clone , PartialEq)] pub struct Array { pub Type : auto_lsp :: core :: ast :: AstNodeId < Type > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Array { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 37u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Array { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut Type = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Type , 10u16 > (& mut Type) }) ; Ok (Self { Type : Type ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Type) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Dict { pub Type : auto_lsp :: core :: ast :: AstNodeId < Type > , pub children : auto_lsp :: core :: ast :: AstNodeId < String > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Dict { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 38u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Dict { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut Type = Ok (None) ; ; let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Type , 10u16 > (& mut Type) ? . on_children_id (& mut children) }) ; Ok (Self { Type : Type ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Type) , } }) ? , children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (String) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Enum { pub member : Vec < auto_lsp :: core :: ast :: AstNodeId < FieldName >> , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Enum { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 33u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Enum { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut member = vec ! [] ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_vec_field_id :: < FieldName , 6u16 > (& mut member) ? . on_vec_children_id (& mut children) }) ; Ok (Self { member , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Error { pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordError > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub value : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Error { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 29u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Error { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut keyword = Ok (None) ; ; let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < KeywordError , 5u16 > (& mut keyword) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_field_id :: < Struct , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Interface { pub declaration : auto_lsp :: core :: ast :: AstNodeId < InterfaceDeclaration > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol_Error_Method_Typedef >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Interface { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 24u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Interface { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut declaration = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < InterfaceDeclaration , 2u16 > (& mut declaration) ? . on_vec_children_id (& mut children) }) ; Ok (Self { declaration : declaration ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (declaration) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct InterfaceDeclaration { pub name : auto_lsp :: core :: ast :: AstNodeId < InterfaceName > , pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordInterface > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for InterfaceDeclaration { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 27u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for InterfaceDeclaration { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut name = Ok (None) ; ; let mut keyword = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < InterfaceName , 7u16 > (& mut name) ? . on_field_id :: < KeywordInterface , 5u16 > (& mut keyword) ? . on_vec_children_id (& mut children) }) ; Ok (Self { name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Maybe { pub questionmark : auto_lsp :: core :: ast :: AstNodeId < Questionmark > , pub just : auto_lsp :: core :: ast :: AstNodeId < Type > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Maybe { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 35u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Maybe { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut questionmark = Ok (None) ; ; let mut just = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Questionmark , 9u16 > (& mut questionmark) ? . on_field_id :: < Type , 4u16 > (& mut just) }) ; Ok (Self { questionmark : questionmark ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (questionmark) , } }) ? , just : just ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (just) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Method { pub input : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub output : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordMethod > , pub arrow : auto_lsp :: core :: ast :: AstNodeId < Arrow > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Method { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 30u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Method { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut input = Ok (None) ; ; let mut output = Ok (None) ; ; let mut keyword = Ok (None) ; ; let mut arrow = Ok (None) ; ; let mut name = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Struct , 3u16 > (& mut input) ? . on_field_id :: < Struct , 8u16 > (& mut output) ? . on_field_id :: < KeywordMethod , 5u16 > (& mut keyword) ? . on_field_id :: < Arrow , 1u16 > (& mut arrow) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_vec_children_id (& mut children) }) ; Ok (Self { input : input ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (input) , } }) ? , output : output ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (output) , } }) ? , keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , arrow : arrow ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (arrow) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Struct { pub member : Vec < auto_lsp :: core :: ast :: AstNodeId < StructField >> , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Struct { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 31u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Struct { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut member = vec ! [] ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_vec_field_id :: < StructField , 6u16 > (& mut member) ? . on_vec_children_id (& mut children) }) ; Ok (Self { member , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct StructField { pub name : auto_lsp :: core :: ast :: AstNodeId < FieldName > , pub value : auto_lsp :: core :: ast :: AstNodeId < Type > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for StructField { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 32u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for StructField { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < FieldName , 7u16 > (& mut name) ? . on_field_id :: < Type , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Type { pub children : auto_lsp :: core :: ast :: AstNodeId < Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Type { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 34u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Type { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_children_id (& mut children) }) ; Ok (Self { children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Typedef { pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordType > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub value : auto_lsp :: core :: ast :: AstNodeId < Enum_Struct > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Typedef { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 28u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Typedef { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut keyword = Ok (None) ; ; let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < KeywordType , 5u16 > (& mut keyword) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_field_id :: < Enum_Struct , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Typeref { pub children : auto_lsp :: core :: ast :: AstNodeId < Name > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Typeref { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 39u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Typeref { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_children_id (& mut children) }) ; Ok (Self { children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Name) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_LeftParen { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_LeftParen { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 9u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_LeftParen { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_RightParen { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_RightParen { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 11u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_RightParen { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_Comma { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_Comma { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 10u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_Comma { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_Colon { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_Colon { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 12u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_Colon { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_LeftBracket { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_LeftBracket { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 14u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_LeftBracket { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_RightBracket { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_RightBracket { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 15u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_RightBracket { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Arrow { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Arrow { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 8u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Arrow { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Bool { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Bool { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 16u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Bool { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Comment { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Comment { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Eol { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Eol { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 3u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Eol { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct FieldName { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for FieldName { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 22u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for FieldName { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Float { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Float { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 18u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Float { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Int { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Int { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 17u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Int { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct InterfaceName { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for InterfaceName { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 23u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for InterfaceName { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordError { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordError { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 6u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordError { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordInterface { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordInterface { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 4u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordInterface { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordMethod { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordMethod { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 7u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordMethod { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordType { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordType { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 5u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordType { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Name { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Name { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 21u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Name { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Object { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Object { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 20u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Object { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Questionmark { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Questionmark { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 13u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Questionmark { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct String { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for String { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 19u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for String { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub enum Comment_Eol_Error_Method_Typedef { Comment (Comment) , Eol (Eol) , Error (Error) , Method (Method) , Typedef (Typedef) } impl auto_lsp :: core :: ast :: AstNode for Comment_Eol_Error_Method_Typedef { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16 | 3u16 | 29u16 | 30u16 | 28u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Comment (node) => node . lower () , Self :: Eol (node) => node . lower () , Self :: Error (node) => node . lower () , Self :: Method (node) => node . lower () , Self :: Typedef (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Comment (node) => node . get_id () , Self :: Eol (node) => node . get_id () , Self :: Error (node) => node . get_id () , Self :: Method (node) => node . get_id () , Self :: Typedef (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Comment (node) => node . get_parent_id () , Self :: Eol (node) => node . get_parent_id () , Self :: Error (node) => node . get_parent_id () , Self :: Method (node) => node . get_parent_id () , Self :: Typedef (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Comment (node) => node . get_range () , Self :: Eol (node) => node . get_range () , Self :: Error (node) => node . get_range () , Self :: Method (node) => node . get_range () , Self :: Typedef (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment_Eol_Error_Method_Typedef { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 2u16 => Ok (Self :: Comment (Comment :: try_from ((node , db , builder , id , parent_id)) ?)) , 3u16 => Ok (Self :: Eol (Eol :: try_from ((node , db , builder , id , parent_id)) ?)) , 29u16 => Ok (Self :: Error (Error :: try_from ((node , db , builder , id , parent_id)) ?)) , 30u16 => Ok (Self :: Method (Method :: try_from ((node , db , builder , id , parent_id)) ?)) , 28u16 => Ok (Self :: Typedef (Typedef :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Comment_Eol_Error_Method_Typedef) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { Array (Array) , Bool (Bool) , Dict (Dict) , Enum (Enum) , Float (Float) , Int (Int) , Maybe (Maybe) , Object (Object) , String (String) , Struct (Struct) , Typeref (Typeref) } impl auto_lsp :: core :: ast :: AstNode for Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 37u16 | 16u16 | 38u16 | 33u16 | 18u16 | 17u16 | 35u16 | 20u16 | 19u16 | 31u16 | 39u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Array (node) => node . lower () , Self :: Bool (node) => node . lower () , Self :: Dict (node) => node . lower () , Self :: Enum (node) => node . lower () , Self :: Float (node) => node . lower () , Self :: Int (node) => node . lower () , Self :: Maybe (node) => node . lower () , Self :: Object (node) => node . lower () , Self :: String (node) => node . lower () , Self :: Struct (node) => node . lower () , Self :: Typeref (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Array (node) => node . get_id () , Self :: Bool (node) => node . get_id () , Self :: Dict (node) => node . get_id () , Self :: Enum (node) => node . get_id () , Self :: Float (node) => node . get_id () , Self :: Int (node) => node . get_id () , Self :: Maybe (node) => node . get_id () , Self :: Object (node) => node . get_id () , Self :: String (node) => node . get_id () , Self :: Struct (node) => node . get_id () , Self :: Typeref (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Array (node) => node . get_parent_id () , Self :: Bool (node) => node . get_parent_id () , Self :: Dict (node) => node . get_parent_id () , Self :: Enum (node) => node . get_parent_id () , Self :: Float (node) => node . get_parent_id () , Self :: Int (node) => node . get_parent_id () , Self :: Maybe (node) => node . get_parent_id () , Self :: Object (node) => node . get_parent_id () , Self :: String (node) => node . get_parent_id () , Self :: Struct (node) => node . get_parent_id () , Self :: Typeref (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Array (node) => node . get_range () , Self :: Bool (node) => node . get_range () , Self :: Dict (node) => node . get_range () , Self :: Enum (node) => node . get_range () , Self :: Float (node) => node . get_range () , Self :: Int (node) => node . get_range () , Self :: Maybe (node) => node . get_range () , Self :: Object (node) => node . get_range () , Self :: String (node) => node . get_range () , Self :: Struct (node) => node . get_range () , Self :: Typeref (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 37u16 => Ok (Self :: Array (Array :: try_from ((node , db , builder , id , parent_id)) ?)) , 16u16 => Ok (Self :: Bool (Bool :: try_from ((node , db , builder , id , parent_id)) ?)) , 38u16 => Ok (Self :: Dict (Dict :: try_from ((node , db , builder , id , parent_id)) ?)) , 33u16 => Ok (Self :: Enum (Enum :: try_from ((node , db , builder , id , parent_id)) ?)) , 18u16 => Ok (Self :: Float (Float :: try_from ((node , db , builder , id , parent_id)) ?)) , 17u16 => Ok (Self :: Int (Int :: try_from ((node , db , builder , id , parent_id)) ?)) , 35u16 => Ok (Self :: Maybe (Maybe :: try_from ((node , db , builder , id , parent_id)) ?)) , 20u16 => Ok (Self :: Object (Object :: try_from ((node , db , builder , id , parent_id)) ?)) , 19u16 => Ok (Self :: String (String :: try_from ((node , db , builder , id , parent_id)) ?)) , 31u16 => Ok (Self :: Struct (Struct :: try_from ((node , db , builder , id , parent_id)) ?)) , 39u16 => Ok (Self :: Typeref (Typeref :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Enum_Struct { Enum (Enum) , Struct (Struct) } impl auto_lsp :: core :: ast :: AstNode for Enum_Struct { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 33u16 | 31u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Enum (node) => node . lower () , Self :: Struct (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Enum (node) => node . get_id () , Self :: Struct (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Enum (node) => node . get_parent_id () , Self :: Struct (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Enum (node) => node . get_range () , Self :: Struct (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Enum_Struct { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 33u16 => Ok (Self :: Enum (Enum :: try_from ((node , db , builder , id , parent_id)) ?)) , 31u16 => Ok (Self :: Struct (Struct :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Enum_Struct) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Comment_Eol { Comment (Comment) , Eol (Eol) } impl auto_lsp :: core :: ast :: AstNode for Comment_Eol { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16 | 3u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Comment (node) => node . lower () , Self :: Eol (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Comment (node) => node . get_id () , Self :: Eol (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Comment (node) => node . get_parent_id () , Self :: Eol (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Comment (node) => node . get_range () , Self :: Eol (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment_Eol { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 2u16 => Ok (Self :: Comment (Comment :: try_from ((node , db , builder , id , parent_id)) ?)) , 3u16 => Ok (Self :: Eol (Eol :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Comment_Eol) , }) } } }
[INFO] [stdout]  1 + # ! [allow (clippy :: all)] # ! [allow (unused)] # ! [allow (dead_code)] # ! [allow (non_camel_case_types)] # ! [allow (non_snake_case)] # [derive (Debug , Clone , PartialEq)] pub struct Array { pub Type : auto_lsp :: core :: ast :: AstNodeId < Type > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Array { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 37u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Array { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut Type = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Type , 10u16 > (& mut Type) }) ; Ok (Self { Type : Type ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Type) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Dict { pub Type : auto_lsp :: core :: ast :: AstNodeId < Type > , pub children : auto_lsp :: core :: ast :: AstNodeId < String > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Dict { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 38u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Dict { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut Type = Ok (None) ; ; let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Type , 10u16 > (& mut Type) ? . on_children_id (& mut children) }) ; Ok (Self { Type : Type ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Type) , } }) ? , children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (String) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Enum { pub member : Vec < auto_lsp :: core :: ast :: AstNodeId < FieldName >> , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Enum { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 33u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Enum { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut member = vec ! [] ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_vec_field_id :: < FieldName , 6u16 > (& mut member) ? . on_vec_children_id (& mut children) }) ; Ok (Self { member , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Error { pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordError > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub value : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Error { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 29u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Error { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut keyword = Ok (None) ; ; let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < KeywordError , 5u16 > (& mut keyword) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_field_id :: < Struct , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Interface { pub declaration : auto_lsp :: core :: ast :: AstNodeId < InterfaceDeclaration > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol_Error_Method_Typedef >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Interface { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 24u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Interface { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut declaration = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < InterfaceDeclaration , 2u16 > (& mut declaration) ? . on_vec_children_id (& mut children) }) ; Ok (Self { declaration : declaration ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (declaration) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct InterfaceDeclaration { pub name : auto_lsp :: core :: ast :: AstNodeId < InterfaceName > , pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordInterface > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for InterfaceDeclaration { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 27u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for InterfaceDeclaration { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut name = Ok (None) ; ; let mut keyword = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < InterfaceName , 7u16 > (& mut name) ? . on_field_id :: < KeywordInterface , 5u16 > (& mut keyword) ? . on_vec_children_id (& mut children) }) ; Ok (Self { name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Maybe { pub questionmark : auto_lsp :: core :: ast :: AstNodeId < Questionmark > , pub just : auto_lsp :: core :: ast :: AstNodeId < Type > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Maybe { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 35u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Maybe { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut questionmark = Ok (None) ; ; let mut just = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Questionmark , 9u16 > (& mut questionmark) ? . on_field_id :: < Type , 4u16 > (& mut just) }) ; Ok (Self { questionmark : questionmark ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (questionmark) , } }) ? , just : just ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (just) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Method { pub input : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub output : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordMethod > , pub arrow : auto_lsp :: core :: ast :: AstNodeId < Arrow > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Method { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 30u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Method { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut input = Ok (None) ; ; let mut output = Ok (None) ; ; let mut keyword = Ok (None) ; ; let mut arrow = Ok (None) ; ; let mut name = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Struct , 3u16 > (& mut input) ? . on_field_id :: < Struct , 8u16 > (& mut output) ? . on_field_id :: < KeywordMethod , 5u16 > (& mut keyword) ? . on_field_id :: < Arrow , 1u16 > (& mut arrow) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_vec_children_id (& mut children) }) ; Ok (Self { input : input ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (input) , } }) ? , output : output ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (output) , } }) ? , keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , arrow : arrow ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (arrow) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Struct { pub member : Vec < auto_lsp :: core :: ast :: AstNodeId < StructField >> , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Struct { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 31u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Struct { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut member = vec ! [] ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_vec_field_id :: < StructField , 6u16 > (& mut member) ? . on_vec_children_id (& mut children) }) ; Ok (Self { member , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct StructField { pub name : auto_lsp :: core :: ast :: AstNodeId < FieldName > , pub value : auto_lsp :: core :: ast :: AstNodeId < Type > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for StructField { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 32u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for StructField { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < FieldName , 7u16 > (& mut name) ? . on_field_id :: < Type , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Type { pub children : auto_lsp :: core :: ast :: AstNode < Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Type { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 34u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Type { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_children_id (& mut children) }) ; Ok (Self { children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Typedef { pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordType > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub value : auto_lsp :: core :: ast :: AstNodeId < Enum_Struct > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Typedef { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 28u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Typedef { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut keyword = Ok (None) ; ; let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < KeywordType , 5u16 > (& mut keyword) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_field_id :: < Enum_Struct , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Typeref { pub children : auto_lsp :: core :: ast :: AstNodeId < Name > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Typeref { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 39u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Typeref { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_children_id (& mut children) }) ; Ok (Self { children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Name) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_LeftParen { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_LeftParen { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 9u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_LeftParen { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_RightParen { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_RightParen { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 11u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_RightParen { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_Comma { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_Comma { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 10u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_Comma { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_Colon { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_Colon { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 12u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_Colon { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_LeftBracket { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_LeftBracket { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 14u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_LeftBracket { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_RightBracket { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_RightBracket { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 15u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_RightBracket { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Arrow { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Arrow { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 8u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Arrow { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Bool { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Bool { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 16u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Bool { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Comment { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Comment { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Eol { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Eol { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 3u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Eol { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct FieldName { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for FieldName { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 22u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for FieldName { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Float { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Float { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 18u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Float { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Int { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Int { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 17u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Int { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct InterfaceName { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for InterfaceName { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 23u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for InterfaceName { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordError { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordError { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 6u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordError { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordInterface { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordInterface { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 4u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordInterface { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordMethod { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordMethod { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 7u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordMethod { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordType { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordType { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 5u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordType { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Name { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Name { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 21u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Name { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Object { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Object { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 20u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Object { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Questionmark { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Questionmark { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 13u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Questionmark { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct String { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for String { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 19u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for String { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub enum Comment_Eol_Error_Method_Typedef { Comment (Comment) , Eol (Eol) , Error (Error) , Method (Method) , Typedef (Typedef) } impl auto_lsp :: core :: ast :: AstNode for Comment_Eol_Error_Method_Typedef { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16 | 3u16 | 29u16 | 30u16 | 28u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Comment (node) => node . lower () , Self :: Eol (node) => node . lower () , Self :: Error (node) => node . lower () , Self :: Method (node) => node . lower () , Self :: Typedef (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Comment (node) => node . get_id () , Self :: Eol (node) => node . get_id () , Self :: Error (node) => node . get_id () , Self :: Method (node) => node . get_id () , Self :: Typedef (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Comment (node) => node . get_parent_id () , Self :: Eol (node) => node . get_parent_id () , Self :: Error (node) => node . get_parent_id () , Self :: Method (node) => node . get_parent_id () , Self :: Typedef (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Comment (node) => node . get_range () , Self :: Eol (node) => node . get_range () , Self :: Error (node) => node . get_range () , Self :: Method (node) => node . get_range () , Self :: Typedef (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment_Eol_Error_Method_Typedef { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 2u16 => Ok (Self :: Comment (Comment :: try_from ((node , db , builder , id , parent_id)) ?)) , 3u16 => Ok (Self :: Eol (Eol :: try_from ((node , db , builder , id , parent_id)) ?)) , 29u16 => Ok (Self :: Error (Error :: try_from ((node , db , builder , id , parent_id)) ?)) , 30u16 => Ok (Self :: Method (Method :: try_from ((node , db , builder , id , parent_id)) ?)) , 28u16 => Ok (Self :: Typedef (Typedef :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Comment_Eol_Error_Method_Typedef) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { Array (Array) , Bool (Bool) , Dict (Dict) , Enum (Enum) , Float (Float) , Int (Int) , Maybe (Maybe) , Object (Object) , String (String) , Struct (Struct) , Typeref (Typeref) } impl auto_lsp :: core :: ast :: AstNode for Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 37u16 | 16u16 | 38u16 | 33u16 | 18u16 | 17u16 | 35u16 | 20u16 | 19u16 | 31u16 | 39u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Array (node) => node . lower () , Self :: Bool (node) => node . lower () , Self :: Dict (node) => node . lower () , Self :: Enum (node) => node . lower () , Self :: Float (node) => node . lower () , Self :: Int (node) => node . lower () , Self :: Maybe (node) => node . lower () , Self :: Object (node) => node . lower () , Self :: String (node) => node . lower () , Self :: Struct (node) => node . lower () , Self :: Typeref (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Array (node) => node . get_id () , Self :: Bool (node) => node . get_id () , Self :: Dict (node) => node . get_id () , Self :: Enum (node) => node . get_id () , Self :: Float (node) => node . get_id () , Self :: Int (node) => node . get_id () , Self :: Maybe (node) => node . get_id () , Self :: Object (node) => node . get_id () , Self :: String (node) => node . get_id () , Self :: Struct (node) => node . get_id () , Self :: Typeref (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Array (node) => node . get_parent_id () , Self :: Bool (node) => node . get_parent_id () , Self :: Dict (node) => node . get_parent_id () , Self :: Enum (node) => node . get_parent_id () , Self :: Float (node) => node . get_parent_id () , Self :: Int (node) => node . get_parent_id () , Self :: Maybe (node) => node . get_parent_id () , Self :: Object (node) => node . get_parent_id () , Self :: String (node) => node . get_parent_id () , Self :: Struct (node) => node . get_parent_id () , Self :: Typeref (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Array (node) => node . get_range () , Self :: Bool (node) => node . get_range () , Self :: Dict (node) => node . get_range () , Self :: Enum (node) => node . get_range () , Self :: Float (node) => node . get_range () , Self :: Int (node) => node . get_range () , Self :: Maybe (node) => node . get_range () , Self :: Object (node) => node . get_range () , Self :: String (node) => node . get_range () , Self :: Struct (node) => node . get_range () , Self :: Typeref (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 37u16 => Ok (Self :: Array (Array :: try_from ((node , db , builder , id , parent_id)) ?)) , 16u16 => Ok (Self :: Bool (Bool :: try_from ((node , db , builder , id , parent_id)) ?)) , 38u16 => Ok (Self :: Dict (Dict :: try_from ((node , db , builder , id , parent_id)) ?)) , 33u16 => Ok (Self :: Enum (Enum :: try_from ((node , db , builder , id , parent_id)) ?)) , 18u16 => Ok (Self :: Float (Float :: try_from ((node , db , builder , id , parent_id)) ?)) , 17u16 => Ok (Self :: Int (Int :: try_from ((node , db , builder , id , parent_id)) ?)) , 35u16 => Ok (Self :: Maybe (Maybe :: try_from ((node , db , builder , id , parent_id)) ?)) , 20u16 => Ok (Self :: Object (Object :: try_from ((node , db , builder , id , parent_id)) ?)) , 19u16 => Ok (Self :: String (String :: try_from ((node , db , builder , id , parent_id)) ?)) , 31u16 => Ok (Self :: Struct (Struct :: try_from ((node , db , builder , id , parent_id)) ?)) , 39u16 => Ok (Self :: Typeref (Typeref :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Enum_Struct { Enum (Enum) , Struct (Struct) } impl auto_lsp :: core :: ast :: AstNode for Enum_Struct { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 33u16 | 31u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Enum (node) => node . lower () , Self :: Struct (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Enum (node) => node . get_id () , Self :: Struct (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Enum (node) => node . get_parent_id () , Self :: Struct (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Enum (node) => node . get_range () , Self :: Struct (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Enum_Struct { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 33u16 => Ok (Self :: Enum (Enum :: try_from ((node , db , builder , id , parent_id)) ?)) , 31u16 => Ok (Self :: Struct (Struct :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Enum_Struct) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Comment_Eol { Comment (Comment) , Eol (Eol) } impl auto_lsp :: core :: ast :: AstNode for Comment_Eol { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16 | 3u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Comment (node) => node . lower () , Self :: Eol (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Comment (node) => node . get_id () , Self :: Eol (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Comment (node) => node . get_parent_id () , Self :: Eol (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Comment (node) => node . get_range () , Self :: Eol (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment_Eol { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 2u16 => Ok (Self :: Comment (Comment :: try_from ((node , db , builder , id , parent_id)) ?)) , 3u16 => Ok (Self :: Eol (Eol :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Comment_Eol) , }) } } }
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `AstNodeId` in module `auto_lsp::core::ast`
[INFO] [stdout]   --> src/ast.rs:1:19370
[INFO] [stdout]    |
[INFO] [stdout]  1 | ...b struct Typedef { pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordType > , pub name : auto_lsp :: core :: ast :: Ast...
[INFO] [stdout]    |                                                                ^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]   ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/auto-lsp-core-0.7.0/src/ast/node.rs:26:1
[INFO] [stdout]    |
[INFO] [stdout] 26 | pub trait AstNode: std::fmt::Debug + Send + Sync + DowncastSync {
[INFO] [stdout]    | --------------------------------------------------------------- similarly named trait `AstNode` defined here
[INFO] [stdout]    |
[INFO] [stdout] help: a trait with a similar name exists
[INFO] [stdout]    |
[INFO] [stdout]  1 - # ! [allow (clippy :: all)] # ! [allow (unused)] # ! [allow (dead_code)] # ! [allow (non_camel_case_types)] # ! [allow (non_snake_case)] # [derive (Debug , Clone , PartialEq)] pub struct Array { pub Type : auto_lsp :: core :: ast :: AstNodeId < Type > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Array { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 37u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Array { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut Type = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Type , 10u16 > (& mut Type) }) ; Ok (Self { Type : Type ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Type) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Dict { pub Type : auto_lsp :: core :: ast :: AstNodeId < Type > , pub children : auto_lsp :: core :: ast :: AstNodeId < String > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Dict { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 38u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Dict { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut Type = Ok (None) ; ; let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Type , 10u16 > (& mut Type) ? . on_children_id (& mut children) }) ; Ok (Self { Type : Type ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Type) , } }) ? , children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (String) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Enum { pub member : Vec < auto_lsp :: core :: ast :: AstNodeId < FieldName >> , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Enum { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 33u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Enum { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut member = vec ! [] ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_vec_field_id :: < FieldName , 6u16 > (& mut member) ? . on_vec_children_id (& mut children) }) ; Ok (Self { member , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Error { pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordError > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub value : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Error { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 29u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Error { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut keyword = Ok (None) ; ; let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < KeywordError , 5u16 > (& mut keyword) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_field_id :: < Struct , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Interface { pub declaration : auto_lsp :: core :: ast :: AstNodeId < InterfaceDeclaration > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol_Error_Method_Typedef >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Interface { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 24u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Interface { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut declaration = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < InterfaceDeclaration , 2u16 > (& mut declaration) ? . on_vec_children_id (& mut children) }) ; Ok (Self { declaration : declaration ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (declaration) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct InterfaceDeclaration { pub name : auto_lsp :: core :: ast :: AstNodeId < InterfaceName > , pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordInterface > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for InterfaceDeclaration { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 27u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for InterfaceDeclaration { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut name = Ok (None) ; ; let mut keyword = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < InterfaceName , 7u16 > (& mut name) ? . on_field_id :: < KeywordInterface , 5u16 > (& mut keyword) ? . on_vec_children_id (& mut children) }) ; Ok (Self { name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Maybe { pub questionmark : auto_lsp :: core :: ast :: AstNodeId < Questionmark > , pub just : auto_lsp :: core :: ast :: AstNodeId < Type > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Maybe { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 35u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Maybe { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut questionmark = Ok (None) ; ; let mut just = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Questionmark , 9u16 > (& mut questionmark) ? . on_field_id :: < Type , 4u16 > (& mut just) }) ; Ok (Self { questionmark : questionmark ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (questionmark) , } }) ? , just : just ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (just) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Method { pub input : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub output : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordMethod > , pub arrow : auto_lsp :: core :: ast :: AstNodeId < Arrow > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Method { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 30u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Method { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut input = Ok (None) ; ; let mut output = Ok (None) ; ; let mut keyword = Ok (None) ; ; let mut arrow = Ok (None) ; ; let mut name = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Struct , 3u16 > (& mut input) ? . on_field_id :: < Struct , 8u16 > (& mut output) ? . on_field_id :: < KeywordMethod , 5u16 > (& mut keyword) ? . on_field_id :: < Arrow , 1u16 > (& mut arrow) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_vec_children_id (& mut children) }) ; Ok (Self { input : input ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (input) , } }) ? , output : output ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (output) , } }) ? , keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , arrow : arrow ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (arrow) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Struct { pub member : Vec < auto_lsp :: core :: ast :: AstNodeId < StructField >> , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Struct { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 31u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Struct { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut member = vec ! [] ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_vec_field_id :: < StructField , 6u16 > (& mut member) ? . on_vec_children_id (& mut children) }) ; Ok (Self { member , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct StructField { pub name : auto_lsp :: core :: ast :: AstNodeId < FieldName > , pub value : auto_lsp :: core :: ast :: AstNodeId < Type > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for StructField { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 32u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for StructField { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < FieldName , 7u16 > (& mut name) ? . on_field_id :: < Type , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Type { pub children : auto_lsp :: core :: ast :: AstNodeId < Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Type { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 34u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Type { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_children_id (& mut children) }) ; Ok (Self { children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Typedef { pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordType > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub value : auto_lsp :: core :: ast :: AstNodeId < Enum_Struct > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Typedef { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 28u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Typedef { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut keyword = Ok (None) ; ; let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < KeywordType , 5u16 > (& mut keyword) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_field_id :: < Enum_Struct , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Typeref { pub children : auto_lsp :: core :: ast :: AstNodeId < Name > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Typeref { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 39u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Typeref { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_children_id (& mut children) }) ; Ok (Self { children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Name) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_LeftParen { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_LeftParen { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 9u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_LeftParen { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_RightParen { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_RightParen { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 11u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_RightParen { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_Comma { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_Comma { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 10u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_Comma { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_Colon { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_Colon { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 12u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_Colon { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_LeftBracket { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_LeftBracket { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 14u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_LeftBracket { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_RightBracket { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_RightBracket { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 15u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_RightBracket { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Arrow { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Arrow { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 8u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Arrow { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Bool { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Bool { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 16u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Bool { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Comment { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Comment { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Eol { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Eol { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 3u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Eol { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct FieldName { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for FieldName { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 22u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for FieldName { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Float { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Float { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 18u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Float { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Int { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Int { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 17u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Int { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct InterfaceName { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for InterfaceName { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 23u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for InterfaceName { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordError { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordError { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 6u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordError { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordInterface { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordInterface { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 4u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordInterface { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordMethod { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordMethod { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 7u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordMethod { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordType { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordType { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 5u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordType { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Name { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Name { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 21u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Name { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Object { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Object { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 20u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Object { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Questionmark { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Questionmark { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 13u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Questionmark { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct String { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for String { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 19u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for String { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub enum Comment_Eol_Error_Method_Typedef { Comment (Comment) , Eol (Eol) , Error (Error) , Method (Method) , Typedef (Typedef) } impl auto_lsp :: core :: ast :: AstNode for Comment_Eol_Error_Method_Typedef { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16 | 3u16 | 29u16 | 30u16 | 28u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Comment (node) => node . lower () , Self :: Eol (node) => node . lower () , Self :: Error (node) => node . lower () , Self :: Method (node) => node . lower () , Self :: Typedef (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Comment (node) => node . get_id () , Self :: Eol (node) => node . get_id () , Self :: Error (node) => node . get_id () , Self :: Method (node) => node . get_id () , Self :: Typedef (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Comment (node) => node . get_parent_id () , Self :: Eol (node) => node . get_parent_id () , Self :: Error (node) => node . get_parent_id () , Self :: Method (node) => node . get_parent_id () , Self :: Typedef (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Comment (node) => node . get_range () , Self :: Eol (node) => node . get_range () , Self :: Error (node) => node . get_range () , Self :: Method (node) => node . get_range () , Self :: Typedef (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment_Eol_Error_Method_Typedef { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 2u16 => Ok (Self :: Comment (Comment :: try_from ((node , db , builder , id , parent_id)) ?)) , 3u16 => Ok (Self :: Eol (Eol :: try_from ((node , db , builder , id , parent_id)) ?)) , 29u16 => Ok (Self :: Error (Error :: try_from ((node , db , builder , id , parent_id)) ?)) , 30u16 => Ok (Self :: Method (Method :: try_from ((node , db , builder , id , parent_id)) ?)) , 28u16 => Ok (Self :: Typedef (Typedef :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Comment_Eol_Error_Method_Typedef) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { Array (Array) , Bool (Bool) , Dict (Dict) , Enum (Enum) , Float (Float) , Int (Int) , Maybe (Maybe) , Object (Object) , String (String) , Struct (Struct) , Typeref (Typeref) } impl auto_lsp :: core :: ast :: AstNode for Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 37u16 | 16u16 | 38u16 | 33u16 | 18u16 | 17u16 | 35u16 | 20u16 | 19u16 | 31u16 | 39u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Array (node) => node . lower () , Self :: Bool (node) => node . lower () , Self :: Dict (node) => node . lower () , Self :: Enum (node) => node . lower () , Self :: Float (node) => node . lower () , Self :: Int (node) => node . lower () , Self :: Maybe (node) => node . lower () , Self :: Object (node) => node . lower () , Self :: String (node) => node . lower () , Self :: Struct (node) => node . lower () , Self :: Typeref (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Array (node) => node . get_id () , Self :: Bool (node) => node . get_id () , Self :: Dict (node) => node . get_id () , Self :: Enum (node) => node . get_id () , Self :: Float (node) => node . get_id () , Self :: Int (node) => node . get_id () , Self :: Maybe (node) => node . get_id () , Self :: Object (node) => node . get_id () , Self :: String (node) => node . get_id () , Self :: Struct (node) => node . get_id () , Self :: Typeref (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Array (node) => node . get_parent_id () , Self :: Bool (node) => node . get_parent_id () , Self :: Dict (node) => node . get_parent_id () , Self :: Enum (node) => node . get_parent_id () , Self :: Float (node) => node . get_parent_id () , Self :: Int (node) => node . get_parent_id () , Self :: Maybe (node) => node . get_parent_id () , Self :: Object (node) => node . get_parent_id () , Self :: String (node) => node . get_parent_id () , Self :: Struct (node) => node . get_parent_id () , Self :: Typeref (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Array (node) => node . get_range () , Self :: Bool (node) => node . get_range () , Self :: Dict (node) => node . get_range () , Self :: Enum (node) => node . get_range () , Self :: Float (node) => node . get_range () , Self :: Int (node) => node . get_range () , Self :: Maybe (node) => node . get_range () , Self :: Object (node) => node . get_range () , Self :: String (node) => node . get_range () , Self :: Struct (node) => node . get_range () , Self :: Typeref (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 37u16 => Ok (Self :: Array (Array :: try_from ((node , db , builder , id , parent_id)) ?)) , 16u16 => Ok (Self :: Bool (Bool :: try_from ((node , db , builder , id , parent_id)) ?)) , 38u16 => Ok (Self :: Dict (Dict :: try_from ((node , db , builder , id , parent_id)) ?)) , 33u16 => Ok (Self :: Enum (Enum :: try_from ((node , db , builder , id , parent_id)) ?)) , 18u16 => Ok (Self :: Float (Float :: try_from ((node , db , builder , id , parent_id)) ?)) , 17u16 => Ok (Self :: Int (Int :: try_from ((node , db , builder , id , parent_id)) ?)) , 35u16 => Ok (Self :: Maybe (Maybe :: try_from ((node , db , builder , id , parent_id)) ?)) , 20u16 => Ok (Self :: Object (Object :: try_from ((node , db , builder , id , parent_id)) ?)) , 19u16 => Ok (Self :: String (String :: try_from ((node , db , builder , id , parent_id)) ?)) , 31u16 => Ok (Self :: Struct (Struct :: try_from ((node , db , builder , id , parent_id)) ?)) , 39u16 => Ok (Self :: Typeref (Typeref :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Enum_Struct { Enum (Enum) , Struct (Struct) } impl auto_lsp :: core :: ast :: AstNode for Enum_Struct { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 33u16 | 31u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Enum (node) => node . lower () , Self :: Struct (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Enum (node) => node . get_id () , Self :: Struct (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Enum (node) => node . get_parent_id () , Self :: Struct (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Enum (node) => node . get_range () , Self :: Struct (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Enum_Struct { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 33u16 => Ok (Self :: Enum (Enum :: try_from ((node , db , builder , id , parent_id)) ?)) , 31u16 => Ok (Self :: Struct (Struct :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Enum_Struct) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Comment_Eol { Comment (Comment) , Eol (Eol) } impl auto_lsp :: core :: ast :: AstNode for Comment_Eol { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16 | 3u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Comment (node) => node . lower () , Self :: Eol (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Comment (node) => node . get_id () , Self :: Eol (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Comment (node) => node . get_parent_id () , Self :: Eol (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Comment (node) => node . get_range () , Self :: Eol (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment_Eol { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 2u16 => Ok (Self :: Comment (Comment :: try_from ((node , db , builder , id , parent_id)) ?)) , 3u16 => Ok (Self :: Eol (Eol :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Comment_Eol) , }) } } }
[INFO] [stdout]  1 + # ! [allow (clippy :: all)] # ! [allow (unused)] # ! [allow (dead_code)] # ! [allow (non_camel_case_types)] # ! [allow (non_snake_case)] # [derive (Debug , Clone , PartialEq)] pub struct Array { pub Type : auto_lsp :: core :: ast :: AstNodeId < Type > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Array { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 37u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Array { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut Type = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Type , 10u16 > (& mut Type) }) ; Ok (Self { Type : Type ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Type) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Dict { pub Type : auto_lsp :: core :: ast :: AstNodeId < Type > , pub children : auto_lsp :: core :: ast :: AstNodeId < String > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Dict { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 38u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Dict { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut Type = Ok (None) ; ; let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Type , 10u16 > (& mut Type) ? . on_children_id (& mut children) }) ; Ok (Self { Type : Type ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Type) , } }) ? , children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (String) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Enum { pub member : Vec < auto_lsp :: core :: ast :: AstNodeId < FieldName >> , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Enum { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 33u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Enum { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut member = vec ! [] ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_vec_field_id :: < FieldName , 6u16 > (& mut member) ? . on_vec_children_id (& mut children) }) ; Ok (Self { member , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Error { pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordError > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub value : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Error { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 29u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Error { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut keyword = Ok (None) ; ; let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < KeywordError , 5u16 > (& mut keyword) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_field_id :: < Struct , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Interface { pub declaration : auto_lsp :: core :: ast :: AstNodeId < InterfaceDeclaration > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol_Error_Method_Typedef >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Interface { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 24u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Interface { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut declaration = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < InterfaceDeclaration , 2u16 > (& mut declaration) ? . on_vec_children_id (& mut children) }) ; Ok (Self { declaration : declaration ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (declaration) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct InterfaceDeclaration { pub name : auto_lsp :: core :: ast :: AstNodeId < InterfaceName > , pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordInterface > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for InterfaceDeclaration { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 27u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for InterfaceDeclaration { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut name = Ok (None) ; ; let mut keyword = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < InterfaceName , 7u16 > (& mut name) ? . on_field_id :: < KeywordInterface , 5u16 > (& mut keyword) ? . on_vec_children_id (& mut children) }) ; Ok (Self { name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Maybe { pub questionmark : auto_lsp :: core :: ast :: AstNodeId < Questionmark > , pub just : auto_lsp :: core :: ast :: AstNodeId < Type > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Maybe { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 35u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Maybe { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut questionmark = Ok (None) ; ; let mut just = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Questionmark , 9u16 > (& mut questionmark) ? . on_field_id :: < Type , 4u16 > (& mut just) }) ; Ok (Self { questionmark : questionmark ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (questionmark) , } }) ? , just : just ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (just) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Method { pub input : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub output : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordMethod > , pub arrow : auto_lsp :: core :: ast :: AstNodeId < Arrow > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Method { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 30u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Method { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut input = Ok (None) ; ; let mut output = Ok (None) ; ; let mut keyword = Ok (None) ; ; let mut arrow = Ok (None) ; ; let mut name = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Struct , 3u16 > (& mut input) ? . on_field_id :: < Struct , 8u16 > (& mut output) ? . on_field_id :: < KeywordMethod , 5u16 > (& mut keyword) ? . on_field_id :: < Arrow , 1u16 > (& mut arrow) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_vec_children_id (& mut children) }) ; Ok (Self { input : input ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (input) , } }) ? , output : output ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (output) , } }) ? , keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , arrow : arrow ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (arrow) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Struct { pub member : Vec < auto_lsp :: core :: ast :: AstNodeId < StructField >> , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Struct { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 31u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Struct { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut member = vec ! [] ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_vec_field_id :: < StructField , 6u16 > (& mut member) ? . on_vec_children_id (& mut children) }) ; Ok (Self { member , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct StructField { pub name : auto_lsp :: core :: ast :: AstNodeId < FieldName > , pub value : auto_lsp :: core :: ast :: AstNodeId < Type > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for StructField { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 32u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for StructField { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < FieldName , 7u16 > (& mut name) ? . on_field_id :: < Type , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Type { pub children : auto_lsp :: core :: ast :: AstNodeId < Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Type { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 34u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Type { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_children_id (& mut children) }) ; Ok (Self { children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Typedef { pub keyword : auto_lsp :: core :: ast :: AstNode < KeywordType > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub value : auto_lsp :: core :: ast :: AstNodeId < Enum_Struct > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Typedef { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 28u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Typedef { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut keyword = Ok (None) ; ; let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < KeywordType , 5u16 > (& mut keyword) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_field_id :: < Enum_Struct , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Typeref { pub children : auto_lsp :: core :: ast :: AstNodeId < Name > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Typeref { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 39u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Typeref { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_children_id (& mut children) }) ; Ok (Self { children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Name) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_LeftParen { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_LeftParen { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 9u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_LeftParen { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_RightParen { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_RightParen { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 11u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_RightParen { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_Comma { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_Comma { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 10u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_Comma { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_Colon { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_Colon { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 12u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_Colon { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_LeftBracket { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_LeftBracket { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 14u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_LeftBracket { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_RightBracket { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_RightBracket { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 15u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_RightBracket { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Arrow { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Arrow { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 8u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Arrow { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Bool { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Bool { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 16u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Bool { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Comment { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Comment { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Eol { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Eol { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 3u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Eol { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct FieldName { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for FieldName { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 22u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for FieldName { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Float { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Float { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 18u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Float { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Int { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Int { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 17u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Int { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct InterfaceName { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for InterfaceName { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 23u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for InterfaceName { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordError { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordError { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 6u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordError { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordInterface { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordInterface { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 4u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordInterface { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordMethod { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordMethod { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 7u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordMethod { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordType { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordType { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 5u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordType { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Name { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Name { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 21u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Name { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Object { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Object { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 20u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Object { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Questionmark { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Questionmark { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 13u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Questionmark { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct String { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for String { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 19u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for String { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub enum Comment_Eol_Error_Method_Typedef { Comment (Comment) , Eol (Eol) , Error (Error) , Method (Method) , Typedef (Typedef) } impl auto_lsp :: core :: ast :: AstNode for Comment_Eol_Error_Method_Typedef { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16 | 3u16 | 29u16 | 30u16 | 28u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Comment (node) => node . lower () , Self :: Eol (node) => node . lower () , Self :: Error (node) => node . lower () , Self :: Method (node) => node . lower () , Self :: Typedef (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Comment (node) => node . get_id () , Self :: Eol (node) => node . get_id () , Self :: Error (node) => node . get_id () , Self :: Method (node) => node . get_id () , Self :: Typedef (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Comment (node) => node . get_parent_id () , Self :: Eol (node) => node . get_parent_id () , Self :: Error (node) => node . get_parent_id () , Self :: Method (node) => node . get_parent_id () , Self :: Typedef (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Comment (node) => node . get_range () , Self :: Eol (node) => node . get_range () , Self :: Error (node) => node . get_range () , Self :: Method (node) => node . get_range () , Self :: Typedef (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment_Eol_Error_Method_Typedef { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 2u16 => Ok (Self :: Comment (Comment :: try_from ((node , db , builder , id , parent_id)) ?)) , 3u16 => Ok (Self :: Eol (Eol :: try_from ((node , db , builder , id , parent_id)) ?)) , 29u16 => Ok (Self :: Error (Error :: try_from ((node , db , builder , id , parent_id)) ?)) , 30u16 => Ok (Self :: Method (Method :: try_from ((node , db , builder , id , parent_id)) ?)) , 28u16 => Ok (Self :: Typedef (Typedef :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Comment_Eol_Error_Method_Typedef) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { Array (Array) , Bool (Bool) , Dict (Dict) , Enum (Enum) , Float (Float) , Int (Int) , Maybe (Maybe) , Object (Object) , String (String) , Struct (Struct) , Typeref (Typeref) } impl auto_lsp :: core :: ast :: AstNode for Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 37u16 | 16u16 | 38u16 | 33u16 | 18u16 | 17u16 | 35u16 | 20u16 | 19u16 | 31u16 | 39u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Array (node) => node . lower () , Self :: Bool (node) => node . lower () , Self :: Dict (node) => node . lower () , Self :: Enum (node) => node . lower () , Self :: Float (node) => node . lower () , Self :: Int (node) => node . lower () , Self :: Maybe (node) => node . lower () , Self :: Object (node) => node . lower () , Self :: String (node) => node . lower () , Self :: Struct (node) => node . lower () , Self :: Typeref (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Array (node) => node . get_id () , Self :: Bool (node) => node . get_id () , Self :: Dict (node) => node . get_id () , Self :: Enum (node) => node . get_id () , Self :: Float (node) => node . get_id () , Self :: Int (node) => node . get_id () , Self :: Maybe (node) => node . get_id () , Self :: Object (node) => node . get_id () , Self :: String (node) => node . get_id () , Self :: Struct (node) => node . get_id () , Self :: Typeref (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Array (node) => node . get_parent_id () , Self :: Bool (node) => node . get_parent_id () , Self :: Dict (node) => node . get_parent_id () , Self :: Enum (node) => node . get_parent_id () , Self :: Float (node) => node . get_parent_id () , Self :: Int (node) => node . get_parent_id () , Self :: Maybe (node) => node . get_parent_id () , Self :: Object (node) => node . get_parent_id () , Self :: String (node) => node . get_parent_id () , Self :: Struct (node) => node . get_parent_id () , Self :: Typeref (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Array (node) => node . get_range () , Self :: Bool (node) => node . get_range () , Self :: Dict (node) => node . get_range () , Self :: Enum (node) => node . get_range () , Self :: Float (node) => node . get_range () , Self :: Int (node) => node . get_range () , Self :: Maybe (node) => node . get_range () , Self :: Object (node) => node . get_range () , Self :: String (node) => node . get_range () , Self :: Struct (node) => node . get_range () , Self :: Typeref (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 37u16 => Ok (Self :: Array (Array :: try_from ((node , db , builder , id , parent_id)) ?)) , 16u16 => Ok (Self :: Bool (Bool :: try_from ((node , db , builder , id , parent_id)) ?)) , 38u16 => Ok (Self :: Dict (Dict :: try_from ((node , db , builder , id , parent_id)) ?)) , 33u16 => Ok (Self :: Enum (Enum :: try_from ((node , db , builder , id , parent_id)) ?)) , 18u16 => Ok (Self :: Float (Float :: try_from ((node , db , builder , id , parent_id)) ?)) , 17u16 => Ok (Self :: Int (Int :: try_from ((node , db , builder , id , parent_id)) ?)) , 35u16 => Ok (Self :: Maybe (Maybe :: try_from ((node , db , builder , id , parent_id)) ?)) , 20u16 => Ok (Self :: Object (Object :: try_from ((node , db , builder , id , parent_id)) ?)) , 19u16 => Ok (Self :: String (String :: try_from ((node , db , builder , id , parent_id)) ?)) , 31u16 => Ok (Self :: Struct (Struct :: try_from ((node , db , builder , id , parent_id)) ?)) , 39u16 => Ok (Self :: Typeref (Typeref :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Enum_Struct { Enum (Enum) , Struct (Struct) } impl auto_lsp :: core :: ast :: AstNode for Enum_Struct { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 33u16 | 31u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Enum (node) => node . lower () , Self :: Struct (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Enum (node) => node . get_id () , Self :: Struct (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Enum (node) => node . get_parent_id () , Self :: Struct (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Enum (node) => node . get_range () , Self :: Struct (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Enum_Struct { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 33u16 => Ok (Self :: Enum (Enum :: try_from ((node , db , builder , id , parent_id)) ?)) , 31u16 => Ok (Self :: Struct (Struct :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Enum_Struct) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Comment_Eol { Comment (Comment) , Eol (Eol) } impl auto_lsp :: core :: ast :: AstNode for Comment_Eol { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16 | 3u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Comment (node) => node . lower () , Self :: Eol (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Comment (node) => node . get_id () , Self :: Eol (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Comment (node) => node . get_parent_id () , Self :: Eol (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Comment (node) => node . get_range () , Self :: Eol (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment_Eol { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 2u16 => Ok (Self :: Comment (Comment :: try_from ((node , db , builder , id , parent_id)) ?)) , 3u16 => Ok (Self :: Eol (Eol :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Comment_Eol) , }) } } }
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `AstNodeId` in module `auto_lsp::core::ast`
[INFO] [stdout]   --> src/ast.rs:1:19436
[INFO] [stdout]    |
[INFO] [stdout]  1 | ...eId < KeywordType > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub value : auto_lsp :: core :: ast :: AstNodeId...
[INFO] [stdout]    |                                                                ^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]   ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/auto-lsp-core-0.7.0/src/ast/node.rs:26:1
[INFO] [stdout]    |
[INFO] [stdout] 26 | pub trait AstNode: std::fmt::Debug + Send + Sync + DowncastSync {
[INFO] [stdout]    | --------------------------------------------------------------- similarly named trait `AstNode` defined here
[INFO] [stdout]    |
[INFO] [stdout] help: a trait with a similar name exists
[INFO] [stdout]    |
[INFO] [stdout]  1 - # ! [allow (clippy :: all)] # ! [allow (unused)] # ! [allow (dead_code)] # ! [allow (non_camel_case_types)] # ! [allow (non_snake_case)] # [derive (Debug , Clone , PartialEq)] pub struct Array { pub Type : auto_lsp :: core :: ast :: AstNodeId < Type > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Array { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 37u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Array { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut Type = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Type , 10u16 > (& mut Type) }) ; Ok (Self { Type : Type ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Type) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Dict { pub Type : auto_lsp :: core :: ast :: AstNodeId < Type > , pub children : auto_lsp :: core :: ast :: AstNodeId < String > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Dict { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 38u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Dict { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut Type = Ok (None) ; ; let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Type , 10u16 > (& mut Type) ? . on_children_id (& mut children) }) ; Ok (Self { Type : Type ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Type) , } }) ? , children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (String) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Enum { pub member : Vec < auto_lsp :: core :: ast :: AstNodeId < FieldName >> , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Enum { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 33u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Enum { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut member = vec ! [] ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_vec_field_id :: < FieldName , 6u16 > (& mut member) ? . on_vec_children_id (& mut children) }) ; Ok (Self { member , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Error { pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordError > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub value : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Error { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 29u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Error { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut keyword = Ok (None) ; ; let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < KeywordError , 5u16 > (& mut keyword) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_field_id :: < Struct , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Interface { pub declaration : auto_lsp :: core :: ast :: AstNodeId < InterfaceDeclaration > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol_Error_Method_Typedef >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Interface { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 24u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Interface { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut declaration = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < InterfaceDeclaration , 2u16 > (& mut declaration) ? . on_vec_children_id (& mut children) }) ; Ok (Self { declaration : declaration ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (declaration) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct InterfaceDeclaration { pub name : auto_lsp :: core :: ast :: AstNodeId < InterfaceName > , pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordInterface > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for InterfaceDeclaration { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 27u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for InterfaceDeclaration { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut name = Ok (None) ; ; let mut keyword = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < InterfaceName , 7u16 > (& mut name) ? . on_field_id :: < KeywordInterface , 5u16 > (& mut keyword) ? . on_vec_children_id (& mut children) }) ; Ok (Self { name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Maybe { pub questionmark : auto_lsp :: core :: ast :: AstNodeId < Questionmark > , pub just : auto_lsp :: core :: ast :: AstNodeId < Type > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Maybe { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 35u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Maybe { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut questionmark = Ok (None) ; ; let mut just = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Questionmark , 9u16 > (& mut questionmark) ? . on_field_id :: < Type , 4u16 > (& mut just) }) ; Ok (Self { questionmark : questionmark ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (questionmark) , } }) ? , just : just ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (just) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Method { pub input : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub output : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordMethod > , pub arrow : auto_lsp :: core :: ast :: AstNodeId < Arrow > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Method { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 30u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Method { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut input = Ok (None) ; ; let mut output = Ok (None) ; ; let mut keyword = Ok (None) ; ; let mut arrow = Ok (None) ; ; let mut name = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Struct , 3u16 > (& mut input) ? . on_field_id :: < Struct , 8u16 > (& mut output) ? . on_field_id :: < KeywordMethod , 5u16 > (& mut keyword) ? . on_field_id :: < Arrow , 1u16 > (& mut arrow) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_vec_children_id (& mut children) }) ; Ok (Self { input : input ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (input) , } }) ? , output : output ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (output) , } }) ? , keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , arrow : arrow ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (arrow) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Struct { pub member : Vec < auto_lsp :: core :: ast :: AstNodeId < StructField >> , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Struct { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 31u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Struct { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut member = vec ! [] ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_vec_field_id :: < StructField , 6u16 > (& mut member) ? . on_vec_children_id (& mut children) }) ; Ok (Self { member , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct StructField { pub name : auto_lsp :: core :: ast :: AstNodeId < FieldName > , pub value : auto_lsp :: core :: ast :: AstNodeId < Type > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for StructField { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 32u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for StructField { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < FieldName , 7u16 > (& mut name) ? . on_field_id :: < Type , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Type { pub children : auto_lsp :: core :: ast :: AstNodeId < Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Type { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 34u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Type { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_children_id (& mut children) }) ; Ok (Self { children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Typedef { pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordType > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub value : auto_lsp :: core :: ast :: AstNodeId < Enum_Struct > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Typedef { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 28u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Typedef { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut keyword = Ok (None) ; ; let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < KeywordType , 5u16 > (& mut keyword) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_field_id :: < Enum_Struct , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Typeref { pub children : auto_lsp :: core :: ast :: AstNodeId < Name > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Typeref { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 39u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Typeref { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_children_id (& mut children) }) ; Ok (Self { children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Name) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_LeftParen { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_LeftParen { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 9u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_LeftParen { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_RightParen { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_RightParen { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 11u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_RightParen { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_Comma { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_Comma { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 10u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_Comma { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_Colon { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_Colon { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 12u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_Colon { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_LeftBracket { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_LeftBracket { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 14u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_LeftBracket { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_RightBracket { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_RightBracket { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 15u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_RightBracket { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Arrow { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Arrow { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 8u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Arrow { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Bool { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Bool { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 16u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Bool { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Comment { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Comment { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Eol { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Eol { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 3u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Eol { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct FieldName { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for FieldName { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 22u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for FieldName { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Float { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Float { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 18u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Float { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Int { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Int { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 17u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Int { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct InterfaceName { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for InterfaceName { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 23u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for InterfaceName { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordError { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordError { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 6u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordError { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordInterface { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordInterface { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 4u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordInterface { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordMethod { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordMethod { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 7u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordMethod { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordType { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordType { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 5u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordType { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Name { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Name { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 21u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Name { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Object { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Object { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 20u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Object { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Questionmark { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Questionmark { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 13u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Questionmark { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct String { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for String { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 19u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for String { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub enum Comment_Eol_Error_Method_Typedef { Comment (Comment) , Eol (Eol) , Error (Error) , Method (Method) , Typedef (Typedef) } impl auto_lsp :: core :: ast :: AstNode for Comment_Eol_Error_Method_Typedef { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16 | 3u16 | 29u16 | 30u16 | 28u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Comment (node) => node . lower () , Self :: Eol (node) => node . lower () , Self :: Error (node) => node . lower () , Self :: Method (node) => node . lower () , Self :: Typedef (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Comment (node) => node . get_id () , Self :: Eol (node) => node . get_id () , Self :: Error (node) => node . get_id () , Self :: Method (node) => node . get_id () , Self :: Typedef (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Comment (node) => node . get_parent_id () , Self :: Eol (node) => node . get_parent_id () , Self :: Error (node) => node . get_parent_id () , Self :: Method (node) => node . get_parent_id () , Self :: Typedef (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Comment (node) => node . get_range () , Self :: Eol (node) => node . get_range () , Self :: Error (node) => node . get_range () , Self :: Method (node) => node . get_range () , Self :: Typedef (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment_Eol_Error_Method_Typedef { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 2u16 => Ok (Self :: Comment (Comment :: try_from ((node , db , builder , id , parent_id)) ?)) , 3u16 => Ok (Self :: Eol (Eol :: try_from ((node , db , builder , id , parent_id)) ?)) , 29u16 => Ok (Self :: Error (Error :: try_from ((node , db , builder , id , parent_id)) ?)) , 30u16 => Ok (Self :: Method (Method :: try_from ((node , db , builder , id , parent_id)) ?)) , 28u16 => Ok (Self :: Typedef (Typedef :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Comment_Eol_Error_Method_Typedef) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { Array (Array) , Bool (Bool) , Dict (Dict) , Enum (Enum) , Float (Float) , Int (Int) , Maybe (Maybe) , Object (Object) , String (String) , Struct (Struct) , Typeref (Typeref) } impl auto_lsp :: core :: ast :: AstNode for Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 37u16 | 16u16 | 38u16 | 33u16 | 18u16 | 17u16 | 35u16 | 20u16 | 19u16 | 31u16 | 39u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Array (node) => node . lower () , Self :: Bool (node) => node . lower () , Self :: Dict (node) => node . lower () , Self :: Enum (node) => node . lower () , Self :: Float (node) => node . lower () , Self :: Int (node) => node . lower () , Self :: Maybe (node) => node . lower () , Self :: Object (node) => node . lower () , Self :: String (node) => node . lower () , Self :: Struct (node) => node . lower () , Self :: Typeref (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Array (node) => node . get_id () , Self :: Bool (node) => node . get_id () , Self :: Dict (node) => node . get_id () , Self :: Enum (node) => node . get_id () , Self :: Float (node) => node . get_id () , Self :: Int (node) => node . get_id () , Self :: Maybe (node) => node . get_id () , Self :: Object (node) => node . get_id () , Self :: String (node) => node . get_id () , Self :: Struct (node) => node . get_id () , Self :: Typeref (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Array (node) => node . get_parent_id () , Self :: Bool (node) => node . get_parent_id () , Self :: Dict (node) => node . get_parent_id () , Self :: Enum (node) => node . get_parent_id () , Self :: Float (node) => node . get_parent_id () , Self :: Int (node) => node . get_parent_id () , Self :: Maybe (node) => node . get_parent_id () , Self :: Object (node) => node . get_parent_id () , Self :: String (node) => node . get_parent_id () , Self :: Struct (node) => node . get_parent_id () , Self :: Typeref (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Array (node) => node . get_range () , Self :: Bool (node) => node . get_range () , Self :: Dict (node) => node . get_range () , Self :: Enum (node) => node . get_range () , Self :: Float (node) => node . get_range () , Self :: Int (node) => node . get_range () , Self :: Maybe (node) => node . get_range () , Self :: Object (node) => node . get_range () , Self :: String (node) => node . get_range () , Self :: Struct (node) => node . get_range () , Self :: Typeref (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 37u16 => Ok (Self :: Array (Array :: try_from ((node , db , builder , id , parent_id)) ?)) , 16u16 => Ok (Self :: Bool (Bool :: try_from ((node , db , builder , id , parent_id)) ?)) , 38u16 => Ok (Self :: Dict (Dict :: try_from ((node , db , builder , id , parent_id)) ?)) , 33u16 => Ok (Self :: Enum (Enum :: try_from ((node , db , builder , id , parent_id)) ?)) , 18u16 => Ok (Self :: Float (Float :: try_from ((node , db , builder , id , parent_id)) ?)) , 17u16 => Ok (Self :: Int (Int :: try_from ((node , db , builder , id , parent_id)) ?)) , 35u16 => Ok (Self :: Maybe (Maybe :: try_from ((node , db , builder , id , parent_id)) ?)) , 20u16 => Ok (Self :: Object (Object :: try_from ((node , db , builder , id , parent_id)) ?)) , 19u16 => Ok (Self :: String (String :: try_from ((node , db , builder , id , parent_id)) ?)) , 31u16 => Ok (Self :: Struct (Struct :: try_from ((node , db , builder , id , parent_id)) ?)) , 39u16 => Ok (Self :: Typeref (Typeref :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Enum_Struct { Enum (Enum) , Struct (Struct) } impl auto_lsp :: core :: ast :: AstNode for Enum_Struct { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 33u16 | 31u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Enum (node) => node . lower () , Self :: Struct (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Enum (node) => node . get_id () , Self :: Struct (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Enum (node) => node . get_parent_id () , Self :: Struct (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Enum (node) => node . get_range () , Self :: Struct (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Enum_Struct { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 33u16 => Ok (Self :: Enum (Enum :: try_from ((node , db , builder , id , parent_id)) ?)) , 31u16 => Ok (Self :: Struct (Struct :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Enum_Struct) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Comment_Eol { Comment (Comment) , Eol (Eol) } impl auto_lsp :: core :: ast :: AstNode for Comment_Eol { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16 | 3u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Comment (node) => node . lower () , Self :: Eol (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Comment (node) => node . get_id () , Self :: Eol (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Comment (node) => node . get_parent_id () , Self :: Eol (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Comment (node) => node . get_range () , Self :: Eol (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment_Eol { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 2u16 => Ok (Self :: Comment (Comment :: try_from ((node , db , builder , id , parent_id)) ?)) , 3u16 => Ok (Self :: Eol (Eol :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Comment_Eol) , }) } } }
[INFO] [stdout]  1 + # ! [allow (clippy :: all)] # ! [allow (unused)] # ! [allow (dead_code)] # ! [allow (non_camel_case_types)] # ! [allow (non_snake_case)] # [derive (Debug , Clone , PartialEq)] pub struct Array { pub Type : auto_lsp :: core :: ast :: AstNodeId < Type > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Array { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 37u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Array { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut Type = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Type , 10u16 > (& mut Type) }) ; Ok (Self { Type : Type ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Type) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Dict { pub Type : auto_lsp :: core :: ast :: AstNodeId < Type > , pub children : auto_lsp :: core :: ast :: AstNodeId < String > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Dict { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 38u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Dict { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut Type = Ok (None) ; ; let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Type , 10u16 > (& mut Type) ? . on_children_id (& mut children) }) ; Ok (Self { Type : Type ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Type) , } }) ? , children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (String) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Enum { pub member : Vec < auto_lsp :: core :: ast :: AstNodeId < FieldName >> , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Enum { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 33u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Enum { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut member = vec ! [] ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_vec_field_id :: < FieldName , 6u16 > (& mut member) ? . on_vec_children_id (& mut children) }) ; Ok (Self { member , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Error { pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordError > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub value : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Error { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 29u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Error { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut keyword = Ok (None) ; ; let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < KeywordError , 5u16 > (& mut keyword) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_field_id :: < Struct , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Interface { pub declaration : auto_lsp :: core :: ast :: AstNodeId < InterfaceDeclaration > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol_Error_Method_Typedef >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Interface { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 24u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Interface { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut declaration = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < InterfaceDeclaration , 2u16 > (& mut declaration) ? . on_vec_children_id (& mut children) }) ; Ok (Self { declaration : declaration ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (declaration) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct InterfaceDeclaration { pub name : auto_lsp :: core :: ast :: AstNodeId < InterfaceName > , pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordInterface > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for InterfaceDeclaration { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 27u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for InterfaceDeclaration { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut name = Ok (None) ; ; let mut keyword = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < InterfaceName , 7u16 > (& mut name) ? . on_field_id :: < KeywordInterface , 5u16 > (& mut keyword) ? . on_vec_children_id (& mut children) }) ; Ok (Self { name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Maybe { pub questionmark : auto_lsp :: core :: ast :: AstNodeId < Questionmark > , pub just : auto_lsp :: core :: ast :: AstNodeId < Type > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Maybe { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 35u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Maybe { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut questionmark = Ok (None) ; ; let mut just = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Questionmark , 9u16 > (& mut questionmark) ? . on_field_id :: < Type , 4u16 > (& mut just) }) ; Ok (Self { questionmark : questionmark ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (questionmark) , } }) ? , just : just ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (just) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Method { pub input : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub output : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordMethod > , pub arrow : auto_lsp :: core :: ast :: AstNodeId < Arrow > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Method { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 30u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Method { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut input = Ok (None) ; ; let mut output = Ok (None) ; ; let mut keyword = Ok (None) ; ; let mut arrow = Ok (None) ; ; let mut name = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Struct , 3u16 > (& mut input) ? . on_field_id :: < Struct , 8u16 > (& mut output) ? . on_field_id :: < KeywordMethod , 5u16 > (& mut keyword) ? . on_field_id :: < Arrow , 1u16 > (& mut arrow) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_vec_children_id (& mut children) }) ; Ok (Self { input : input ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (input) , } }) ? , output : output ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (output) , } }) ? , keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , arrow : arrow ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (arrow) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Struct { pub member : Vec < auto_lsp :: core :: ast :: AstNodeId < StructField >> , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Struct { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 31u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Struct { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut member = vec ! [] ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_vec_field_id :: < StructField , 6u16 > (& mut member) ? . on_vec_children_id (& mut children) }) ; Ok (Self { member , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct StructField { pub name : auto_lsp :: core :: ast :: AstNodeId < FieldName > , pub value : auto_lsp :: core :: ast :: AstNodeId < Type > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for StructField { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 32u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for StructField { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < FieldName , 7u16 > (& mut name) ? . on_field_id :: < Type , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Type { pub children : auto_lsp :: core :: ast :: AstNodeId < Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Type { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 34u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Type { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_children_id (& mut children) }) ; Ok (Self { children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Typedef { pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordType > , pub name : auto_lsp :: core :: ast :: AstNode < Name > , pub value : auto_lsp :: core :: ast :: AstNodeId < Enum_Struct > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Typedef { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 28u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Typedef { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut keyword = Ok (None) ; ; let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < KeywordType , 5u16 > (& mut keyword) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_field_id :: < Enum_Struct , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Typeref { pub children : auto_lsp :: core :: ast :: AstNodeId < Name > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Typeref { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 39u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Typeref { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_children_id (& mut children) }) ; Ok (Self { children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Name) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_LeftParen { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_LeftParen { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 9u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_LeftParen { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_RightParen { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_RightParen { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 11u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_RightParen { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_Comma { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_Comma { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 10u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_Comma { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_Colon { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_Colon { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 12u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_Colon { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_LeftBracket { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_LeftBracket { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 14u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_LeftBracket { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_RightBracket { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_RightBracket { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 15u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_RightBracket { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Arrow { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Arrow { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 8u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Arrow { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Bool { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Bool { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 16u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Bool { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Comment { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Comment { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Eol { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Eol { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 3u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Eol { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct FieldName { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for FieldName { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 22u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for FieldName { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Float { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Float { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 18u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Float { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Int { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Int { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 17u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Int { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct InterfaceName { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for InterfaceName { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 23u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for InterfaceName { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordError { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordError { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 6u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordError { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordInterface { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordInterface { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 4u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordInterface { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordMethod { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordMethod { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 7u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordMethod { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordType { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordType { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 5u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordType { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Name { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Name { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 21u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Name { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Object { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Object { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 20u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Object { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Questionmark { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Questionmark { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 13u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Questionmark { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct String { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for String { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 19u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for String { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub enum Comment_Eol_Error_Method_Typedef { Comment (Comment) , Eol (Eol) , Error (Error) , Method (Method) , Typedef (Typedef) } impl auto_lsp :: core :: ast :: AstNode for Comment_Eol_Error_Method_Typedef { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16 | 3u16 | 29u16 | 30u16 | 28u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Comment (node) => node . lower () , Self :: Eol (node) => node . lower () , Self :: Error (node) => node . lower () , Self :: Method (node) => node . lower () , Self :: Typedef (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Comment (node) => node . get_id () , Self :: Eol (node) => node . get_id () , Self :: Error (node) => node . get_id () , Self :: Method (node) => node . get_id () , Self :: Typedef (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Comment (node) => node . get_parent_id () , Self :: Eol (node) => node . get_parent_id () , Self :: Error (node) => node . get_parent_id () , Self :: Method (node) => node . get_parent_id () , Self :: Typedef (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Comment (node) => node . get_range () , Self :: Eol (node) => node . get_range () , Self :: Error (node) => node . get_range () , Self :: Method (node) => node . get_range () , Self :: Typedef (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment_Eol_Error_Method_Typedef { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 2u16 => Ok (Self :: Comment (Comment :: try_from ((node , db , builder , id , parent_id)) ?)) , 3u16 => Ok (Self :: Eol (Eol :: try_from ((node , db , builder , id , parent_id)) ?)) , 29u16 => Ok (Self :: Error (Error :: try_from ((node , db , builder , id , parent_id)) ?)) , 30u16 => Ok (Self :: Method (Method :: try_from ((node , db , builder , id , parent_id)) ?)) , 28u16 => Ok (Self :: Typedef (Typedef :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Comment_Eol_Error_Method_Typedef) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { Array (Array) , Bool (Bool) , Dict (Dict) , Enum (Enum) , Float (Float) , Int (Int) , Maybe (Maybe) , Object (Object) , String (String) , Struct (Struct) , Typeref (Typeref) } impl auto_lsp :: core :: ast :: AstNode for Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 37u16 | 16u16 | 38u16 | 33u16 | 18u16 | 17u16 | 35u16 | 20u16 | 19u16 | 31u16 | 39u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Array (node) => node . lower () , Self :: Bool (node) => node . lower () , Self :: Dict (node) => node . lower () , Self :: Enum (node) => node . lower () , Self :: Float (node) => node . lower () , Self :: Int (node) => node . lower () , Self :: Maybe (node) => node . lower () , Self :: Object (node) => node . lower () , Self :: String (node) => node . lower () , Self :: Struct (node) => node . lower () , Self :: Typeref (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Array (node) => node . get_id () , Self :: Bool (node) => node . get_id () , Self :: Dict (node) => node . get_id () , Self :: Enum (node) => node . get_id () , Self :: Float (node) => node . get_id () , Self :: Int (node) => node . get_id () , Self :: Maybe (node) => node . get_id () , Self :: Object (node) => node . get_id () , Self :: String (node) => node . get_id () , Self :: Struct (node) => node . get_id () , Self :: Typeref (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Array (node) => node . get_parent_id () , Self :: Bool (node) => node . get_parent_id () , Self :: Dict (node) => node . get_parent_id () , Self :: Enum (node) => node . get_parent_id () , Self :: Float (node) => node . get_parent_id () , Self :: Int (node) => node . get_parent_id () , Self :: Maybe (node) => node . get_parent_id () , Self :: Object (node) => node . get_parent_id () , Self :: String (node) => node . get_parent_id () , Self :: Struct (node) => node . get_parent_id () , Self :: Typeref (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Array (node) => node . get_range () , Self :: Bool (node) => node . get_range () , Self :: Dict (node) => node . get_range () , Self :: Enum (node) => node . get_range () , Self :: Float (node) => node . get_range () , Self :: Int (node) => node . get_range () , Self :: Maybe (node) => node . get_range () , Self :: Object (node) => node . get_range () , Self :: String (node) => node . get_range () , Self :: Struct (node) => node . get_range () , Self :: Typeref (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 37u16 => Ok (Self :: Array (Array :: try_from ((node , db , builder , id , parent_id)) ?)) , 16u16 => Ok (Self :: Bool (Bool :: try_from ((node , db , builder , id , parent_id)) ?)) , 38u16 => Ok (Self :: Dict (Dict :: try_from ((node , db , builder , id , parent_id)) ?)) , 33u16 => Ok (Self :: Enum (Enum :: try_from ((node , db , builder , id , parent_id)) ?)) , 18u16 => Ok (Self :: Float (Float :: try_from ((node , db , builder , id , parent_id)) ?)) , 17u16 => Ok (Self :: Int (Int :: try_from ((node , db , builder , id , parent_id)) ?)) , 35u16 => Ok (Self :: Maybe (Maybe :: try_from ((node , db , builder , id , parent_id)) ?)) , 20u16 => Ok (Self :: Object (Object :: try_from ((node , db , builder , id , parent_id)) ?)) , 19u16 => Ok (Self :: String (String :: try_from ((node , db , builder , id , parent_id)) ?)) , 31u16 => Ok (Self :: Struct (Struct :: try_from ((node , db , builder , id , parent_id)) ?)) , 39u16 => Ok (Self :: Typeref (Typeref :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Enum_Struct { Enum (Enum) , Struct (Struct) } impl auto_lsp :: core :: ast :: AstNode for Enum_Struct { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 33u16 | 31u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Enum (node) => node . lower () , Self :: Struct (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Enum (node) => node . get_id () , Self :: Struct (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Enum (node) => node . get_parent_id () , Self :: Struct (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Enum (node) => node . get_range () , Self :: Struct (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Enum_Struct { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 33u16 => Ok (Self :: Enum (Enum :: try_from ((node , db , builder , id , parent_id)) ?)) , 31u16 => Ok (Self :: Struct (Struct :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Enum_Struct) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Comment_Eol { Comment (Comment) , Eol (Eol) } impl auto_lsp :: core :: ast :: AstNode for Comment_Eol { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16 | 3u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Comment (node) => node . lower () , Self :: Eol (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Comment (node) => node . get_id () , Self :: Eol (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Comment (node) => node . get_parent_id () , Self :: Eol (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Comment (node) => node . get_range () , Self :: Eol (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment_Eol { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 2u16 => Ok (Self :: Comment (Comment :: try_from ((node , db , builder , id , parent_id)) ?)) , 3u16 => Ok (Self :: Eol (Eol :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Comment_Eol) , }) } } }
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `AstNodeId` in module `auto_lsp::core::ast`
[INFO] [stdout]   --> src/ast.rs:1:19496
[INFO] [stdout]    |
[INFO] [stdout]  1 | ...AstNodeId < Name > , pub value : auto_lsp :: core :: ast :: AstNodeId < Enum_Struct > , pub children : Vec < auto_lsp :: core :: ...
[INFO] [stdout]    |                                                                ^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]   ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/auto-lsp-core-0.7.0/src/ast/node.rs:26:1
[INFO] [stdout]    |
[INFO] [stdout] 26 | pub trait AstNode: std::fmt::Debug + Send + Sync + DowncastSync {
[INFO] [stdout]    | --------------------------------------------------------------- similarly named trait `AstNode` defined here
[INFO] [stdout]    |
[INFO] [stdout] help: a trait with a similar name exists
[INFO] [stdout]    |
[INFO] [stdout]  1 - # ! [allow (clippy :: all)] # ! [allow (unused)] # ! [allow (dead_code)] # ! [allow (non_camel_case_types)] # ! [allow (non_snake_case)] # [derive (Debug , Clone , PartialEq)] pub struct Array { pub Type : auto_lsp :: core :: ast :: AstNodeId < Type > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Array { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 37u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Array { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut Type = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Type , 10u16 > (& mut Type) }) ; Ok (Self { Type : Type ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Type) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Dict { pub Type : auto_lsp :: core :: ast :: AstNodeId < Type > , pub children : auto_lsp :: core :: ast :: AstNodeId < String > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Dict { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 38u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Dict { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut Type = Ok (None) ; ; let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Type , 10u16 > (& mut Type) ? . on_children_id (& mut children) }) ; Ok (Self { Type : Type ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Type) , } }) ? , children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (String) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Enum { pub member : Vec < auto_lsp :: core :: ast :: AstNodeId < FieldName >> , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Enum { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 33u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Enum { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut member = vec ! [] ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_vec_field_id :: < FieldName , 6u16 > (& mut member) ? . on_vec_children_id (& mut children) }) ; Ok (Self { member , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Error { pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordError > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub value : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Error { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 29u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Error { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut keyword = Ok (None) ; ; let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < KeywordError , 5u16 > (& mut keyword) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_field_id :: < Struct , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Interface { pub declaration : auto_lsp :: core :: ast :: AstNodeId < InterfaceDeclaration > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol_Error_Method_Typedef >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Interface { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 24u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Interface { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut declaration = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < InterfaceDeclaration , 2u16 > (& mut declaration) ? . on_vec_children_id (& mut children) }) ; Ok (Self { declaration : declaration ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (declaration) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct InterfaceDeclaration { pub name : auto_lsp :: core :: ast :: AstNodeId < InterfaceName > , pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordInterface > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for InterfaceDeclaration { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 27u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for InterfaceDeclaration { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut name = Ok (None) ; ; let mut keyword = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < InterfaceName , 7u16 > (& mut name) ? . on_field_id :: < KeywordInterface , 5u16 > (& mut keyword) ? . on_vec_children_id (& mut children) }) ; Ok (Self { name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Maybe { pub questionmark : auto_lsp :: core :: ast :: AstNodeId < Questionmark > , pub just : auto_lsp :: core :: ast :: AstNodeId < Type > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Maybe { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 35u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Maybe { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut questionmark = Ok (None) ; ; let mut just = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Questionmark , 9u16 > (& mut questionmark) ? . on_field_id :: < Type , 4u16 > (& mut just) }) ; Ok (Self { questionmark : questionmark ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (questionmark) , } }) ? , just : just ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (just) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Method { pub input : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub output : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordMethod > , pub arrow : auto_lsp :: core :: ast :: AstNodeId < Arrow > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Method { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 30u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Method { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut input = Ok (None) ; ; let mut output = Ok (None) ; ; let mut keyword = Ok (None) ; ; let mut arrow = Ok (None) ; ; let mut name = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Struct , 3u16 > (& mut input) ? . on_field_id :: < Struct , 8u16 > (& mut output) ? . on_field_id :: < KeywordMethod , 5u16 > (& mut keyword) ? . on_field_id :: < Arrow , 1u16 > (& mut arrow) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_vec_children_id (& mut children) }) ; Ok (Self { input : input ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (input) , } }) ? , output : output ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (output) , } }) ? , keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , arrow : arrow ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (arrow) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Struct { pub member : Vec < auto_lsp :: core :: ast :: AstNodeId < StructField >> , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Struct { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 31u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Struct { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut member = vec ! [] ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_vec_field_id :: < StructField , 6u16 > (& mut member) ? . on_vec_children_id (& mut children) }) ; Ok (Self { member , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct StructField { pub name : auto_lsp :: core :: ast :: AstNodeId < FieldName > , pub value : auto_lsp :: core :: ast :: AstNodeId < Type > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for StructField { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 32u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for StructField { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < FieldName , 7u16 > (& mut name) ? . on_field_id :: < Type , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Type { pub children : auto_lsp :: core :: ast :: AstNodeId < Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Type { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 34u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Type { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_children_id (& mut children) }) ; Ok (Self { children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Typedef { pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordType > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub value : auto_lsp :: core :: ast :: AstNodeId < Enum_Struct > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Typedef { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 28u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Typedef { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut keyword = Ok (None) ; ; let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < KeywordType , 5u16 > (& mut keyword) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_field_id :: < Enum_Struct , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Typeref { pub children : auto_lsp :: core :: ast :: AstNodeId < Name > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Typeref { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 39u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Typeref { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_children_id (& mut children) }) ; Ok (Self { children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Name) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_LeftParen { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_LeftParen { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 9u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_LeftParen { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_RightParen { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_RightParen { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 11u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_RightParen { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_Comma { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_Comma { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 10u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_Comma { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_Colon { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_Colon { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 12u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_Colon { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_LeftBracket { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_LeftBracket { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 14u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_LeftBracket { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_RightBracket { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_RightBracket { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 15u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_RightBracket { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Arrow { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Arrow { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 8u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Arrow { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Bool { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Bool { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 16u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Bool { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Comment { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Comment { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Eol { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Eol { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 3u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Eol { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct FieldName { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for FieldName { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 22u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for FieldName { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Float { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Float { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 18u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Float { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Int { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Int { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 17u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Int { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct InterfaceName { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for InterfaceName { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 23u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for InterfaceName { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordError { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordError { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 6u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordError { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordInterface { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordInterface { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 4u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordInterface { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordMethod { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordMethod { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 7u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordMethod { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordType { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordType { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 5u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordType { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Name { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Name { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 21u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Name { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Object { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Object { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 20u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Object { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Questionmark { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Questionmark { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 13u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Questionmark { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct String { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for String { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 19u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for String { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub enum Comment_Eol_Error_Method_Typedef { Comment (Comment) , Eol (Eol) , Error (Error) , Method (Method) , Typedef (Typedef) } impl auto_lsp :: core :: ast :: AstNode for Comment_Eol_Error_Method_Typedef { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16 | 3u16 | 29u16 | 30u16 | 28u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Comment (node) => node . lower () , Self :: Eol (node) => node . lower () , Self :: Error (node) => node . lower () , Self :: Method (node) => node . lower () , Self :: Typedef (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Comment (node) => node . get_id () , Self :: Eol (node) => node . get_id () , Self :: Error (node) => node . get_id () , Self :: Method (node) => node . get_id () , Self :: Typedef (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Comment (node) => node . get_parent_id () , Self :: Eol (node) => node . get_parent_id () , Self :: Error (node) => node . get_parent_id () , Self :: Method (node) => node . get_parent_id () , Self :: Typedef (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Comment (node) => node . get_range () , Self :: Eol (node) => node . get_range () , Self :: Error (node) => node . get_range () , Self :: Method (node) => node . get_range () , Self :: Typedef (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment_Eol_Error_Method_Typedef { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 2u16 => Ok (Self :: Comment (Comment :: try_from ((node , db , builder , id , parent_id)) ?)) , 3u16 => Ok (Self :: Eol (Eol :: try_from ((node , db , builder , id , parent_id)) ?)) , 29u16 => Ok (Self :: Error (Error :: try_from ((node , db , builder , id , parent_id)) ?)) , 30u16 => Ok (Self :: Method (Method :: try_from ((node , db , builder , id , parent_id)) ?)) , 28u16 => Ok (Self :: Typedef (Typedef :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Comment_Eol_Error_Method_Typedef) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { Array (Array) , Bool (Bool) , Dict (Dict) , Enum (Enum) , Float (Float) , Int (Int) , Maybe (Maybe) , Object (Object) , String (String) , Struct (Struct) , Typeref (Typeref) } impl auto_lsp :: core :: ast :: AstNode for Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 37u16 | 16u16 | 38u16 | 33u16 | 18u16 | 17u16 | 35u16 | 20u16 | 19u16 | 31u16 | 39u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Array (node) => node . lower () , Self :: Bool (node) => node . lower () , Self :: Dict (node) => node . lower () , Self :: Enum (node) => node . lower () , Self :: Float (node) => node . lower () , Self :: Int (node) => node . lower () , Self :: Maybe (node) => node . lower () , Self :: Object (node) => node . lower () , Self :: String (node) => node . lower () , Self :: Struct (node) => node . lower () , Self :: Typeref (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Array (node) => node . get_id () , Self :: Bool (node) => node . get_id () , Self :: Dict (node) => node . get_id () , Self :: Enum (node) => node . get_id () , Self :: Float (node) => node . get_id () , Self :: Int (node) => node . get_id () , Self :: Maybe (node) => node . get_id () , Self :: Object (node) => node . get_id () , Self :: String (node) => node . get_id () , Self :: Struct (node) => node . get_id () , Self :: Typeref (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Array (node) => node . get_parent_id () , Self :: Bool (node) => node . get_parent_id () , Self :: Dict (node) => node . get_parent_id () , Self :: Enum (node) => node . get_parent_id () , Self :: Float (node) => node . get_parent_id () , Self :: Int (node) => node . get_parent_id () , Self :: Maybe (node) => node . get_parent_id () , Self :: Object (node) => node . get_parent_id () , Self :: String (node) => node . get_parent_id () , Self :: Struct (node) => node . get_parent_id () , Self :: Typeref (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Array (node) => node . get_range () , Self :: Bool (node) => node . get_range () , Self :: Dict (node) => node . get_range () , Self :: Enum (node) => node . get_range () , Self :: Float (node) => node . get_range () , Self :: Int (node) => node . get_range () , Self :: Maybe (node) => node . get_range () , Self :: Object (node) => node . get_range () , Self :: String (node) => node . get_range () , Self :: Struct (node) => node . get_range () , Self :: Typeref (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 37u16 => Ok (Self :: Array (Array :: try_from ((node , db , builder , id , parent_id)) ?)) , 16u16 => Ok (Self :: Bool (Bool :: try_from ((node , db , builder , id , parent_id)) ?)) , 38u16 => Ok (Self :: Dict (Dict :: try_from ((node , db , builder , id , parent_id)) ?)) , 33u16 => Ok (Self :: Enum (Enum :: try_from ((node , db , builder , id , parent_id)) ?)) , 18u16 => Ok (Self :: Float (Float :: try_from ((node , db , builder , id , parent_id)) ?)) , 17u16 => Ok (Self :: Int (Int :: try_from ((node , db , builder , id , parent_id)) ?)) , 35u16 => Ok (Self :: Maybe (Maybe :: try_from ((node , db , builder , id , parent_id)) ?)) , 20u16 => Ok (Self :: Object (Object :: try_from ((node , db , builder , id , parent_id)) ?)) , 19u16 => Ok (Self :: String (String :: try_from ((node , db , builder , id , parent_id)) ?)) , 31u16 => Ok (Self :: Struct (Struct :: try_from ((node , db , builder , id , parent_id)) ?)) , 39u16 => Ok (Self :: Typeref (Typeref :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Enum_Struct { Enum (Enum) , Struct (Struct) } impl auto_lsp :: core :: ast :: AstNode for Enum_Struct { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 33u16 | 31u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Enum (node) => node . lower () , Self :: Struct (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Enum (node) => node . get_id () , Self :: Struct (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Enum (node) => node . get_parent_id () , Self :: Struct (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Enum (node) => node . get_range () , Self :: Struct (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Enum_Struct { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 33u16 => Ok (Self :: Enum (Enum :: try_from ((node , db , builder , id , parent_id)) ?)) , 31u16 => Ok (Self :: Struct (Struct :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Enum_Struct) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Comment_Eol { Comment (Comment) , Eol (Eol) } impl auto_lsp :: core :: ast :: AstNode for Comment_Eol { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16 | 3u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Comment (node) => node . lower () , Self :: Eol (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Comment (node) => node . get_id () , Self :: Eol (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Comment (node) => node . get_parent_id () , Self :: Eol (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Comment (node) => node . get_range () , Self :: Eol (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment_Eol { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 2u16 => Ok (Self :: Comment (Comment :: try_from ((node , db , builder , id , parent_id)) ?)) , 3u16 => Ok (Self :: Eol (Eol :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Comment_Eol) , }) } } }
[INFO] [stdout]  1 + # ! [allow (clippy :: all)] # ! [allow (unused)] # ! [allow (dead_code)] # ! [allow (non_camel_case_types)] # ! [allow (non_snake_case)] # [derive (Debug , Clone , PartialEq)] pub struct Array { pub Type : auto_lsp :: core :: ast :: AstNodeId < Type > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Array { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 37u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Array { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut Type = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Type , 10u16 > (& mut Type) }) ; Ok (Self { Type : Type ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Type) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Dict { pub Type : auto_lsp :: core :: ast :: AstNodeId < Type > , pub children : auto_lsp :: core :: ast :: AstNodeId < String > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Dict { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 38u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Dict { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut Type = Ok (None) ; ; let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Type , 10u16 > (& mut Type) ? . on_children_id (& mut children) }) ; Ok (Self { Type : Type ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Type) , } }) ? , children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (String) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Enum { pub member : Vec < auto_lsp :: core :: ast :: AstNodeId < FieldName >> , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Enum { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 33u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Enum { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut member = vec ! [] ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_vec_field_id :: < FieldName , 6u16 > (& mut member) ? . on_vec_children_id (& mut children) }) ; Ok (Self { member , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Error { pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordError > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub value : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Error { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 29u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Error { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut keyword = Ok (None) ; ; let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < KeywordError , 5u16 > (& mut keyword) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_field_id :: < Struct , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Interface { pub declaration : auto_lsp :: core :: ast :: AstNodeId < InterfaceDeclaration > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol_Error_Method_Typedef >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Interface { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 24u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Interface { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut declaration = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < InterfaceDeclaration , 2u16 > (& mut declaration) ? . on_vec_children_id (& mut children) }) ; Ok (Self { declaration : declaration ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (declaration) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct InterfaceDeclaration { pub name : auto_lsp :: core :: ast :: AstNodeId < InterfaceName > , pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordInterface > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for InterfaceDeclaration { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 27u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for InterfaceDeclaration { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut name = Ok (None) ; ; let mut keyword = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < InterfaceName , 7u16 > (& mut name) ? . on_field_id :: < KeywordInterface , 5u16 > (& mut keyword) ? . on_vec_children_id (& mut children) }) ; Ok (Self { name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Maybe { pub questionmark : auto_lsp :: core :: ast :: AstNodeId < Questionmark > , pub just : auto_lsp :: core :: ast :: AstNodeId < Type > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Maybe { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 35u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Maybe { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut questionmark = Ok (None) ; ; let mut just = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Questionmark , 9u16 > (& mut questionmark) ? . on_field_id :: < Type , 4u16 > (& mut just) }) ; Ok (Self { questionmark : questionmark ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (questionmark) , } }) ? , just : just ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (just) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Method { pub input : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub output : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordMethod > , pub arrow : auto_lsp :: core :: ast :: AstNodeId < Arrow > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Method { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 30u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Method { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut input = Ok (None) ; ; let mut output = Ok (None) ; ; let mut keyword = Ok (None) ; ; let mut arrow = Ok (None) ; ; let mut name = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Struct , 3u16 > (& mut input) ? . on_field_id :: < Struct , 8u16 > (& mut output) ? . on_field_id :: < KeywordMethod , 5u16 > (& mut keyword) ? . on_field_id :: < Arrow , 1u16 > (& mut arrow) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_vec_children_id (& mut children) }) ; Ok (Self { input : input ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (input) , } }) ? , output : output ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (output) , } }) ? , keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , arrow : arrow ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (arrow) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Struct { pub member : Vec < auto_lsp :: core :: ast :: AstNodeId < StructField >> , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Struct { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 31u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Struct { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut member = vec ! [] ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_vec_field_id :: < StructField , 6u16 > (& mut member) ? . on_vec_children_id (& mut children) }) ; Ok (Self { member , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct StructField { pub name : auto_lsp :: core :: ast :: AstNodeId < FieldName > , pub value : auto_lsp :: core :: ast :: AstNodeId < Type > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for StructField { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 32u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for StructField { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < FieldName , 7u16 > (& mut name) ? . on_field_id :: < Type , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Type { pub children : auto_lsp :: core :: ast :: AstNodeId < Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Type { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 34u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Type { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_children_id (& mut children) }) ; Ok (Self { children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Typedef { pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordType > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub value : auto_lsp :: core :: ast :: AstNode < Enum_Struct > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Typedef { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 28u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Typedef { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut keyword = Ok (None) ; ; let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < KeywordType , 5u16 > (& mut keyword) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_field_id :: < Enum_Struct , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Typeref { pub children : auto_lsp :: core :: ast :: AstNodeId < Name > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Typeref { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 39u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Typeref { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_children_id (& mut children) }) ; Ok (Self { children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Name) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_LeftParen { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_LeftParen { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 9u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_LeftParen { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_RightParen { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_RightParen { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 11u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_RightParen { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_Comma { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_Comma { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 10u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_Comma { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_Colon { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_Colon { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 12u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_Colon { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_LeftBracket { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_LeftBracket { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 14u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_LeftBracket { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_RightBracket { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_RightBracket { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 15u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_RightBracket { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Arrow { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Arrow { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 8u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Arrow { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Bool { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Bool { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 16u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Bool { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Comment { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Comment { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Eol { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Eol { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 3u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Eol { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct FieldName { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for FieldName { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 22u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for FieldName { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Float { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Float { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 18u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Float { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Int { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Int { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 17u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Int { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct InterfaceName { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for InterfaceName { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 23u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for InterfaceName { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordError { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordError { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 6u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordError { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordInterface { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordInterface { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 4u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordInterface { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordMethod { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordMethod { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 7u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordMethod { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordType { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordType { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 5u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordType { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Name { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Name { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 21u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Name { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Object { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Object { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 20u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Object { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Questionmark { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Questionmark { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 13u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Questionmark { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct String { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for String { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 19u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for String { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub enum Comment_Eol_Error_Method_Typedef { Comment (Comment) , Eol (Eol) , Error (Error) , Method (Method) , Typedef (Typedef) } impl auto_lsp :: core :: ast :: AstNode for Comment_Eol_Error_Method_Typedef { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16 | 3u16 | 29u16 | 30u16 | 28u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Comment (node) => node . lower () , Self :: Eol (node) => node . lower () , Self :: Error (node) => node . lower () , Self :: Method (node) => node . lower () , Self :: Typedef (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Comment (node) => node . get_id () , Self :: Eol (node) => node . get_id () , Self :: Error (node) => node . get_id () , Self :: Method (node) => node . get_id () , Self :: Typedef (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Comment (node) => node . get_parent_id () , Self :: Eol (node) => node . get_parent_id () , Self :: Error (node) => node . get_parent_id () , Self :: Method (node) => node . get_parent_id () , Self :: Typedef (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Comment (node) => node . get_range () , Self :: Eol (node) => node . get_range () , Self :: Error (node) => node . get_range () , Self :: Method (node) => node . get_range () , Self :: Typedef (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment_Eol_Error_Method_Typedef { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 2u16 => Ok (Self :: Comment (Comment :: try_from ((node , db , builder , id , parent_id)) ?)) , 3u16 => Ok (Self :: Eol (Eol :: try_from ((node , db , builder , id , parent_id)) ?)) , 29u16 => Ok (Self :: Error (Error :: try_from ((node , db , builder , id , parent_id)) ?)) , 30u16 => Ok (Self :: Method (Method :: try_from ((node , db , builder , id , parent_id)) ?)) , 28u16 => Ok (Self :: Typedef (Typedef :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Comment_Eol_Error_Method_Typedef) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { Array (Array) , Bool (Bool) , Dict (Dict) , Enum (Enum) , Float (Float) , Int (Int) , Maybe (Maybe) , Object (Object) , String (String) , Struct (Struct) , Typeref (Typeref) } impl auto_lsp :: core :: ast :: AstNode for Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 37u16 | 16u16 | 38u16 | 33u16 | 18u16 | 17u16 | 35u16 | 20u16 | 19u16 | 31u16 | 39u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Array (node) => node . lower () , Self :: Bool (node) => node . lower () , Self :: Dict (node) => node . lower () , Self :: Enum (node) => node . lower () , Self :: Float (node) => node . lower () , Self :: Int (node) => node . lower () , Self :: Maybe (node) => node . lower () , Self :: Object (node) => node . lower () , Self :: String (node) => node . lower () , Self :: Struct (node) => node . lower () , Self :: Typeref (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Array (node) => node . get_id () , Self :: Bool (node) => node . get_id () , Self :: Dict (node) => node . get_id () , Self :: Enum (node) => node . get_id () , Self :: Float (node) => node . get_id () , Self :: Int (node) => node . get_id () , Self :: Maybe (node) => node . get_id () , Self :: Object (node) => node . get_id () , Self :: String (node) => node . get_id () , Self :: Struct (node) => node . get_id () , Self :: Typeref (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Array (node) => node . get_parent_id () , Self :: Bool (node) => node . get_parent_id () , Self :: Dict (node) => node . get_parent_id () , Self :: Enum (node) => node . get_parent_id () , Self :: Float (node) => node . get_parent_id () , Self :: Int (node) => node . get_parent_id () , Self :: Maybe (node) => node . get_parent_id () , Self :: Object (node) => node . get_parent_id () , Self :: String (node) => node . get_parent_id () , Self :: Struct (node) => node . get_parent_id () , Self :: Typeref (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Array (node) => node . get_range () , Self :: Bool (node) => node . get_range () , Self :: Dict (node) => node . get_range () , Self :: Enum (node) => node . get_range () , Self :: Float (node) => node . get_range () , Self :: Int (node) => node . get_range () , Self :: Maybe (node) => node . get_range () , Self :: Object (node) => node . get_range () , Self :: String (node) => node . get_range () , Self :: Struct (node) => node . get_range () , Self :: Typeref (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 37u16 => Ok (Self :: Array (Array :: try_from ((node , db , builder , id , parent_id)) ?)) , 16u16 => Ok (Self :: Bool (Bool :: try_from ((node , db , builder , id , parent_id)) ?)) , 38u16 => Ok (Self :: Dict (Dict :: try_from ((node , db , builder , id , parent_id)) ?)) , 33u16 => Ok (Self :: Enum (Enum :: try_from ((node , db , builder , id , parent_id)) ?)) , 18u16 => Ok (Self :: Float (Float :: try_from ((node , db , builder , id , parent_id)) ?)) , 17u16 => Ok (Self :: Int (Int :: try_from ((node , db , builder , id , parent_id)) ?)) , 35u16 => Ok (Self :: Maybe (Maybe :: try_from ((node , db , builder , id , parent_id)) ?)) , 20u16 => Ok (Self :: Object (Object :: try_from ((node , db , builder , id , parent_id)) ?)) , 19u16 => Ok (Self :: String (String :: try_from ((node , db , builder , id , parent_id)) ?)) , 31u16 => Ok (Self :: Struct (Struct :: try_from ((node , db , builder , id , parent_id)) ?)) , 39u16 => Ok (Self :: Typeref (Typeref :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Enum_Struct { Enum (Enum) , Struct (Struct) } impl auto_lsp :: core :: ast :: AstNode for Enum_Struct { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 33u16 | 31u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Enum (node) => node . lower () , Self :: Struct (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Enum (node) => node . get_id () , Self :: Struct (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Enum (node) => node . get_parent_id () , Self :: Struct (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Enum (node) => node . get_range () , Self :: Struct (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Enum_Struct { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 33u16 => Ok (Self :: Enum (Enum :: try_from ((node , db , builder , id , parent_id)) ?)) , 31u16 => Ok (Self :: Struct (Struct :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Enum_Struct) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Comment_Eol { Comment (Comment) , Eol (Eol) } impl auto_lsp :: core :: ast :: AstNode for Comment_Eol { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16 | 3u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Comment (node) => node . lower () , Self :: Eol (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Comment (node) => node . get_id () , Self :: Eol (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Comment (node) => node . get_parent_id () , Self :: Eol (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Comment (node) => node . get_range () , Self :: Eol (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment_Eol { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 2u16 => Ok (Self :: Comment (Comment :: try_from ((node , db , builder , id , parent_id)) ?)) , 3u16 => Ok (Self :: Eol (Eol :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Comment_Eol) , }) } } }
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `AstNodeId` in module `auto_lsp::core::ast`
[INFO] [stdout]   --> src/ast.rs:1:19572
[INFO] [stdout]    |
[INFO] [stdout]  1 | ..._Struct > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Rang...
[INFO] [stdout]    |                                                                ^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]   ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/auto-lsp-core-0.7.0/src/ast/node.rs:26:1
[INFO] [stdout]    |
[INFO] [stdout] 26 | pub trait AstNode: std::fmt::Debug + Send + Sync + DowncastSync {
[INFO] [stdout]    | --------------------------------------------------------------- similarly named trait `AstNode` defined here
[INFO] [stdout]    |
[INFO] [stdout] help: a trait with a similar name exists
[INFO] [stdout]    |
[INFO] [stdout]  1 - # ! [allow (clippy :: all)] # ! [allow (unused)] # ! [allow (dead_code)] # ! [allow (non_camel_case_types)] # ! [allow (non_snake_case)] # [derive (Debug , Clone , PartialEq)] pub struct Array { pub Type : auto_lsp :: core :: ast :: AstNodeId < Type > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Array { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 37u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Array { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut Type = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Type , 10u16 > (& mut Type) }) ; Ok (Self { Type : Type ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Type) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Dict { pub Type : auto_lsp :: core :: ast :: AstNodeId < Type > , pub children : auto_lsp :: core :: ast :: AstNodeId < String > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Dict { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 38u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Dict { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut Type = Ok (None) ; ; let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Type , 10u16 > (& mut Type) ? . on_children_id (& mut children) }) ; Ok (Self { Type : Type ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Type) , } }) ? , children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (String) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Enum { pub member : Vec < auto_lsp :: core :: ast :: AstNodeId < FieldName >> , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Enum { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 33u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Enum { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut member = vec ! [] ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_vec_field_id :: < FieldName , 6u16 > (& mut member) ? . on_vec_children_id (& mut children) }) ; Ok (Self { member , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Error { pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordError > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub value : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Error { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 29u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Error { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut keyword = Ok (None) ; ; let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < KeywordError , 5u16 > (& mut keyword) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_field_id :: < Struct , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Interface { pub declaration : auto_lsp :: core :: ast :: AstNodeId < InterfaceDeclaration > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol_Error_Method_Typedef >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Interface { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 24u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Interface { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut declaration = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < InterfaceDeclaration , 2u16 > (& mut declaration) ? . on_vec_children_id (& mut children) }) ; Ok (Self { declaration : declaration ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (declaration) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct InterfaceDeclaration { pub name : auto_lsp :: core :: ast :: AstNodeId < InterfaceName > , pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordInterface > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for InterfaceDeclaration { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 27u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for InterfaceDeclaration { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut name = Ok (None) ; ; let mut keyword = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < InterfaceName , 7u16 > (& mut name) ? . on_field_id :: < KeywordInterface , 5u16 > (& mut keyword) ? . on_vec_children_id (& mut children) }) ; Ok (Self { name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Maybe { pub questionmark : auto_lsp :: core :: ast :: AstNodeId < Questionmark > , pub just : auto_lsp :: core :: ast :: AstNodeId < Type > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Maybe { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 35u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Maybe { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut questionmark = Ok (None) ; ; let mut just = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Questionmark , 9u16 > (& mut questionmark) ? . on_field_id :: < Type , 4u16 > (& mut just) }) ; Ok (Self { questionmark : questionmark ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (questionmark) , } }) ? , just : just ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (just) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Method { pub input : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub output : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordMethod > , pub arrow : auto_lsp :: core :: ast :: AstNodeId < Arrow > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Method { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 30u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Method { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut input = Ok (None) ; ; let mut output = Ok (None) ; ; let mut keyword = Ok (None) ; ; let mut arrow = Ok (None) ; ; let mut name = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Struct , 3u16 > (& mut input) ? . on_field_id :: < Struct , 8u16 > (& mut output) ? . on_field_id :: < KeywordMethod , 5u16 > (& mut keyword) ? . on_field_id :: < Arrow , 1u16 > (& mut arrow) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_vec_children_id (& mut children) }) ; Ok (Self { input : input ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (input) , } }) ? , output : output ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (output) , } }) ? , keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , arrow : arrow ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (arrow) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Struct { pub member : Vec < auto_lsp :: core :: ast :: AstNodeId < StructField >> , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Struct { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 31u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Struct { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut member = vec ! [] ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_vec_field_id :: < StructField , 6u16 > (& mut member) ? . on_vec_children_id (& mut children) }) ; Ok (Self { member , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct StructField { pub name : auto_lsp :: core :: ast :: AstNodeId < FieldName > , pub value : auto_lsp :: core :: ast :: AstNodeId < Type > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for StructField { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 32u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for StructField { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < FieldName , 7u16 > (& mut name) ? . on_field_id :: < Type , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Type { pub children : auto_lsp :: core :: ast :: AstNodeId < Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Type { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 34u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Type { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_children_id (& mut children) }) ; Ok (Self { children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Typedef { pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordType > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub value : auto_lsp :: core :: ast :: AstNodeId < Enum_Struct > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Typedef { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 28u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Typedef { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut keyword = Ok (None) ; ; let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < KeywordType , 5u16 > (& mut keyword) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_field_id :: < Enum_Struct , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Typeref { pub children : auto_lsp :: core :: ast :: AstNodeId < Name > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Typeref { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 39u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Typeref { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_children_id (& mut children) }) ; Ok (Self { children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Name) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_LeftParen { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_LeftParen { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 9u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_LeftParen { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_RightParen { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_RightParen { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 11u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_RightParen { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_Comma { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_Comma { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 10u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_Comma { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_Colon { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_Colon { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 12u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_Colon { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_LeftBracket { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_LeftBracket { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 14u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_LeftBracket { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_RightBracket { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_RightBracket { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 15u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_RightBracket { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Arrow { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Arrow { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 8u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Arrow { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Bool { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Bool { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 16u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Bool { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Comment { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Comment { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Eol { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Eol { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 3u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Eol { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct FieldName { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for FieldName { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 22u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for FieldName { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Float { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Float { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 18u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Float { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Int { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Int { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 17u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Int { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct InterfaceName { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for InterfaceName { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 23u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for InterfaceName { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordError { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordError { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 6u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordError { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordInterface { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordInterface { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 4u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordInterface { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordMethod { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordMethod { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 7u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordMethod { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordType { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordType { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 5u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordType { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Name { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Name { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 21u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Name { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Object { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Object { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 20u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Object { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Questionmark { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Questionmark { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 13u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Questionmark { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct String { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for String { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 19u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for String { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub enum Comment_Eol_Error_Method_Typedef { Comment (Comment) , Eol (Eol) , Error (Error) , Method (Method) , Typedef (Typedef) } impl auto_lsp :: core :: ast :: AstNode for Comment_Eol_Error_Method_Typedef { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16 | 3u16 | 29u16 | 30u16 | 28u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Comment (node) => node . lower () , Self :: Eol (node) => node . lower () , Self :: Error (node) => node . lower () , Self :: Method (node) => node . lower () , Self :: Typedef (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Comment (node) => node . get_id () , Self :: Eol (node) => node . get_id () , Self :: Error (node) => node . get_id () , Self :: Method (node) => node . get_id () , Self :: Typedef (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Comment (node) => node . get_parent_id () , Self :: Eol (node) => node . get_parent_id () , Self :: Error (node) => node . get_parent_id () , Self :: Method (node) => node . get_parent_id () , Self :: Typedef (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Comment (node) => node . get_range () , Self :: Eol (node) => node . get_range () , Self :: Error (node) => node . get_range () , Self :: Method (node) => node . get_range () , Self :: Typedef (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment_Eol_Error_Method_Typedef { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 2u16 => Ok (Self :: Comment (Comment :: try_from ((node , db , builder , id , parent_id)) ?)) , 3u16 => Ok (Self :: Eol (Eol :: try_from ((node , db , builder , id , parent_id)) ?)) , 29u16 => Ok (Self :: Error (Error :: try_from ((node , db , builder , id , parent_id)) ?)) , 30u16 => Ok (Self :: Method (Method :: try_from ((node , db , builder , id , parent_id)) ?)) , 28u16 => Ok (Self :: Typedef (Typedef :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Comment_Eol_Error_Method_Typedef) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { Array (Array) , Bool (Bool) , Dict (Dict) , Enum (Enum) , Float (Float) , Int (Int) , Maybe (Maybe) , Object (Object) , String (String) , Struct (Struct) , Typeref (Typeref) } impl auto_lsp :: core :: ast :: AstNode for Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 37u16 | 16u16 | 38u16 | 33u16 | 18u16 | 17u16 | 35u16 | 20u16 | 19u16 | 31u16 | 39u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Array (node) => node . lower () , Self :: Bool (node) => node . lower () , Self :: Dict (node) => node . lower () , Self :: Enum (node) => node . lower () , Self :: Float (node) => node . lower () , Self :: Int (node) => node . lower () , Self :: Maybe (node) => node . lower () , Self :: Object (node) => node . lower () , Self :: String (node) => node . lower () , Self :: Struct (node) => node . lower () , Self :: Typeref (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Array (node) => node . get_id () , Self :: Bool (node) => node . get_id () , Self :: Dict (node) => node . get_id () , Self :: Enum (node) => node . get_id () , Self :: Float (node) => node . get_id () , Self :: Int (node) => node . get_id () , Self :: Maybe (node) => node . get_id () , Self :: Object (node) => node . get_id () , Self :: String (node) => node . get_id () , Self :: Struct (node) => node . get_id () , Self :: Typeref (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Array (node) => node . get_parent_id () , Self :: Bool (node) => node . get_parent_id () , Self :: Dict (node) => node . get_parent_id () , Self :: Enum (node) => node . get_parent_id () , Self :: Float (node) => node . get_parent_id () , Self :: Int (node) => node . get_parent_id () , Self :: Maybe (node) => node . get_parent_id () , Self :: Object (node) => node . get_parent_id () , Self :: String (node) => node . get_parent_id () , Self :: Struct (node) => node . get_parent_id () , Self :: Typeref (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Array (node) => node . get_range () , Self :: Bool (node) => node . get_range () , Self :: Dict (node) => node . get_range () , Self :: Enum (node) => node . get_range () , Self :: Float (node) => node . get_range () , Self :: Int (node) => node . get_range () , Self :: Maybe (node) => node . get_range () , Self :: Object (node) => node . get_range () , Self :: String (node) => node . get_range () , Self :: Struct (node) => node . get_range () , Self :: Typeref (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 37u16 => Ok (Self :: Array (Array :: try_from ((node , db , builder , id , parent_id)) ?)) , 16u16 => Ok (Self :: Bool (Bool :: try_from ((node , db , builder , id , parent_id)) ?)) , 38u16 => Ok (Self :: Dict (Dict :: try_from ((node , db , builder , id , parent_id)) ?)) , 33u16 => Ok (Self :: Enum (Enum :: try_from ((node , db , builder , id , parent_id)) ?)) , 18u16 => Ok (Self :: Float (Float :: try_from ((node , db , builder , id , parent_id)) ?)) , 17u16 => Ok (Self :: Int (Int :: try_from ((node , db , builder , id , parent_id)) ?)) , 35u16 => Ok (Self :: Maybe (Maybe :: try_from ((node , db , builder , id , parent_id)) ?)) , 20u16 => Ok (Self :: Object (Object :: try_from ((node , db , builder , id , parent_id)) ?)) , 19u16 => Ok (Self :: String (String :: try_from ((node , db , builder , id , parent_id)) ?)) , 31u16 => Ok (Self :: Struct (Struct :: try_from ((node , db , builder , id , parent_id)) ?)) , 39u16 => Ok (Self :: Typeref (Typeref :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Enum_Struct { Enum (Enum) , Struct (Struct) } impl auto_lsp :: core :: ast :: AstNode for Enum_Struct { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 33u16 | 31u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Enum (node) => node . lower () , Self :: Struct (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Enum (node) => node . get_id () , Self :: Struct (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Enum (node) => node . get_parent_id () , Self :: Struct (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Enum (node) => node . get_range () , Self :: Struct (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Enum_Struct { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 33u16 => Ok (Self :: Enum (Enum :: try_from ((node , db , builder , id , parent_id)) ?)) , 31u16 => Ok (Self :: Struct (Struct :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Enum_Struct) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Comment_Eol { Comment (Comment) , Eol (Eol) } impl auto_lsp :: core :: ast :: AstNode for Comment_Eol { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16 | 3u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Comment (node) => node . lower () , Self :: Eol (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Comment (node) => node . get_id () , Self :: Eol (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Comment (node) => node . get_parent_id () , Self :: Eol (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Comment (node) => node . get_range () , Self :: Eol (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment_Eol { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 2u16 => Ok (Self :: Comment (Comment :: try_from ((node , db , builder , id , parent_id)) ?)) , 3u16 => Ok (Self :: Eol (Eol :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Comment_Eol) , }) } } }
[INFO] [stdout]  1 + # ! [allow (clippy :: all)] # ! [allow (unused)] # ! [allow (dead_code)] # ! [allow (non_camel_case_types)] # ! [allow (non_snake_case)] # [derive (Debug , Clone , PartialEq)] pub struct Array { pub Type : auto_lsp :: core :: ast :: AstNodeId < Type > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Array { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 37u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Array { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut Type = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Type , 10u16 > (& mut Type) }) ; Ok (Self { Type : Type ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Type) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Dict { pub Type : auto_lsp :: core :: ast :: AstNodeId < Type > , pub children : auto_lsp :: core :: ast :: AstNodeId < String > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Dict { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 38u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Dict { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut Type = Ok (None) ; ; let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Type , 10u16 > (& mut Type) ? . on_children_id (& mut children) }) ; Ok (Self { Type : Type ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Type) , } }) ? , children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (String) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Enum { pub member : Vec < auto_lsp :: core :: ast :: AstNodeId < FieldName >> , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Enum { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 33u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Enum { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut member = vec ! [] ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_vec_field_id :: < FieldName , 6u16 > (& mut member) ? . on_vec_children_id (& mut children) }) ; Ok (Self { member , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Error { pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordError > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub value : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Error { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 29u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Error { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut keyword = Ok (None) ; ; let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < KeywordError , 5u16 > (& mut keyword) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_field_id :: < Struct , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Interface { pub declaration : auto_lsp :: core :: ast :: AstNodeId < InterfaceDeclaration > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol_Error_Method_Typedef >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Interface { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 24u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Interface { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut declaration = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < InterfaceDeclaration , 2u16 > (& mut declaration) ? . on_vec_children_id (& mut children) }) ; Ok (Self { declaration : declaration ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (declaration) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct InterfaceDeclaration { pub name : auto_lsp :: core :: ast :: AstNodeId < InterfaceName > , pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordInterface > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for InterfaceDeclaration { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 27u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for InterfaceDeclaration { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut name = Ok (None) ; ; let mut keyword = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < InterfaceName , 7u16 > (& mut name) ? . on_field_id :: < KeywordInterface , 5u16 > (& mut keyword) ? . on_vec_children_id (& mut children) }) ; Ok (Self { name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Maybe { pub questionmark : auto_lsp :: core :: ast :: AstNodeId < Questionmark > , pub just : auto_lsp :: core :: ast :: AstNodeId < Type > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Maybe { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 35u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Maybe { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut questionmark = Ok (None) ; ; let mut just = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Questionmark , 9u16 > (& mut questionmark) ? . on_field_id :: < Type , 4u16 > (& mut just) }) ; Ok (Self { questionmark : questionmark ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (questionmark) , } }) ? , just : just ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (just) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Method { pub input : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub output : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordMethod > , pub arrow : auto_lsp :: core :: ast :: AstNodeId < Arrow > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Method { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 30u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Method { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut input = Ok (None) ; ; let mut output = Ok (None) ; ; let mut keyword = Ok (None) ; ; let mut arrow = Ok (None) ; ; let mut name = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Struct , 3u16 > (& mut input) ? . on_field_id :: < Struct , 8u16 > (& mut output) ? . on_field_id :: < KeywordMethod , 5u16 > (& mut keyword) ? . on_field_id :: < Arrow , 1u16 > (& mut arrow) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_vec_children_id (& mut children) }) ; Ok (Self { input : input ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (input) , } }) ? , output : output ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (output) , } }) ? , keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , arrow : arrow ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (arrow) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Struct { pub member : Vec < auto_lsp :: core :: ast :: AstNodeId < StructField >> , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Struct { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 31u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Struct { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut member = vec ! [] ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_vec_field_id :: < StructField , 6u16 > (& mut member) ? . on_vec_children_id (& mut children) }) ; Ok (Self { member , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct StructField { pub name : auto_lsp :: core :: ast :: AstNodeId < FieldName > , pub value : auto_lsp :: core :: ast :: AstNodeId < Type > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for StructField { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 32u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for StructField { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < FieldName , 7u16 > (& mut name) ? . on_field_id :: < Type , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Type { pub children : auto_lsp :: core :: ast :: AstNodeId < Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Type { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 34u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Type { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_children_id (& mut children) }) ; Ok (Self { children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Typedef { pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordType > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub value : auto_lsp :: core :: ast :: AstNodeId < Enum_Struct > , pub children : Vec < auto_lsp :: core :: ast :: AstNode < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Typedef { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 28u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Typedef { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut keyword = Ok (None) ; ; let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < KeywordType , 5u16 > (& mut keyword) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_field_id :: < Enum_Struct , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Typeref { pub children : auto_lsp :: core :: ast :: AstNodeId < Name > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Typeref { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 39u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Typeref { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_children_id (& mut children) }) ; Ok (Self { children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Name) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_LeftParen { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_LeftParen { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 9u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_LeftParen { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_RightParen { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_RightParen { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 11u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_RightParen { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_Comma { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_Comma { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 10u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_Comma { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_Colon { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_Colon { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 12u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_Colon { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_LeftBracket { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_LeftBracket { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 14u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_LeftBracket { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_RightBracket { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_RightBracket { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 15u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_RightBracket { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Arrow { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Arrow { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 8u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Arrow { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Bool { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Bool { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 16u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Bool { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Comment { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Comment { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Eol { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Eol { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 3u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Eol { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct FieldName { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for FieldName { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 22u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for FieldName { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Float { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Float { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 18u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Float { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Int { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Int { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 17u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Int { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct InterfaceName { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for InterfaceName { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 23u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for InterfaceName { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordError { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordError { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 6u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordError { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordInterface { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordInterface { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 4u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordInterface { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordMethod { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordMethod { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 7u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordMethod { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordType { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordType { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 5u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordType { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Name { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Name { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 21u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Name { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Object { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Object { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 20u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Object { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Questionmark { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Questionmark { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 13u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Questionmark { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct String { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for String { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 19u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for String { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub enum Comment_Eol_Error_Method_Typedef { Comment (Comment) , Eol (Eol) , Error (Error) , Method (Method) , Typedef (Typedef) } impl auto_lsp :: core :: ast :: AstNode for Comment_Eol_Error_Method_Typedef { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16 | 3u16 | 29u16 | 30u16 | 28u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Comment (node) => node . lower () , Self :: Eol (node) => node . lower () , Self :: Error (node) => node . lower () , Self :: Method (node) => node . lower () , Self :: Typedef (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Comment (node) => node . get_id () , Self :: Eol (node) => node . get_id () , Self :: Error (node) => node . get_id () , Self :: Method (node) => node . get_id () , Self :: Typedef (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Comment (node) => node . get_parent_id () , Self :: Eol (node) => node . get_parent_id () , Self :: Error (node) => node . get_parent_id () , Self :: Method (node) => node . get_parent_id () , Self :: Typedef (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Comment (node) => node . get_range () , Self :: Eol (node) => node . get_range () , Self :: Error (node) => node . get_range () , Self :: Method (node) => node . get_range () , Self :: Typedef (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment_Eol_Error_Method_Typedef { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 2u16 => Ok (Self :: Comment (Comment :: try_from ((node , db , builder , id , parent_id)) ?)) , 3u16 => Ok (Self :: Eol (Eol :: try_from ((node , db , builder , id , parent_id)) ?)) , 29u16 => Ok (Self :: Error (Error :: try_from ((node , db , builder , id , parent_id)) ?)) , 30u16 => Ok (Self :: Method (Method :: try_from ((node , db , builder , id , parent_id)) ?)) , 28u16 => Ok (Self :: Typedef (Typedef :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Comment_Eol_Error_Method_Typedef) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { Array (Array) , Bool (Bool) , Dict (Dict) , Enum (Enum) , Float (Float) , Int (Int) , Maybe (Maybe) , Object (Object) , String (String) , Struct (Struct) , Typeref (Typeref) } impl auto_lsp :: core :: ast :: AstNode for Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 37u16 | 16u16 | 38u16 | 33u16 | 18u16 | 17u16 | 35u16 | 20u16 | 19u16 | 31u16 | 39u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Array (node) => node . lower () , Self :: Bool (node) => node . lower () , Self :: Dict (node) => node . lower () , Self :: Enum (node) => node . lower () , Self :: Float (node) => node . lower () , Self :: Int (node) => node . lower () , Self :: Maybe (node) => node . lower () , Self :: Object (node) => node . lower () , Self :: String (node) => node . lower () , Self :: Struct (node) => node . lower () , Self :: Typeref (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Array (node) => node . get_id () , Self :: Bool (node) => node . get_id () , Self :: Dict (node) => node . get_id () , Self :: Enum (node) => node . get_id () , Self :: Float (node) => node . get_id () , Self :: Int (node) => node . get_id () , Self :: Maybe (node) => node . get_id () , Self :: Object (node) => node . get_id () , Self :: String (node) => node . get_id () , Self :: Struct (node) => node . get_id () , Self :: Typeref (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Array (node) => node . get_parent_id () , Self :: Bool (node) => node . get_parent_id () , Self :: Dict (node) => node . get_parent_id () , Self :: Enum (node) => node . get_parent_id () , Self :: Float (node) => node . get_parent_id () , Self :: Int (node) => node . get_parent_id () , Self :: Maybe (node) => node . get_parent_id () , Self :: Object (node) => node . get_parent_id () , Self :: String (node) => node . get_parent_id () , Self :: Struct (node) => node . get_parent_id () , Self :: Typeref (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Array (node) => node . get_range () , Self :: Bool (node) => node . get_range () , Self :: Dict (node) => node . get_range () , Self :: Enum (node) => node . get_range () , Self :: Float (node) => node . get_range () , Self :: Int (node) => node . get_range () , Self :: Maybe (node) => node . get_range () , Self :: Object (node) => node . get_range () , Self :: String (node) => node . get_range () , Self :: Struct (node) => node . get_range () , Self :: Typeref (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 37u16 => Ok (Self :: Array (Array :: try_from ((node , db , builder , id , parent_id)) ?)) , 16u16 => Ok (Self :: Bool (Bool :: try_from ((node , db , builder , id , parent_id)) ?)) , 38u16 => Ok (Self :: Dict (Dict :: try_from ((node , db , builder , id , parent_id)) ?)) , 33u16 => Ok (Self :: Enum (Enum :: try_from ((node , db , builder , id , parent_id)) ?)) , 18u16 => Ok (Self :: Float (Float :: try_from ((node , db , builder , id , parent_id)) ?)) , 17u16 => Ok (Self :: Int (Int :: try_from ((node , db , builder , id , parent_id)) ?)) , 35u16 => Ok (Self :: Maybe (Maybe :: try_from ((node , db , builder , id , parent_id)) ?)) , 20u16 => Ok (Self :: Object (Object :: try_from ((node , db , builder , id , parent_id)) ?)) , 19u16 => Ok (Self :: String (String :: try_from ((node , db , builder , id , parent_id)) ?)) , 31u16 => Ok (Self :: Struct (Struct :: try_from ((node , db , builder , id , parent_id)) ?)) , 39u16 => Ok (Self :: Typeref (Typeref :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Enum_Struct { Enum (Enum) , Struct (Struct) } impl auto_lsp :: core :: ast :: AstNode for Enum_Struct { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 33u16 | 31u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Enum (node) => node . lower () , Self :: Struct (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Enum (node) => node . get_id () , Self :: Struct (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Enum (node) => node . get_parent_id () , Self :: Struct (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Enum (node) => node . get_range () , Self :: Struct (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Enum_Struct { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 33u16 => Ok (Self :: Enum (Enum :: try_from ((node , db , builder , id , parent_id)) ?)) , 31u16 => Ok (Self :: Struct (Struct :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Enum_Struct) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Comment_Eol { Comment (Comment) , Eol (Eol) } impl auto_lsp :: core :: ast :: AstNode for Comment_Eol { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16 | 3u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Comment (node) => node . lower () , Self :: Eol (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Comment (node) => node . get_id () , Self :: Eol (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Comment (node) => node . get_parent_id () , Self :: Eol (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Comment (node) => node . get_range () , Self :: Eol (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment_Eol { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 2u16 => Ok (Self :: Comment (Comment :: try_from ((node , db , builder , id , parent_id)) ?)) , 3u16 => Ok (Self :: Eol (Eol :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Comment_Eol) , }) } } }
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `AstNodeId` in module `auto_lsp::core::ast`
[INFO] [stdout]   --> src/ast.rs:1:21560
[INFO] [stdout]    |
[INFO] [stdout]  1 | ... struct Typeref { pub children : auto_lsp :: core :: ast :: AstNodeId < Name > , _range : auto_lsp :: tree_sitter :: Range , _id ...
[INFO] [stdout]    |                                                                ^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]   ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/auto-lsp-core-0.7.0/src/ast/node.rs:26:1
[INFO] [stdout]    |
[INFO] [stdout] 26 | pub trait AstNode: std::fmt::Debug + Send + Sync + DowncastSync {
[INFO] [stdout]    | --------------------------------------------------------------- similarly named trait `AstNode` defined here
[INFO] [stdout]    |
[INFO] [stdout] help: a trait with a similar name exists
[INFO] [stdout]    |
[INFO] [stdout]  1 - # ! [allow (clippy :: all)] # ! [allow (unused)] # ! [allow (dead_code)] # ! [allow (non_camel_case_types)] # ! [allow (non_snake_case)] # [derive (Debug , Clone , PartialEq)] pub struct Array { pub Type : auto_lsp :: core :: ast :: AstNodeId < Type > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Array { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 37u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Array { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut Type = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Type , 10u16 > (& mut Type) }) ; Ok (Self { Type : Type ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Type) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Dict { pub Type : auto_lsp :: core :: ast :: AstNodeId < Type > , pub children : auto_lsp :: core :: ast :: AstNodeId < String > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Dict { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 38u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Dict { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut Type = Ok (None) ; ; let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Type , 10u16 > (& mut Type) ? . on_children_id (& mut children) }) ; Ok (Self { Type : Type ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Type) , } }) ? , children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (String) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Enum { pub member : Vec < auto_lsp :: core :: ast :: AstNodeId < FieldName >> , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Enum { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 33u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Enum { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut member = vec ! [] ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_vec_field_id :: < FieldName , 6u16 > (& mut member) ? . on_vec_children_id (& mut children) }) ; Ok (Self { member , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Error { pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordError > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub value : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Error { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 29u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Error { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut keyword = Ok (None) ; ; let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < KeywordError , 5u16 > (& mut keyword) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_field_id :: < Struct , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Interface { pub declaration : auto_lsp :: core :: ast :: AstNodeId < InterfaceDeclaration > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol_Error_Method_Typedef >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Interface { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 24u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Interface { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut declaration = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < InterfaceDeclaration , 2u16 > (& mut declaration) ? . on_vec_children_id (& mut children) }) ; Ok (Self { declaration : declaration ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (declaration) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct InterfaceDeclaration { pub name : auto_lsp :: core :: ast :: AstNodeId < InterfaceName > , pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordInterface > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for InterfaceDeclaration { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 27u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for InterfaceDeclaration { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut name = Ok (None) ; ; let mut keyword = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < InterfaceName , 7u16 > (& mut name) ? . on_field_id :: < KeywordInterface , 5u16 > (& mut keyword) ? . on_vec_children_id (& mut children) }) ; Ok (Self { name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Maybe { pub questionmark : auto_lsp :: core :: ast :: AstNodeId < Questionmark > , pub just : auto_lsp :: core :: ast :: AstNodeId < Type > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Maybe { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 35u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Maybe { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut questionmark = Ok (None) ; ; let mut just = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Questionmark , 9u16 > (& mut questionmark) ? . on_field_id :: < Type , 4u16 > (& mut just) }) ; Ok (Self { questionmark : questionmark ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (questionmark) , } }) ? , just : just ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (just) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Method { pub input : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub output : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordMethod > , pub arrow : auto_lsp :: core :: ast :: AstNodeId < Arrow > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Method { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 30u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Method { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut input = Ok (None) ; ; let mut output = Ok (None) ; ; let mut keyword = Ok (None) ; ; let mut arrow = Ok (None) ; ; let mut name = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Struct , 3u16 > (& mut input) ? . on_field_id :: < Struct , 8u16 > (& mut output) ? . on_field_id :: < KeywordMethod , 5u16 > (& mut keyword) ? . on_field_id :: < Arrow , 1u16 > (& mut arrow) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_vec_children_id (& mut children) }) ; Ok (Self { input : input ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (input) , } }) ? , output : output ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (output) , } }) ? , keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , arrow : arrow ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (arrow) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Struct { pub member : Vec < auto_lsp :: core :: ast :: AstNodeId < StructField >> , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Struct { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 31u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Struct { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut member = vec ! [] ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_vec_field_id :: < StructField , 6u16 > (& mut member) ? . on_vec_children_id (& mut children) }) ; Ok (Self { member , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct StructField { pub name : auto_lsp :: core :: ast :: AstNodeId < FieldName > , pub value : auto_lsp :: core :: ast :: AstNodeId < Type > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for StructField { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 32u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for StructField { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < FieldName , 7u16 > (& mut name) ? . on_field_id :: < Type , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Type { pub children : auto_lsp :: core :: ast :: AstNodeId < Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Type { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 34u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Type { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_children_id (& mut children) }) ; Ok (Self { children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Typedef { pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordType > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub value : auto_lsp :: core :: ast :: AstNodeId < Enum_Struct > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Typedef { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 28u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Typedef { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut keyword = Ok (None) ; ; let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < KeywordType , 5u16 > (& mut keyword) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_field_id :: < Enum_Struct , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Typeref { pub children : auto_lsp :: core :: ast :: AstNodeId < Name > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Typeref { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 39u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Typeref { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_children_id (& mut children) }) ; Ok (Self { children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Name) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_LeftParen { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_LeftParen { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 9u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_LeftParen { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_RightParen { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_RightParen { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 11u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_RightParen { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_Comma { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_Comma { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 10u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_Comma { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_Colon { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_Colon { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 12u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_Colon { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_LeftBracket { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_LeftBracket { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 14u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_LeftBracket { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_RightBracket { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_RightBracket { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 15u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_RightBracket { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Arrow { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Arrow { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 8u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Arrow { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Bool { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Bool { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 16u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Bool { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Comment { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Comment { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Eol { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Eol { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 3u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Eol { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct FieldName { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for FieldName { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 22u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for FieldName { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Float { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Float { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 18u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Float { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Int { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Int { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 17u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Int { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct InterfaceName { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for InterfaceName { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 23u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for InterfaceName { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordError { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordError { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 6u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordError { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordInterface { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordInterface { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 4u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordInterface { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordMethod { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordMethod { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 7u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordMethod { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordType { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordType { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 5u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordType { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Name { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Name { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 21u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Name { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Object { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Object { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 20u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Object { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Questionmark { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Questionmark { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 13u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Questionmark { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct String { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for String { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 19u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for String { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub enum Comment_Eol_Error_Method_Typedef { Comment (Comment) , Eol (Eol) , Error (Error) , Method (Method) , Typedef (Typedef) } impl auto_lsp :: core :: ast :: AstNode for Comment_Eol_Error_Method_Typedef { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16 | 3u16 | 29u16 | 30u16 | 28u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Comment (node) => node . lower () , Self :: Eol (node) => node . lower () , Self :: Error (node) => node . lower () , Self :: Method (node) => node . lower () , Self :: Typedef (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Comment (node) => node . get_id () , Self :: Eol (node) => node . get_id () , Self :: Error (node) => node . get_id () , Self :: Method (node) => node . get_id () , Self :: Typedef (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Comment (node) => node . get_parent_id () , Self :: Eol (node) => node . get_parent_id () , Self :: Error (node) => node . get_parent_id () , Self :: Method (node) => node . get_parent_id () , Self :: Typedef (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Comment (node) => node . get_range () , Self :: Eol (node) => node . get_range () , Self :: Error (node) => node . get_range () , Self :: Method (node) => node . get_range () , Self :: Typedef (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment_Eol_Error_Method_Typedef { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 2u16 => Ok (Self :: Comment (Comment :: try_from ((node , db , builder , id , parent_id)) ?)) , 3u16 => Ok (Self :: Eol (Eol :: try_from ((node , db , builder , id , parent_id)) ?)) , 29u16 => Ok (Self :: Error (Error :: try_from ((node , db , builder , id , parent_id)) ?)) , 30u16 => Ok (Self :: Method (Method :: try_from ((node , db , builder , id , parent_id)) ?)) , 28u16 => Ok (Self :: Typedef (Typedef :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Comment_Eol_Error_Method_Typedef) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { Array (Array) , Bool (Bool) , Dict (Dict) , Enum (Enum) , Float (Float) , Int (Int) , Maybe (Maybe) , Object (Object) , String (String) , Struct (Struct) , Typeref (Typeref) } impl auto_lsp :: core :: ast :: AstNode for Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 37u16 | 16u16 | 38u16 | 33u16 | 18u16 | 17u16 | 35u16 | 20u16 | 19u16 | 31u16 | 39u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Array (node) => node . lower () , Self :: Bool (node) => node . lower () , Self :: Dict (node) => node . lower () , Self :: Enum (node) => node . lower () , Self :: Float (node) => node . lower () , Self :: Int (node) => node . lower () , Self :: Maybe (node) => node . lower () , Self :: Object (node) => node . lower () , Self :: String (node) => node . lower () , Self :: Struct (node) => node . lower () , Self :: Typeref (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Array (node) => node . get_id () , Self :: Bool (node) => node . get_id () , Self :: Dict (node) => node . get_id () , Self :: Enum (node) => node . get_id () , Self :: Float (node) => node . get_id () , Self :: Int (node) => node . get_id () , Self :: Maybe (node) => node . get_id () , Self :: Object (node) => node . get_id () , Self :: String (node) => node . get_id () , Self :: Struct (node) => node . get_id () , Self :: Typeref (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Array (node) => node . get_parent_id () , Self :: Bool (node) => node . get_parent_id () , Self :: Dict (node) => node . get_parent_id () , Self :: Enum (node) => node . get_parent_id () , Self :: Float (node) => node . get_parent_id () , Self :: Int (node) => node . get_parent_id () , Self :: Maybe (node) => node . get_parent_id () , Self :: Object (node) => node . get_parent_id () , Self :: String (node) => node . get_parent_id () , Self :: Struct (node) => node . get_parent_id () , Self :: Typeref (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Array (node) => node . get_range () , Self :: Bool (node) => node . get_range () , Self :: Dict (node) => node . get_range () , Self :: Enum (node) => node . get_range () , Self :: Float (node) => node . get_range () , Self :: Int (node) => node . get_range () , Self :: Maybe (node) => node . get_range () , Self :: Object (node) => node . get_range () , Self :: String (node) => node . get_range () , Self :: Struct (node) => node . get_range () , Self :: Typeref (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 37u16 => Ok (Self :: Array (Array :: try_from ((node , db , builder , id , parent_id)) ?)) , 16u16 => Ok (Self :: Bool (Bool :: try_from ((node , db , builder , id , parent_id)) ?)) , 38u16 => Ok (Self :: Dict (Dict :: try_from ((node , db , builder , id , parent_id)) ?)) , 33u16 => Ok (Self :: Enum (Enum :: try_from ((node , db , builder , id , parent_id)) ?)) , 18u16 => Ok (Self :: Float (Float :: try_from ((node , db , builder , id , parent_id)) ?)) , 17u16 => Ok (Self :: Int (Int :: try_from ((node , db , builder , id , parent_id)) ?)) , 35u16 => Ok (Self :: Maybe (Maybe :: try_from ((node , db , builder , id , parent_id)) ?)) , 20u16 => Ok (Self :: Object (Object :: try_from ((node , db , builder , id , parent_id)) ?)) , 19u16 => Ok (Self :: String (String :: try_from ((node , db , builder , id , parent_id)) ?)) , 31u16 => Ok (Self :: Struct (Struct :: try_from ((node , db , builder , id , parent_id)) ?)) , 39u16 => Ok (Self :: Typeref (Typeref :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Enum_Struct { Enum (Enum) , Struct (Struct) } impl auto_lsp :: core :: ast :: AstNode for Enum_Struct { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 33u16 | 31u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Enum (node) => node . lower () , Self :: Struct (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Enum (node) => node . get_id () , Self :: Struct (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Enum (node) => node . get_parent_id () , Self :: Struct (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Enum (node) => node . get_range () , Self :: Struct (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Enum_Struct { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 33u16 => Ok (Self :: Enum (Enum :: try_from ((node , db , builder , id , parent_id)) ?)) , 31u16 => Ok (Self :: Struct (Struct :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Enum_Struct) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Comment_Eol { Comment (Comment) , Eol (Eol) } impl auto_lsp :: core :: ast :: AstNode for Comment_Eol { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16 | 3u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Comment (node) => node . lower () , Self :: Eol (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Comment (node) => node . get_id () , Self :: Eol (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Comment (node) => node . get_parent_id () , Self :: Eol (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Comment (node) => node . get_range () , Self :: Eol (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment_Eol { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 2u16 => Ok (Self :: Comment (Comment :: try_from ((node , db , builder , id , parent_id)) ?)) , 3u16 => Ok (Self :: Eol (Eol :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Comment_Eol) , }) } } }
[INFO] [stdout]  1 + # ! [allow (clippy :: all)] # ! [allow (unused)] # ! [allow (dead_code)] # ! [allow (non_camel_case_types)] # ! [allow (non_snake_case)] # [derive (Debug , Clone , PartialEq)] pub struct Array { pub Type : auto_lsp :: core :: ast :: AstNodeId < Type > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Array { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 37u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Array { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut Type = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Type , 10u16 > (& mut Type) }) ; Ok (Self { Type : Type ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Type) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Dict { pub Type : auto_lsp :: core :: ast :: AstNodeId < Type > , pub children : auto_lsp :: core :: ast :: AstNodeId < String > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Dict { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 38u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Dict { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut Type = Ok (None) ; ; let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Type , 10u16 > (& mut Type) ? . on_children_id (& mut children) }) ; Ok (Self { Type : Type ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Type) , } }) ? , children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (String) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Enum { pub member : Vec < auto_lsp :: core :: ast :: AstNodeId < FieldName >> , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Enum { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 33u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Enum { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut member = vec ! [] ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_vec_field_id :: < FieldName , 6u16 > (& mut member) ? . on_vec_children_id (& mut children) }) ; Ok (Self { member , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Error { pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordError > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub value : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Error { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 29u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Error { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut keyword = Ok (None) ; ; let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < KeywordError , 5u16 > (& mut keyword) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_field_id :: < Struct , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Interface { pub declaration : auto_lsp :: core :: ast :: AstNodeId < InterfaceDeclaration > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol_Error_Method_Typedef >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Interface { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 24u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Interface { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut declaration = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < InterfaceDeclaration , 2u16 > (& mut declaration) ? . on_vec_children_id (& mut children) }) ; Ok (Self { declaration : declaration ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (declaration) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct InterfaceDeclaration { pub name : auto_lsp :: core :: ast :: AstNodeId < InterfaceName > , pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordInterface > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for InterfaceDeclaration { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 27u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for InterfaceDeclaration { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut name = Ok (None) ; ; let mut keyword = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < InterfaceName , 7u16 > (& mut name) ? . on_field_id :: < KeywordInterface , 5u16 > (& mut keyword) ? . on_vec_children_id (& mut children) }) ; Ok (Self { name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Maybe { pub questionmark : auto_lsp :: core :: ast :: AstNodeId < Questionmark > , pub just : auto_lsp :: core :: ast :: AstNodeId < Type > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Maybe { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 35u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Maybe { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut questionmark = Ok (None) ; ; let mut just = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Questionmark , 9u16 > (& mut questionmark) ? . on_field_id :: < Type , 4u16 > (& mut just) }) ; Ok (Self { questionmark : questionmark ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (questionmark) , } }) ? , just : just ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (just) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Method { pub input : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub output : auto_lsp :: core :: ast :: AstNodeId < Struct > , pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordMethod > , pub arrow : auto_lsp :: core :: ast :: AstNodeId < Arrow > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Method { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 30u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Method { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut input = Ok (None) ; ; let mut output = Ok (None) ; ; let mut keyword = Ok (None) ; ; let mut arrow = Ok (None) ; ; let mut name = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < Struct , 3u16 > (& mut input) ? . on_field_id :: < Struct , 8u16 > (& mut output) ? . on_field_id :: < KeywordMethod , 5u16 > (& mut keyword) ? . on_field_id :: < Arrow , 1u16 > (& mut arrow) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_vec_children_id (& mut children) }) ; Ok (Self { input : input ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (input) , } }) ? , output : output ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (output) , } }) ? , keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , arrow : arrow ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (arrow) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Struct { pub member : Vec < auto_lsp :: core :: ast :: AstNodeId < StructField >> , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Struct { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 31u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Struct { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut member = vec ! [] ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_vec_field_id :: < StructField , 6u16 > (& mut member) ? . on_vec_children_id (& mut children) }) ; Ok (Self { member , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct StructField { pub name : auto_lsp :: core :: ast :: AstNodeId < FieldName > , pub value : auto_lsp :: core :: ast :: AstNodeId < Type > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for StructField { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 32u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for StructField { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < FieldName , 7u16 > (& mut name) ? . on_field_id :: < Type , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Type { pub children : auto_lsp :: core :: ast :: AstNodeId < Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Type { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 34u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Type { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_children_id (& mut children) }) ; Ok (Self { children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Typedef { pub keyword : auto_lsp :: core :: ast :: AstNodeId < KeywordType > , pub name : auto_lsp :: core :: ast :: AstNodeId < Name > , pub value : auto_lsp :: core :: ast :: AstNodeId < Enum_Struct > , pub children : Vec < auto_lsp :: core :: ast :: AstNodeId < Comment_Eol >> , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Typedef { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 28u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Typedef { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut keyword = Ok (None) ; ; let mut name = Ok (None) ; ; let mut value = Ok (None) ; ; let mut children = vec ! [] ; ; builder . builder (db , & node , Some (id) , | b | { b . on_field_id :: < KeywordType , 5u16 > (& mut keyword) ? . on_field_id :: < Name , 7u16 > (& mut name) ? . on_field_id :: < Enum_Struct , 11u16 > (& mut value) ? . on_vec_children_id (& mut children) }) ; Ok (Self { keyword : keyword ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (keyword) , } }) ? , name : name ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (name) , } }) ? , value : value ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (value) , } }) ? , children , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Typeref { pub children : auto_lsp :: core :: ast :: AstNode < Name > , _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > } impl auto_lsp :: core :: ast :: AstNode for Typeref { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 39u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Typeref { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { let mut children = Ok (None) ; ; builder . builder (db , & node , Some (id) , | b | { b . on_children_id (& mut children) }) ; Ok (Self { children : children ? . ok_or_else (|| { auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Name) , } }) ? , _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_LeftParen { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_LeftParen { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 9u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_LeftParen { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_RightParen { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_RightParen { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 11u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_RightParen { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_Comma { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_Comma { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 10u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_Comma { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_Colon { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_Colon { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 12u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_Colon { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_LeftBracket { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_LeftBracket { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 14u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_LeftBracket { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Token_RightBracket { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Token_RightBracket { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 15u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Token_RightBracket { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Arrow { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Arrow { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 8u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Arrow { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Bool { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Bool { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 16u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Bool { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Comment { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Comment { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Eol { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Eol { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 3u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Eol { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct FieldName { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for FieldName { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 22u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for FieldName { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Float { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Float { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 18u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Float { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Int { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Int { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 17u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Int { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct InterfaceName { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for InterfaceName { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 23u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for InterfaceName { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordError { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordError { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 6u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordError { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordInterface { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordInterface { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 4u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordInterface { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordMethod { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordMethod { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 7u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordMethod { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct KeywordType { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for KeywordType { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 5u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for KeywordType { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Name { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Name { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 21u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Name { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Object { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Object { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 20u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Object { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct Questionmark { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for Questionmark { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 13u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Questionmark { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub struct String { _range : auto_lsp :: tree_sitter :: Range , _id : usize , _parent : Option < usize > , } impl auto_lsp :: core :: ast :: AstNode for String { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 19u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { self } fn get_id (& self) -> usize { self . _id } fn get_parent_id (& self) -> Option < usize > { self . _parent } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { & self . _range } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for String { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { ; Ok (Self { _range : node . range () , _id : id , _parent : parent_id }) } } # [derive (Debug , Clone , PartialEq)] pub enum Comment_Eol_Error_Method_Typedef { Comment (Comment) , Eol (Eol) , Error (Error) , Method (Method) , Typedef (Typedef) } impl auto_lsp :: core :: ast :: AstNode for Comment_Eol_Error_Method_Typedef { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16 | 3u16 | 29u16 | 30u16 | 28u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Comment (node) => node . lower () , Self :: Eol (node) => node . lower () , Self :: Error (node) => node . lower () , Self :: Method (node) => node . lower () , Self :: Typedef (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Comment (node) => node . get_id () , Self :: Eol (node) => node . get_id () , Self :: Error (node) => node . get_id () , Self :: Method (node) => node . get_id () , Self :: Typedef (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Comment (node) => node . get_parent_id () , Self :: Eol (node) => node . get_parent_id () , Self :: Error (node) => node . get_parent_id () , Self :: Method (node) => node . get_parent_id () , Self :: Typedef (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Comment (node) => node . get_range () , Self :: Eol (node) => node . get_range () , Self :: Error (node) => node . get_range () , Self :: Method (node) => node . get_range () , Self :: Typedef (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment_Eol_Error_Method_Typedef { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 2u16 => Ok (Self :: Comment (Comment :: try_from ((node , db , builder , id , parent_id)) ?)) , 3u16 => Ok (Self :: Eol (Eol :: try_from ((node , db , builder , id , parent_id)) ?)) , 29u16 => Ok (Self :: Error (Error :: try_from ((node , db , builder , id , parent_id)) ?)) , 30u16 => Ok (Self :: Method (Method :: try_from ((node , db , builder , id , parent_id)) ?)) , 28u16 => Ok (Self :: Typedef (Typedef :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Comment_Eol_Error_Method_Typedef) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { Array (Array) , Bool (Bool) , Dict (Dict) , Enum (Enum) , Float (Float) , Int (Int) , Maybe (Maybe) , Object (Object) , String (String) , Struct (Struct) , Typeref (Typeref) } impl auto_lsp :: core :: ast :: AstNode for Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 37u16 | 16u16 | 38u16 | 33u16 | 18u16 | 17u16 | 35u16 | 20u16 | 19u16 | 31u16 | 39u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Array (node) => node . lower () , Self :: Bool (node) => node . lower () , Self :: Dict (node) => node . lower () , Self :: Enum (node) => node . lower () , Self :: Float (node) => node . lower () , Self :: Int (node) => node . lower () , Self :: Maybe (node) => node . lower () , Self :: Object (node) => node . lower () , Self :: String (node) => node . lower () , Self :: Struct (node) => node . lower () , Self :: Typeref (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Array (node) => node . get_id () , Self :: Bool (node) => node . get_id () , Self :: Dict (node) => node . get_id () , Self :: Enum (node) => node . get_id () , Self :: Float (node) => node . get_id () , Self :: Int (node) => node . get_id () , Self :: Maybe (node) => node . get_id () , Self :: Object (node) => node . get_id () , Self :: String (node) => node . get_id () , Self :: Struct (node) => node . get_id () , Self :: Typeref (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Array (node) => node . get_parent_id () , Self :: Bool (node) => node . get_parent_id () , Self :: Dict (node) => node . get_parent_id () , Self :: Enum (node) => node . get_parent_id () , Self :: Float (node) => node . get_parent_id () , Self :: Int (node) => node . get_parent_id () , Self :: Maybe (node) => node . get_parent_id () , Self :: Object (node) => node . get_parent_id () , Self :: String (node) => node . get_parent_id () , Self :: Struct (node) => node . get_parent_id () , Self :: Typeref (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Array (node) => node . get_range () , Self :: Bool (node) => node . get_range () , Self :: Dict (node) => node . get_range () , Self :: Enum (node) => node . get_range () , Self :: Float (node) => node . get_range () , Self :: Int (node) => node . get_range () , Self :: Maybe (node) => node . get_range () , Self :: Object (node) => node . get_range () , Self :: String (node) => node . get_range () , Self :: Struct (node) => node . get_range () , Self :: Typeref (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 37u16 => Ok (Self :: Array (Array :: try_from ((node , db , builder , id , parent_id)) ?)) , 16u16 => Ok (Self :: Bool (Bool :: try_from ((node , db , builder , id , parent_id)) ?)) , 38u16 => Ok (Self :: Dict (Dict :: try_from ((node , db , builder , id , parent_id)) ?)) , 33u16 => Ok (Self :: Enum (Enum :: try_from ((node , db , builder , id , parent_id)) ?)) , 18u16 => Ok (Self :: Float (Float :: try_from ((node , db , builder , id , parent_id)) ?)) , 17u16 => Ok (Self :: Int (Int :: try_from ((node , db , builder , id , parent_id)) ?)) , 35u16 => Ok (Self :: Maybe (Maybe :: try_from ((node , db , builder , id , parent_id)) ?)) , 20u16 => Ok (Self :: Object (Object :: try_from ((node , db , builder , id , parent_id)) ?)) , 19u16 => Ok (Self :: String (String :: try_from ((node , db , builder , id , parent_id)) ?)) , 31u16 => Ok (Self :: Struct (Struct :: try_from ((node , db , builder , id , parent_id)) ?)) , 39u16 => Ok (Self :: Typeref (Typeref :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Array_Bool_Dict_Enum_Float_Int_Maybe_Object_String_Struct_Typeref) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Enum_Struct { Enum (Enum) , Struct (Struct) } impl auto_lsp :: core :: ast :: AstNode for Enum_Struct { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 33u16 | 31u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Enum (node) => node . lower () , Self :: Struct (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Enum (node) => node . get_id () , Self :: Struct (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Enum (node) => node . get_parent_id () , Self :: Struct (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Enum (node) => node . get_range () , Self :: Struct (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Enum_Struct { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 33u16 => Ok (Self :: Enum (Enum :: try_from ((node , db , builder , id , parent_id)) ?)) , 31u16 => Ok (Self :: Struct (Struct :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Enum_Struct) , }) } } } # [derive (Debug , Clone , PartialEq)] pub enum Comment_Eol { Comment (Comment) , Eol (Eol) } impl auto_lsp :: core :: ast :: AstNode for Comment_Eol { fn contains (node : & auto_lsp :: tree_sitter :: Node) -> bool { matches ! (node . kind_id () , 2u16 | 3u16) } fn lower (& self) -> & dyn auto_lsp :: core :: ast :: AstNode { match self { Self :: Comment (node) => node . lower () , Self :: Eol (node) => node . lower () } } fn get_id (& self) -> usize { match self { Self :: Comment (node) => node . get_id () , Self :: Eol (node) => node . get_id () } } fn get_parent_id (& self) -> Option < usize > { match self { Self :: Comment (node) => node . get_parent_id () , Self :: Eol (node) => node . get_parent_id () } } fn get_range (& self) -> & auto_lsp :: tree_sitter :: Range { match self { Self :: Comment (node) => node . get_range () , Self :: Eol (node) => node . get_range () } } } impl < 'a > TryFrom < auto_lsp :: core :: ast :: TryFromParams < 'a >> for Comment_Eol { type Error = auto_lsp :: core :: errors :: AstError ; fn try_from ((node , db , builder , id , parent_id) : auto_lsp :: core :: ast :: TryFromParams) -> Result < Self , auto_lsp :: core :: errors :: AstError > { match node . kind_id () { 2u16 => Ok (Self :: Comment (Comment :: try_from ((node , db , builder , id , parent_id)) ?)) , 3u16 => Ok (Self :: Eol (Eol :: try_from ((node , db , builder , id , parent_id)) ?)) , _ => Err (auto_lsp :: core :: errors :: AstError :: UnexpectedSymbol { range : node . range () , symbol : node . kind () , parent_name : stringify ! (Comment_Eol) , }) } } }
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0432, E0433.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `varlink-language-server` (lib) due to 35 previous errors
[INFO] running `Command { std: "docker" "inspect" "5aa6bb0105bcecd6ea8954338b64145cfc84669b62a616881de880d976ccb8d0", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "5aa6bb0105bcecd6ea8954338b64145cfc84669b62a616881de880d976ccb8d0", kill_on_drop: false }`
[INFO] [stdout] 5aa6bb0105bcecd6ea8954338b64145cfc84669b62a616881de880d976ccb8d0
