commit | bfa0634c89fb16cdd161b205403b57de2509daea | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <[email protected]> | Sat Aug 31 01:15:17 2024 +0000 |
committer | Android Build Coastguard Worker <[email protected]> | Sat Aug 31 01:15:17 2024 +0000 |
tree | 5d3f85f4a2e30bbf859391200e4b87c5f69a5253 | |
parent | 9f8eaf58d04db9e42554e25812604643ea71f12f [diff] | |
parent | 4b9a567488bdd35bd6121ee01b9ff674ebea727b [diff] |
Snap for 12304452 from 4b9a567488bdd35bd6121ee01b9ff674ebea727b to 24Q4-release Change-Id: I91ef6bb114f821f22f076647a72716c2eb8d5bdf
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.