Home
last modified time | relevance | path

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

123456789

/external/rust/crates/tokio-macros/src/
Dlib.rs199 pub fn main(args: TokenStream, item: TokenStream) -> TokenStream { in main()
264 pub fn main_rt(args: TokenStream, item: TokenStream) -> TokenStream { in main_rt()
422 pub fn test(args: TokenStream, item: TokenStream) -> TokenStream { in test()
437 pub fn test_rt(args: TokenStream, item: TokenStream) -> TokenStream { in test_rt()
446 pub fn main_fail(_args: TokenStream, _item: TokenStream) -> TokenStream { in main_fail()
460 pub fn test_fail(_args: TokenStream, _item: TokenStream) -> TokenStream { in test_fail()
473 pub fn select_priv_declare_output_enum(input: TokenStream) -> TokenStream { in select_priv_declare_output_enum()
481 pub fn select_priv_clean_pattern(input: TokenStream) -> TokenStream { in select_priv_clean_pattern()
/external/rust/crates/rustversion/src/
Dlib.rs198 pub fn stable(args: TokenStream, input: TokenStream) -> TokenStream { in stable()
203 pub fn beta(args: TokenStream, input: TokenStream) -> TokenStream { in beta()
208 pub fn nightly(args: TokenStream, input: TokenStream) -> TokenStream { in nightly()
213 pub fn since(args: TokenStream, input: TokenStream) -> TokenStream { in since()
218 pub fn before(args: TokenStream, input: TokenStream) -> TokenStream { in before()
223 pub fn not(args: TokenStream, input: TokenStream) -> TokenStream { in not()
228 pub fn any(args: TokenStream, input: TokenStream) -> TokenStream { in any()
233 pub fn all(args: TokenStream, input: TokenStream) -> TokenStream { in all()
238 pub fn attr(args: TokenStream, input: TokenStream) -> TokenStream { in attr()
246 pub fn cfg(input: TokenStream) -> TokenStream { in cfg()
Dexpand.rs7 pub fn cfg(introducer: &str, args: TokenStream, input: TokenStream) -> TokenStream { in cfg()
11 fn try_cfg(introducer: &str, args: TokenStream, input: TokenStream) -> Result<TokenStream> { in try_cfg()
33 pub fn try_attr(args: attr::Args, input: TokenStream) -> Result<TokenStream> { in try_attr()
/external/rust/crates/quote/src/
Dto_tokens.rs53 fn to_tokens(&self, tokens: &mut TokenStream); in to_tokens()
59 fn to_token_stream(&self) -> TokenStream { in to_token_stream()
78 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens()
84 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens()
90 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens()
96 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens()
102 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens()
108 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens()
116 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens()
122 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens()
[all …]
/external/rust/crates/bindgen/codegen/
Dhelpers.rs12 pub fn repr(which: &str) -> TokenStream { in repr()
19 pub fn repr_list(which_ones: &[&str]) -> TokenStream { in repr_list()
29 pub fn derives(which_ones: &[&str]) -> TokenStream { in derives()
57 pub fn doc(comment: String) -> TokenStream { in doc()
65 pub fn link_name(name: &str) -> TokenStream { in link_name()
77 pub fn blob(ctx: &BindgenContext, layout: Layout) -> TokenStream { in blob()
111 ) -> Option<TokenStream> { in integer_type()
118 pub fn bitfield_unit(ctx: &BindgenContext, layout: Layout) -> TokenStream { in bitfield_unit()
141 pub fn c_void(ctx: &BindgenContext) -> TokenStream { in c_void()
162 pub fn raw_type(ctx: &BindgenContext, name: &str) -> TokenStream { in raw_type()
[all …]
Ddyngen.rs80 ) -> proc_macro2::TokenStream { in get_tokens()
133 args: Vec<proc_macro2::TokenStream>, in push()
134 args_identifiers: Vec<proc_macro2::TokenStream>, in push()
135 ret: proc_macro2::TokenStream, in push()
136 ret_ty: proc_macro2::TokenStream, in push()
137 attributes: Vec<proc_macro2::TokenStream>, in push()
Dimpl_debug.rs11 ) -> proc_macro2::TokenStream { in gen_debug_impl()
64 ) -> Option<(String, Vec<proc_macro2::TokenStream>)>; in impl_debug()
74 ) -> Option<(String, Vec<proc_macro2::TokenStream>)> { in impl_debug()
90 ) -> Option<(String, Vec<proc_macro2::TokenStream>)> { in impl_debug()
119 ) -> Option<(String, Vec<proc_macro2::TokenStream>)> { in impl_debug()
137 name_ident: proc_macro2::TokenStream, in impl_debug()
138 ) -> Option<(String, Vec<proc_macro2::TokenStream>)> { in impl_debug()
/external/rust/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 …]
/external/rust/crates/futures-macro/src/
Dlib.rs26 pub fn join_internal(input: TokenStream) -> TokenStream { in join_internal()
32 pub fn try_join_internal(input: TokenStream) -> TokenStream { in try_join_internal()
38 pub fn select_internal(input: TokenStream) -> TokenStream { in select_internal()
44 pub fn select_biased_internal(input: TokenStream) -> TokenStream { in select_biased_internal()
51 pub fn test_internal(input: TokenStream, item: TokenStream) -> TokenStream { in test_internal()
57 pub fn stream_select_internal(input: TokenStream) -> TokenStream { in stream_select_internal()
/external/antlr/runtime/ObjC/Framework/
DParser.m33 {
38 {
43 {
51 {
84 {
93 {
102 {
122 {
/external/rust/cxx/macro/src/
Dderive.rs7 pub fn expand_struct(strct: &Struct, actual_derives: &mut Option<TokenStream>) -> TokenStream { in expand_struct()
38 pub fn expand_enum(enm: &Enum, actual_derives: &mut Option<TokenStream>) -> TokenStream { in expand_enum()
97 fn struct_copy(strct: &Struct, span: Span) -> TokenStream { in struct_copy()
106 fn struct_clone(strct: &Struct, span: Span) -> TokenStream { in struct_clone()
134 fn struct_debug(strct: &Struct, span: Span) -> TokenStream { in struct_debug()
152 fn struct_default(strct: &Struct, span: Span) -> TokenStream { in struct_default()
171 fn struct_ord(strct: &Struct, span: Span) -> TokenStream { in struct_ord()
191 fn struct_partial_ord(strct: &Struct, span: Span) -> TokenStream { in struct_partial_ord()
221 fn enum_copy(enm: &Enum, span: Span) -> TokenStream { in enum_copy()
229 fn enum_clone(enm: &Enum, span: Span) -> TokenStream { in enum_clone()
[all …]
/external/rust/crates/pin-project-internal/src/
Dlib.rs492 pub fn pin_project(args: TokenStream, input: TokenStream) -> TokenStream { in pin_project()
574 pub fn pinned_drop(args: TokenStream, input: TokenStream) -> TokenStream { in pinned_drop()
582 pub fn __pin_project_internal_derive(input: TokenStream) -> TokenStream { in __pin_project_internal_derive()
/external/rust/crates/clap_derive/src/derives/
Dvalue_enum.rs20 pub fn derive_value_enum(input: &DeriveInput) -> TokenStream { in derive_value_enum()
44 pub fn gen_for_enum(item: &Item, item_name: &Ident, variants: &[(&Variant, Item)]) -> TokenStream { in gen_for_enum() argument
77 fn lits(variants: &[(&Variant, Item)]) -> Vec<(TokenStream, Ident)> { in lits()
103 fn gen_value_variants(lits: &[(TokenStream, Ident)]) -> TokenStream { in gen_value_variants()
113 fn gen_to_possible_value(item: &Item, lits: &[(TokenStream, Ident)]) -> TokenStream { in gen_to_possible_value()
/external/cronet/testing/rust_gtest_interop/
Dgtest_attribute.rs47 arg_stream: proc_macro::TokenStream, in gtest()
48 input: proc_macro::TokenStream, in gtest()
49 ) -> proc_macro::TokenStream { in gtest()
62 ) -> Result<String, TokenStream> { in gtest() argument
96 fn parse_gtest_suite(attr: &syn::Attribute) -> Result<TokenStream, TokenStream> { in gtest() argument
230 fn to_tokens(&self, tokens: &mut proc_macro2::TokenStream) { in gtest()
366 arg_stream: proc_macro::TokenStream, in extern_test_suite()
367 input: proc_macro::TokenStream, in extern_test_suite()
368 ) -> proc_macro::TokenStream { in extern_test_suite()
402 fn parse_cpp_prefix(attr: &syn::Attribute) -> Result<String, TokenStream> { in extern_test_suite() argument
/external/rust/crates/tracing-attributes/src/
Dlib.rs553 args: proc_macro::TokenStream, in instrument()
554 item: proc_macro::TokenStream, in instrument()
555 ) -> proc_macro::TokenStream { in instrument()
565 item: proc_macro::TokenStream, in instrument_speculative()
566 ) -> proc_macro::TokenStream { in instrument_speculative()
582 item: proc_macro::TokenStream, in instrument_precise()
583 ) -> Result<proc_macro::TokenStream, syn::Error> { in instrument_precise()
616 fn as_ref(&self) -> MaybeItemFnRef<'_, TokenStream> { in as_ref() argument
/external/rust/crates/zerocopy-derive/src/
Dlib.rs40 pub fn derive_from_bytes(ts: proc_macro::TokenStream) -> proc_macro::TokenStream { in derive_from_bytes()
51 pub fn derive_as_bytes(ts: proc_macro::TokenStream) -> proc_macro::TokenStream { in derive_as_bytes()
62 pub fn derive_unaligned(ts: proc_macro::TokenStream) -> proc_macro::TokenStream { in derive_unaligned()
93 fn derive_from_bytes_struct(ast: &DeriveInput, strct: &DataStruct) -> proc_macro2::TokenStream { in derive_from_bytes_struct()
111 fn derive_from_bytes_enum(ast: &DeriveInput, enm: &DataEnum) -> proc_macro2::TokenStream { in derive_from_bytes_enum()
167 fn derive_from_bytes_union(ast: &DeriveInput, unn: &DataUnion) -> proc_macro2::TokenStream { in derive_from_bytes_union()
177 fn derive_as_bytes_struct(ast: &DeriveInput, strct: &DataStruct) -> proc_macro2::TokenStream { in derive_as_bytes_struct()
202 fn derive_as_bytes_enum(ast: &DeriveInput, enm: &DataEnum) -> proc_macro2::TokenStream { in derive_as_bytes_enum()
244 fn derive_as_bytes_union(ast: &DeriveInput, unn: &DataUnion) -> proc_macro2::TokenStream { in derive_as_bytes_union()
262 fn derive_unaligned_struct(ast: &DeriveInput, strct: &DataStruct) -> proc_macro2::TokenStream { in derive_unaligned_struct()
[all …]
/external/rust/crates/serde_derive/src/
Dpretend.rs23 pub fn pretend_used(cont: &Container, is_packed: bool) -> TokenStream { in pretend_used()
65 fn pretend_fields_used(cont: &Container, is_packed: bool) -> TokenStream { in pretend_fields_used()
79 fn pretend_fields_used_struct(cont: &Container, fields: &[Field]) -> TokenStream { in pretend_fields_used_struct()
94 fn pretend_fields_used_struct_packed(cont: &Container, fields: &[Field]) -> TokenStream { in pretend_fields_used_struct_packed()
127 fn pretend_fields_used_enum(cont: &Container, variants: &[Variant]) -> TokenStream { in pretend_fields_used_enum()
163 fn pretend_variants_used(cont: &Container) -> TokenStream { in pretend_variants_used()
/external/rust/crates/syn/src/
Dpat.rs718 fn pat_const(input: ParseStream) -> Result<TokenStream> { in pat_const()
771 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens()
779 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens()
793 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens()
809 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens()
818 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens()
828 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens()
836 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens()
846 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens()
855 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens()
[all …]
/external/rust/crates/clap_derive/src/
Dlib.rs34 pub fn value_enum(input: TokenStream) -> TokenStream { in value_enum()
47 pub fn parser(input: TokenStream) -> TokenStream { in parser()
55 pub fn subcommand(input: TokenStream) -> TokenStream { in subcommand()
63 pub fn args(input: TokenStream) -> TokenStream { in args()
/external/rust/crates/derive_arbitrary/src/
Dlib.rs16 pub fn derive_arbitrary(tokens: proc_macro::TokenStream) -> proc_macro::TokenStream { in derive_arbitrary()
23 fn expand_derive_arbitrary(input: syn::DeriveInput) -> Result<TokenStream> { in expand_derive_arbitrary()
179 ) -> Result<TokenStream> { in gen_arbitrary_method()
185 ) -> Result<TokenStream> { in gen_arbitrary_method()
282 ctor: impl Fn(usize, &Field) -> Result<TokenStream>, in construct()
311 fn construct_take_rest(fields: &Fields) -> Result<TokenStream> { in construct_take_rest()
328 fn gen_size_hint_method(input: &DeriveInput) -> Result<TokenStream> { in gen_size_hint_method()
395 fn gen_constructor_for_field(field: &Field) -> Result<TokenStream> { in gen_constructor_for_field()
/external/rust/crates/syn-mid/src/
Dpat.rs312 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens()
318 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens()
326 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens()
340 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens()
347 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens()
356 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens()
362 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens()
370 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens()
378 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens()
/external/rust/crates/remain/src/
Dlib.rs175 pub fn sorted(args: TokenStream, input: TokenStream) -> TokenStream { in sorted()
190 pub fn check(args: TokenStream, input: TokenStream) -> TokenStream { in check()
/external/rust/crates/der_derive/src/
Dlib.rs192 pub fn derive_choice(input: TokenStream) -> TokenStream { in derive_choice()
228 pub fn derive_enumerated(input: TokenStream) -> TokenStream { in derive_enumerated()
268 pub fn derive_sequence(input: TokenStream) -> TokenStream { in derive_sequence()
281 pub fn derive_value_ord(input: TokenStream) -> TokenStream { in derive_value_ord()
/external/rust/crates/paste/src/
Dlib.rs164 pub fn paste(input: TokenStream) -> TokenStream { in paste()
185 pub fn item(input: TokenStream) -> TokenStream { in item()
191 pub fn expr(input: TokenStream) -> TokenStream { in expr()
196 input: TokenStream, in expand()
199 ) -> Result<TokenStream> { in expand()
353 fn parse_bracket_as_segments(input: TokenStream, scope: Span) -> Result<Vec<Segment>> { in parse_bracket_as_segments()
411 fn pasted_to_tokens(mut pasted: String, span: Span) -> Result<TokenStream> { in pasted_to_tokens()
/external/crosvm/bit_field/bit_field_derive/
Dbit_field_derive.rs33 _args: proc_macro::TokenStream, in bitfield()
34 input: proc_macro::TokenStream, in bitfield()
35 ) -> proc_macro::TokenStream { in bitfield()
52 fn bitfield_impl(ast: &DeriveInput) -> Result<TokenStream> { in bitfield_impl()
77 fn bitfield_tuple_struct_impl(ast: &DeriveInput, fields: &FieldsUnnamed) -> Result<TokenStream> { in bitfield_tuple_struct_impl()
149 fn bitfield_enum_impl(ast: &DeriveInput, data: &DataEnum) -> Result<TokenStream> { in bitfield_enum_impl()
162 ) -> Result<TokenStream> { in bitfield_enum_with_width_impl()
231 fn bitfield_enum_without_width_impl(ast: &DeriveInput, data: &DataEnum) -> Result<TokenStream> { in bitfield_enum_without_width_impl()
287 ) -> Vec<TokenStream> { in get_declare_discriminants_for_enum()
336 fn bitfield_struct_impl(ast: &DeriveInput, fields: &FieldsNamed) -> Result<TokenStream> { in bitfield_struct_impl()
[all …]

123456789