commit | 4b7a0d81c2f73793db61a02ace367ca96af08e58 | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <[email protected]> | Wed Sep 11 23:30:25 2024 +0000 |
committer | Android Build Coastguard Worker <[email protected]> | Wed Sep 11 23:30:25 2024 +0000 |
tree | 5d3f85f4a2e30bbf859391200e4b87c5f69a5253 | |
parent | d7db97e3d9a26e70f4dd553b3d19c3a3d829bd1f [diff] | |
parent | 7b22660c30e969f2a72197bb2f2ea1f9ce38361f [diff] |
Snap for 12355814 from 7b22660c30e969f2a72197bb2f2ea1f9ce38361f to build-tools-release Change-Id: I78640bb12a3c7cc7b54f17e5c3d87584bd92e2fe
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.