Home
last modified time | relevance | path

Searched defs:TokenStream (Results 1 – 25 of 356) sorted by relevance

12345678910>>...15

/third_party/rust/rust/tests/ui/proc-macro/auxiliary/
Dtest-macros.rs15 pub fn empty(_: TokenStream) -> TokenStream { in empty()
20 pub fn empty_attr(_: TokenStream, _: TokenStream) -> TokenStream { in empty_attr()
25 pub fn empty_derive(_: TokenStream) -> TokenStream { in empty_derive()
32 pub fn panic_bang(_: TokenStream) -> TokenStream { in panic_bang()
37 pub fn panic_attr(_: TokenStream, _: TokenStream) -> TokenStream { in panic_attr()
42 pub fn panic_derive(_: TokenStream) -> TokenStream { in panic_derive()
49 pub fn identity(input: TokenStream) -> TokenStream { in identity()
54 pub fn identity_attr(_: TokenStream, input: TokenStream) -> TokenStream { in identity_attr()
59 pub fn identity_derive(input: TokenStream) -> TokenStream { in identity_derive()
66 pub fn recollect(input: TokenStream) -> TokenStream { in recollect()
[all …]
Dattr-stmt-expr.rs11 pub fn expect_let(attr: TokenStream, item: TokenStream) -> TokenStream { in expect_let()
18 pub fn expect_my_macro_stmt(attr: TokenStream, item: TokenStream) -> TokenStream { in expect_my_macro_stmt()
25 pub fn expect_expr(attr: TokenStream, item: TokenStream) -> TokenStream { in expect_expr()
32 pub fn expect_my_macro_expr(attr: TokenStream, item: TokenStream) -> TokenStream { in expect_my_macro_expr()
39 pub fn duplicate(attr: TokenStream, item: TokenStream) -> TokenStream { in duplicate()
45 pub fn no_output(attr: TokenStream, item: TokenStream) -> TokenStream { in no_output()
Dattr-stmt-expr-rpass.rs11 pub fn expect_let(attr: TokenStream, item: TokenStream) -> TokenStream { in expect_let()
18 pub fn expect_print_stmt(attr: TokenStream, item: TokenStream) -> TokenStream { in expect_print_stmt()
25 pub fn expect_expr(attr: TokenStream, item: TokenStream) -> TokenStream { in expect_expr()
32 pub fn expect_print_expr(attr: TokenStream, item: TokenStream) -> TokenStream { in expect_print_expr()
39 pub fn no_output(attr: TokenStream, item: TokenStream) -> TokenStream { in no_output()
47 pub fn noop(attr: TokenStream, item: TokenStream) -> TokenStream { in noop()
Dbuiltin-attrs.rs10 pub fn feature(_: TokenStream, input: TokenStream) -> TokenStream { in feature()
15 pub fn repr(_: TokenStream, input: TokenStream) -> TokenStream { in repr()
20 pub fn test(_: TokenStream, input: TokenStream) -> TokenStream { in test()
25 pub fn bench(_: TokenStream, input: TokenStream) -> TokenStream { in bench()
Dgenerate-mod.rs12 pub fn check(_: TokenStream) -> TokenStream { in check()
24 pub fn check_attr(_: TokenStream, _: TokenStream) -> TokenStream { in check_attr()
36 pub fn check_derive(_: TokenStream) -> TokenStream { in check_derive()
48 pub fn check_derive_lint(_: TokenStream) -> TokenStream { in check_derive_lint()
Dmodify-ast.rs11 pub fn assert1(_a: TokenStream, b: TokenStream) -> TokenStream { in assert1()
17 pub fn assert2(a: TokenStream) -> TokenStream { in assert2()
22 fn assert_eq(a: TokenStream, b: TokenStream) { in assert_eq()
Dspan-from-proc-macro.rs22 pub fn error_from_bang(_input: TokenStream) -> TokenStream { in error_from_bang()
27 pub fn other_error_from_bang(_input: TokenStream) -> TokenStream { in other_error_from_bang()
34 pub fn error_from_attribute(_args: TokenStream, _input: TokenStream) -> TokenStream { in error_from_attribute()
43 pub fn error_from_derive(_input: TokenStream) -> TokenStream { in error_from_derive()
Dweird-hygiene.rs10 fn find_my_ident(tokens: TokenStream) -> Option<TokenStream> { in find_my_ident()
27 pub fn weird_derive(item: TokenStream) -> TokenStream { in weird_derive()
41 pub fn recollect(item: TokenStream) -> TokenStream { in recollect()
46 pub fn recollect_attr(_attr: TokenStream, mut item: TokenStream) -> TokenStream { in recollect_attr()
Dexpand-expr.rs27 fn assert_ts_eq(lhs: &TokenStream, rhs: &TokenStream) { in assert_ts_eq()
80 pub fn expand_expr_is(input: TokenStream) -> TokenStream { in expand_expr_is()
124 pub fn expand_expr_fail(input: TokenStream) -> TokenStream { in expand_expr_fail()
132 pub fn check_expand_expr_file(ts: TokenStream) -> TokenStream { in check_expand_expr_file()
152 pub fn recursive_expand(_: TokenStream) -> TokenStream { in recursive_expand()
164 pub fn echo_pm(input: TokenStream) -> TokenStream { in echo_pm()
/third_party/rust/rust/tests/ui/proc-macro/
Dattribute.rs10 pub fn foo1(input: TokenStream) -> TokenStream { input } in foo1()
13 pub fn foo2(input: TokenStream) -> TokenStream { input } in foo2()
17 pub fn foo3(input: TokenStream) -> TokenStream { input } in foo3()
21 pub fn foo4(input: TokenStream) -> TokenStream { input } in foo4()
25 pub fn foo5(input: TokenStream) -> TokenStream { input } in foo5()
29 pub fn foo6(input: TokenStream) -> TokenStream { input } in foo6()
33 pub fn foo7(input: TokenStream) -> TokenStream { input } in foo7()
37 pub fn foo8(input: TokenStream) -> TokenStream { input } in foo8()
41 pub fn foo9(input: TokenStream) -> TokenStream { input } in foo9()
44 pub fn foo10(input: TokenStream) -> TokenStream { input } in foo10()
[all …]
Dinvalid-attributes.rs11 pub fn a(a: TokenStream) -> TokenStream { a } in a() function
14 pub fn c(a: TokenStream) -> TokenStream { a } in c()
17 pub fn d(a: TokenStream) -> TokenStream { a } in d()
20 pub fn e(_: TokenStream, a: TokenStream) -> TokenStream { a } in e()
23 pub fn g(_: TokenStream, a: TokenStream) -> TokenStream { a } in g()
26 pub fn h(_: TokenStream, a: TokenStream) -> TokenStream { a } in h()
Dmacro-namespace-reserved.rs11 pub fn my_macro(input: TokenStream) -> TokenStream { in my_macro()
16 pub fn my_macro_attr(input: TokenStream, _: TokenStream) -> TokenStream { in my_macro_attr()
21 pub fn my_macro_derive(input: TokenStream) -> TokenStream { in my_macro_derive()
30 pub fn foo(input: TokenStream) -> TokenStream { in foo()
35 pub fn SameName(input: TokenStream) -> TokenStream { in SameName()
/third_party/rust/rust/src/tools/rust-analyzer/crates/proc-macro-test/imp/src/
Dlib.rs8 pub fn fn_like_noop(args: TokenStream) -> TokenStream { in fn_like_noop()
13 pub fn fn_like_panic(args: TokenStream) -> TokenStream { in fn_like_panic()
18 pub fn fn_like_error(args: TokenStream) -> TokenStream { in fn_like_error()
23 pub fn fn_like_clone_tokens(args: TokenStream) -> TokenStream { in fn_like_clone_tokens()
28 pub fn fn_like_mk_literals(_args: TokenStream) -> TokenStream { in fn_like_mk_literals()
44 pub fn fn_like_mk_idents(_args: TokenStream) -> TokenStream { in fn_like_mk_idents()
53 pub fn attr_noop(_args: TokenStream, item: TokenStream) -> TokenStream { in attr_noop()
58 pub fn attr_panic(args: TokenStream, item: TokenStream) -> TokenStream { in attr_panic()
63 pub fn attr_error(args: TokenStream, item: TokenStream) -> TokenStream { in attr_error()
68 pub fn derive_empty(_item: TokenStream) -> TokenStream { in derive_empty()
[all …]
/third_party/rust/crates/proc-macro-error/test-crate/
Dlib.rs17 pub fn abort_from(input: proc_macro::TokenStream) -> proc_macro::TokenStream { in abort_from()
27 pub fn abort_to_string(input: proc_macro::TokenStream) -> proc_macro::TokenStream { in abort_to_string()
34 pub fn abort_format(input: proc_macro::TokenStream) -> proc_macro::TokenStream { in abort_format()
41 pub fn abort_call_site_test(_: proc_macro::TokenStream) -> proc_macro::TokenStream { in abort_call_site_test()
47 pub fn direct_abort(input: proc_macro::TokenStream) -> proc_macro::TokenStream { in direct_abort()
54 pub fn emit(input: proc_macro::TokenStream) -> proc_macro::TokenStream { in emit()
86 pub fn abort_notes(input: proc_macro::TokenStream) -> proc_macro::TokenStream { in abort_notes()
116 pub fn emit_notes(input: proc_macro::TokenStream) -> proc_macro::TokenStream { in emit_notes()
148 pub fn option_ext(_input: proc_macro::TokenStream) -> proc_macro::TokenStream { in option_ext()
156 pub fn result_unwrap_or_abort(input: proc_macro::TokenStream) -> proc_macro::TokenStream { in result_unwrap_or_abort()
[all …]
/third_party/rust/crates/quote/src/
Dto_tokens.rs54 fn to_tokens(&self, tokens: &mut TokenStream); in to_tokens()
60 fn to_token_stream(&self) -> TokenStream { in to_token_stream()
79 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens()
85 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens()
91 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens()
97 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens()
103 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens()
109 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens()
117 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens()
123 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens()
[all …]
/third_party/rust/rust/tests/rustdoc/intra-doc/auxiliary/
Dproc-macro-macro.rs12 pub fn a_derive(input: TokenStream) -> TokenStream { in a_derive()
17 pub fn b_derive(input: TokenStream) -> TokenStream { in b_derive()
22 pub fn trait_derive(input: TokenStream) -> TokenStream { in trait_derive()
27 pub fn attr_a(input: TokenStream, _args: TokenStream) -> TokenStream { in attr_a()
32 pub fn attr_b(input: TokenStream, _args: TokenStream) -> TokenStream { in attr_b()
/third_party/rust/rust/tests/ui/macros/auxiliary/
Dproc_macro_def.rs12 pub fn attr_tru(_attr: TokenStream, item: TokenStream) -> TokenStream { in attr_tru()
18 pub fn attr_identity(_attr: TokenStream, item: TokenStream) -> TokenStream { in attr_identity()
23 pub fn tru(_ts: TokenStream) -> TokenStream { in tru()
28 pub fn ret_tru(_ts: TokenStream) -> TokenStream { in ret_tru()
33 pub fn identity(ts: TokenStream) -> TokenStream { in identity()
/third_party/rust/rust/src/tools/rustfmt/config_proc_macro/src/
Dlib.rs17 pub fn config_type(_args: TokenStream, input: TokenStream) -> TokenStream { in config_type()
41 pub fn nightly_only_test(_args: TokenStream, input: TokenStream) -> TokenStream { in nightly_only_test()
63 pub fn stable_only_test(_args: TokenStream, input: TokenStream) -> TokenStream { in stable_only_test()
76 pub fn rustfmt_only_ci_test(_args: TokenStream, input: TokenStream) -> TokenStream { in rustfmt_only_ci_test()
/third_party/rust/rust/src/tools/rust-analyzer/crates/proc-macro-srv/src/server/
Dtoken_stream.rs6 pub struct TokenStream { struct
10 impl TokenStream { argument
33 impl From<TokenTree> for TokenStream { implementation
34 fn from(tree: TokenTree) -> TokenStream { in from()
40 impl FromIterator<TokenTree> for TokenStream { implementation
48 impl FromIterator<TokenStream> for TokenStream { implementation
56 impl Extend<TokenTree> for TokenStream { implementation
62 impl Extend<TokenStream> for TokenStream { implementation
94 impl IntoIterator for TokenStream { implementation
112 impl FromStr for TokenStream { implementation
[all …]
/third_party/rust/rust/tests/ui/fmt/auxiliary/
Dformat-string-proc-macro.rs12 pub fn foo_with_input_span(input: TokenStream) -> TokenStream { in foo_with_input_span()
22 pub fn err_with_input_span(input: TokenStream) -> TokenStream { in err_with_input_span()
31 fn build_format(args: impl Into<TokenStream>) -> TokenStream { in build_format()
40 pub fn respan_to_invalid_format_literal(input: TokenStream) -> TokenStream { in respan_to_invalid_format_literal()
48 pub fn capture_a_with_prepended_space_preserve_span(input: TokenStream) -> TokenStream { in capture_a_with_prepended_space_preserve_span()
56 pub fn format_args_captures(_: TokenStream) -> TokenStream { in format_args_captures()
61 pub fn bad_format_args_captures(_: TokenStream) -> TokenStream { in bad_format_args_captures()
66 pub fn identity_pm(input: TokenStream) -> TokenStream { in identity_pm()
/third_party/rust/rust/src/tools/clippy/tests/ui/auxiliary/
Dproc_macro_derive.rs11 pub fn derive(_: TokenStream) -> TokenStream { in derive()
25 pub fn derive_foo(_input: TokenStream) -> TokenStream { in derive_foo()
42 pub fn derive_use_self(_input: TokenStream) -> proc_macro::TokenStream { in derive_use_self()
54 pub fn mini_macro(_: TokenStream) -> TokenStream { in mini_macro()
74 pub fn extra_lifetime(_input: TokenStream) -> TokenStream { in extra_lifetime()
88 pub fn arithmetic_derive(_: TokenStream) -> TokenStream { in arithmetic_derive()
121 pub fn shadow_derive(_: TokenStream) -> TokenStream { in shadow_derive()
/third_party/rust/crates/cxx/syntax/
Dtokens.rs11 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens()
43 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens()
60 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens()
88 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens()
113 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens()
129 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens()
148 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens()
165 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens()
171 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens()
177 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens()
[all …]
/third_party/rust/rust/compiler/rustc_macros/src/
Dserialize.rs6 pub fn type_decodable_derive(mut s: synstructure::Structure<'_>) -> proc_macro2::TokenStream { in type_decodable_derive()
17 pub fn meta_decodable_derive(mut s: synstructure::Structure<'_>) -> proc_macro2::TokenStream { in meta_decodable_derive()
28 pub fn decodable_derive(mut s: synstructure::Structure<'_>) -> proc_macro2::TokenStream { in decodable_derive()
38 decoder_ty: TokenStream, in decodable_body()
39 ) -> proc_macro2::TokenStream { in decodable_body()
85 fn decode_field(field: &syn::Field) -> proc_macro2::TokenStream { in decode_field()
99 pub fn type_encodable_derive(mut s: synstructure::Structure<'_>) -> proc_macro2::TokenStream { in type_encodable_derive()
110 pub fn meta_encodable_derive(mut s: synstructure::Structure<'_>) -> proc_macro2::TokenStream { in meta_encodable_derive()
121 pub fn encodable_derive(mut s: synstructure::Structure<'_>) -> proc_macro2::TokenStream { in encodable_derive()
131 encoder_ty: TokenStream, in encodable_body()
[all …]
/third_party/rust/rust/tests/rustdoc/inline_cross/auxiliary/
Dproc_macro.rs27 pub fn some_proc_macro(_input: TokenStream) -> TokenStream { in some_proc_macro()
33 pub fn some_proc_attr(_attr: TokenStream, item: TokenStream) -> TokenStream { in some_proc_attr()
39 pub fn some_derive(_item: TokenStream) -> TokenStream { in some_derive()
45 pub fn reexported_macro(_input: TokenStream) -> TokenStream { in reexported_macro()
/third_party/rust/crates/clap/clap_derive/src/
Ddummies.rs7 pub fn parser(name: &Ident) -> proc_macro2::TokenStream { in parser()
16 pub fn into_app(name: &Ident) -> proc_macro2::TokenStream { in into_app()
30 pub fn from_arg_matches(name: &Ident) -> proc_macro2::TokenStream { in from_arg_matches()
44 pub fn subcommand(name: &Ident) -> proc_macro2::TokenStream { in subcommand()
63 pub fn args(name: &Ident) -> proc_macro2::TokenStream { in args()
79 pub fn value_enum(name: &Ident) -> proc_macro2::TokenStream { in value_enum()

12345678910>>...15