commit | b2f6f887228b3d6280de9126470f4a71c75d8741 | [log] [tgz] |
---|---|---|
author | android-build-team Robot <android-build-team-robot@google.com> | Wed Feb 17 03:17:06 2021 +0000 |
committer | android-build-team Robot <android-build-team-robot@google.com> | Wed Feb 17 03:17:06 2021 +0000 |
tree | ea68852a3b48b436d538623fc285812553ae69b0 | |
parent | 60d2ac42d29b45bbb2d661b9496e11484320c684 [diff] | |
parent | 3f8632710065934e1dc0d43e7ef06d27a2dde8a7 [diff] |
Snap for 7149879 from 3f8632710065934e1dc0d43e7ef06d27a2dde8a7 to sc-v2-release Change-Id: I843de2c8fa3fd5cd2d97eedb531baa9c52ae52d8
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.31+
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.