Debian Codegraph @

src/lib.rs

raw symbols SCIP
1 // Copyright (c) Meta Platforms, Inc. and affiliates.
2 //
3 // This source code is licensed under the MIT license found in the
4 // LICENSE file in the root directory of this source tree
5
6 mod inflaterust-analyzer cargo libcst_derive 1.8.6 inflate/;
7 use inflaterust-analyzer cargo libcst_derive 1.8.6 inflate/::impl_inflaterust-analyzer cargo libcst_derive 1.8.6 inflate/impl_inflate().;
8 mod parenthesized_noderust-analyzer cargo libcst_derive 1.8.6 parenthesized_node/;
9 use parenthesized_noderust-analyzer cargo libcst_derive 1.8.6 parenthesized_node/::impl_parenthesized_noderust-analyzer cargo libcst_derive 1.8.6 parenthesized_node/impl_parenthesized_node().;
10 mod codegenrust-analyzer cargo libcst_derive 1.8.6 codegen/;
11 use codegenrust-analyzer cargo libcst_derive 1.8.6 codegen/::impl_codegenrust-analyzer cargo libcst_derive 1.8.6 codegen/impl_codegen().;
12 mod into_pyrust-analyzer cargo libcst_derive 1.8.6 into_py/;
13 use into_pyrust-analyzer cargo libcst_derive 1.8.6 into_py/::impl_into_pyrust-analyzer cargo libcst_derive 1.8.6 into_py/impl_into_py().;
14 mod cstnoderust-analyzer cargo libcst_derive 1.8.6 cstnode/;
15 use cstnoderust-analyzer cargo libcst_derive 1.8.6 cstnode/::{impl_cst_noderust-analyzer cargo libcst_derive 1.8.6 cstnode/impl_cst_node()., CSTNodeParamsrust-analyzer cargo libcst_derive 1.8.6 cstnode/CSTNodeParams#};
16
17 use proc_macrorust-analyzer cargo proc_macro https://github.com/rust-lang/rust/library/proc_macro crate/::TokenStreamrust-analyzer cargo proc_macro https://github.com/rust-lang/rust/library/proc_macro TokenStream#;
18 use synrust-analyzer cargo syn 2.0.101 crate/::{parse_macro_inputrust-analyzer cargo syn 2.0.101 parse_macro_input/, DeriveInputrust-analyzer cargo syn 2.0.101 derive/DeriveInput#};
19
20 #[proc_macro_derive(Inflate)]
21 pub fn inflate_deriverust-analyzer cargo libcst_derive 1.8.6 Inflate:(input: TokenStreamrust-analyzer cargo proc_macro https://github.com/rust-lang/rust/library/proc_macro TokenStream#) -> TokenStreamrust-analyzer cargo proc_macro https://github.com/rust-lang/rust/library/proc_macro TokenStream# {
22 let ast = synrust-analyzer cargo syn 2.0.101 crate/::parserust-analyzer cargo syn 2.0.101 parse().(input).unwraprust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`]unwrap().();
23 impl_inflaterust-analyzer cargo libcst_derive 1.8.6 inflate/impl_inflate().(&ast)
24 }
25
26 #[proc_macro_derive(ParenthesizedNode)]
27 pub fn parenthesized_node_deriverust-analyzer cargo libcst_derive 1.8.6 ParenthesizedNode:(input: TokenStreamrust-analyzer cargo proc_macro https://github.com/rust-lang/rust/library/proc_macro TokenStream#) -> TokenStreamrust-analyzer cargo proc_macro https://github.com/rust-lang/rust/library/proc_macro TokenStream# {
28 impl_parenthesized_noderust-analyzer cargo libcst_derive 1.8.6 parenthesized_node/impl_parenthesized_node().(&synrust-analyzer cargo syn 2.0.101 crate/::parserust-analyzer cargo syn 2.0.101 parse().(input).unwraprust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`]unwrap().(), false)
29 }
30
31 #[proc_macro_derive(ParenthesizedDeflatedNode)]
32 pub fn parenthesized_deflated_node_deriverust-analyzer cargo libcst_derive 1.8.6 ParenthesizedDeflatedNode:(input: TokenStreamrust-analyzer cargo proc_macro https://github.com/rust-lang/rust/library/proc_macro TokenStream#) -> TokenStreamrust-analyzer cargo proc_macro https://github.com/rust-lang/rust/library/proc_macro TokenStream# {
33 impl_parenthesized_noderust-analyzer cargo libcst_derive 1.8.6 parenthesized_node/impl_parenthesized_node().(&synrust-analyzer cargo syn 2.0.101 crate/::parserust-analyzer cargo syn 2.0.101 parse().(input).unwraprust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`]unwrap().(), true)
34 }
35
36 #[proc_macro_derive(Codegen)]
37 pub fn codegen_deriverust-analyzer cargo libcst_derive 1.8.6 Codegen:(input: TokenStreamrust-analyzer cargo proc_macro https://github.com/rust-lang/rust/library/proc_macro TokenStream#) -> TokenStreamrust-analyzer cargo proc_macro https://github.com/rust-lang/rust/library/proc_macro TokenStream# {
38 impl_codegenrust-analyzer cargo libcst_derive 1.8.6 codegen/impl_codegen().(&synrust-analyzer cargo syn 2.0.101 crate/::parserust-analyzer cargo syn 2.0.101 parse().(input).unwraprust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`]unwrap().())
39 }
40
41 #[proc_macro_derive(TryIntoPy, attributes(skip_py, no_py_default))]
42 pub fn into_pyrust-analyzer cargo libcst_derive 1.8.6 TryIntoPy:(input: TokenStreamrust-analyzer cargo proc_macro https://github.com/rust-lang/rust/library/proc_macro TokenStream#) -> TokenStreamrust-analyzer cargo proc_macro https://github.com/rust-lang/rust/library/proc_macro TokenStream# {
43 impl_into_pyrust-analyzer cargo libcst_derive 1.8.6 into_py/impl_into_py().(&synrust-analyzer cargo syn 2.0.101 crate/::parserust-analyzer cargo syn 2.0.101 parse().(input).unwraprust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`]unwrap().())
44 }
45
46 #[proc_macro_attribute]
47 pub fn cst_noderust-analyzer cargo libcst_derive 1.8.6 cst_node:(args: TokenStreamrust-analyzer cargo proc_macro https://github.com/rust-lang/rust/library/proc_macro TokenStream#, input: TokenStreamrust-analyzer cargo proc_macro https://github.com/rust-lang/rust/library/proc_macro TokenStream#) -> TokenStreamrust-analyzer cargo proc_macro https://github.com/rust-lang/rust/library/proc_macro TokenStream# {
48 let args = parse_macro_inputrust-analyzer cargo syn 2.0.101 parse_macro_input/parse_macro_input!!(args as CSTNodeParamsrust-analyzer cargo libcst_derive 1.8.6 cstnode/CSTNodeParams#);
49 impl_cst_noderust-analyzer cargo libcst_derive 1.8.6 cstnode/impl_cst_node().(parse_macro_inputrust-analyzer cargo syn 2.0.101 parse_macro_input/parse_macro_input!!(input as DeriveInputrust-analyzer cargo syn 2.0.101 derive/DeriveInput#), args)
50 }