commit | 8276dd2d14a0b77528c181bd4fde3c96ad29bf57 | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <[email protected]> | Wed Jul 24 17:54:06 2024 +0000 |
committer | Android Build Coastguard Worker <[email protected]> | Wed Jul 24 17:54:06 2024 +0000 |
tree | d848186df1d5700888975a3f56ce3e1f3351a640 | |
parent | ab47365b58bea199c61f25cbef41bb5f2242b03a [diff] | |
parent | dd09380275b4c7adb04c7c9fb35456c256ebaad0 [diff] |
Snap for 12134224 from dd09380275b4c7adb04c7c9fb35456c256ebaad0 to simpleperf-release Change-Id: I84de37279669d36e40f8ed31d8587e607e1b56a3
Providing the features between “full” and “derive” of syn.
This crate provides the following two unique data structures.
syn_mid::ItemFn
-- A function whose body is not parsed.
fn process(n: usize) -> Result<()> { ... } ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^ ^
syn_mid::Block
-- A block whose body is not parsed.
{ ... } ^ ^
Other data structures are the same as data structures of syn. These are defined in this crate because they cannot be used in syn without “full” feature.
Add this to your Cargo.toml
:
[dependencies] syn-mid = "0.5"
Compiler support: requires rustc 1.56+
clone-impls
— Clone impls for all syntax tree types.Licensed under either of Apache License, Version 2.0 or MIT license at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.