commit | bd3febc4d13a926b4f67c84048148489a8354873 | [log] [tgz] |
---|---|---|
author | android-build-team Robot <[email protected]> | Thu Jun 03 01:07:14 2021 +0000 |
committer | android-build-team Robot <[email protected]> | Thu Jun 03 01:07:14 2021 +0000 |
tree | ea68852a3b48b436d538623fc285812553ae69b0 | |
parent | adfa7a49d21526e4495b37a3b72123744a19c084 [diff] | |
parent | 67ed95d5b402e8b2305fbd89d6a5891eeb3c6f7d [diff] |
Snap for 7418644 from 67ed95d5b402e8b2305fbd89d6a5891eeb3c6f7d to tm-d1-release Change-Id: I945d294e724862722a4fa3ab27a6c93b22c15b0b
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.