commit | 188a64169e5eb7de33283b75c6edf0eed7f2b7af | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <[email protected]> | Fri Nov 17 02:14:04 2023 +0000 |
committer | Android Build Coastguard Worker <[email protected]> | Fri Nov 17 02:14:04 2023 +0000 |
tree | b5292124981f207ffbb2a12b3a78d6e5a65c0d77 | |
parent | 129301cc8a06384523784f740016f0e251fe2fca [diff] | |
parent | af68bf99ca6c35f44c4ec225f7c5d37a20e2873b [diff] |
Snap for 11111752 from af68bf99ca6c35f44c4ec225f7c5d37a20e2873b to 24D1-release Change-Id: I7ced78dd7e55e26759f4ae3b3a00170d16f77b7b
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.