commit | 2bde94d36c3c0e2f20745b91b4d22e90ef85722c | [log] [tgz] |
---|---|---|
author | Xin Li <delphij@google.com> | Sat Feb 20 00:24:24 2021 -0800 |
committer | Xin Li <delphij@google.com> | Sat Feb 20 00:24:24 2021 -0800 |
tree | ea68852a3b48b436d538623fc285812553ae69b0 | |
parent | 2a064d257656d94aff6091f4691fbe687917633b [diff] | |
parent | a4b4f729f91c86d10e3adc22385eecb9d1267d25 [diff] |
Mark ab/7061308 as merged in stage. Bug: 180401296 Merged-In: I6f984c276bb3b129f1387df2bc3d331a5cd1f634 Change-Id: I3de43f0ddc82b06ab08d05a15457979ad6a47867
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.