| commit | 70d39e515051f275b42b94cfc74537a14acd7851 | [log] [tgz] |
|---|---|---|
| author | Android Build Coastguard Worker <[email protected]> | Tue Sep 10 23:13:02 2024 +0000 |
| committer | Android Build Coastguard Worker <[email protected]> | Tue Sep 10 23:13:02 2024 +0000 |
| tree | 5d3f85f4a2e30bbf859391200e4b87c5f69a5253 | |
| parent | 8fb25f4823123c1e37dacceb1034e1527b97150b [diff] | |
| parent | 7b22660c30e969f2a72197bb2f2ea1f9ce38361f [diff] |
Snap for 12349386 from 7b22660c30e969f2a72197bb2f2ea1f9ce38361f to sdk-release Change-Id: If0ad4d8314da861e1e832c91177d744f1c44fa47
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.