tag | 99971c63a6a58b87e5c08070633eaaa31c834b05 | |
---|---|---|
tagger | The Android Open Source Project <initial-contribution@android.com> | Tue Jan 30 14:48:20 2024 -0800 |
object | 696054768e7c325b69e3b3e1da787a312a0fd8a2 |
Platform Tools Release 34.0.5 (10900879)
commit | 696054768e7c325b69e3b3e1da787a312a0fd8a2 | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Wed Jun 28 13:34:23 2023 +0000 |
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Wed Jun 28 13:34:23 2023 +0000 |
tree | 9fbee739478ab8ee4dc64d2187be48e387832841 | |
parent | 8cb61a0db273573d60a0241dd0dc8a541550e7ef [diff] | |
parent | b6890e681693903b8b35ed53b763ca8f39b74edf [diff] |
Snap for 10399941 from b6890e681693903b8b35ed53b763ca8f39b74edf to sdk-release Change-Id: I7fade93c470f770849e225214eb7b1e67dfb40f7
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.