commit | 19c559f98ae17925f06dfa6f46776759e83f8bf5 | [log] [tgz] |
---|---|---|
author | android-build-team Robot <android-build-team-robot@google.com> | Thu Jun 03 03:05:47 2021 +0000 |
committer | android-build-team Robot <android-build-team-robot@google.com> | Thu Jun 03 03:05:47 2021 +0000 |
tree | ea68852a3b48b436d538623fc285812553ae69b0 | |
parent | 980a8ef61c3114a3f9fb24c8079069bc0de4d8f4 [diff] | |
parent | 67ed95d5b402e8b2305fbd89d6a5891eeb3c6f7d [diff] |
Snap for 7418644 from 67ed95d5b402e8b2305fbd89d6a5891eeb3c6f7d to tm-release Change-Id: Ic6d66fc611d2a891518d366891143d8cb73094da
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.