/external/rust/crates/serde_derive/src/ |
D | bound.rs | 3 use syn; 4 use syn::punctuated::{Pair, Punctuated}; 14 pub fn without_defaults(generics: &syn::Generics) -> syn::Generics { in without_defaults() 15 syn::Generics { in without_defaults() 20 syn::GenericParam::Type(param) => syn::GenericParam::Type(syn::TypeParam { in without_defaults() 33 generics: &syn::Generics, in with_where_predicates() 34 predicates: &[syn::WherePredicate], in with_where_predicates() 35 ) -> syn::Generics { in with_where_predicates() 46 generics: &syn::Generics, in with_where_predicates_from_fields() 47 from_field: fn(&attr::Field) -> Option<&[syn::WherePredicate]>, in with_where_predicates_from_fields() [all …]
|
/external/deqp-deps/amber/tools/ |
D | amber-syntax.vim | 9 syn match amberNumber '\d\+' contained display 10 syn match amberNumber '[-+]\d\+' contained display 13 syn match amberNumber '\d\+\.\d*' contained display 14 syn match amberNumber '[-+]\d\+\.\d*' contained display 17 syn match amberNumber '[-+]\=\d[[:digit:]]*[eE][\-+]\=\d\+' contained display 18 syn match amberNumber '\d[[:digit:]]*[eE][\-+]\=\d\+' contained display 21 syn match amberNumber '[-+]\=\d[[:digit:]]*\.\d*[eE][\-+]\=\d\+' contained display 22 syn match amberNumber '\d[[:digit:]]*\.\d*[eE][\-+]\=\d\+' contained display 24 syn region amberString start='"' end='"' contained 25 syn region amberDesc start='"' end='"' [all …]
|
/external/python/cpython2/Misc/Vim/ |
D | python.vim | 17 syn keyword pythonStatement as assert break continue del except exec finally 18 syn keyword pythonStatement global lambda pass print raise return try with 19 syn keyword pythonStatement yield 21 syn keyword pythonStatement def class nextgroup=pythonFunction skipwhite 23 syn match pythonFunction "[a-zA-Z_][a-zA-Z0-9_]*" contained 25 syn keyword pythonRepeat for while 27 syn keyword pythonConditional if elif else 29 syn keyword pythonOperator and in is not or 31 syn keyword pythonPreCondit import from 33 syn match pythonComment "#.*$" contains=pythonTodo [all …]
|
/external/cronet/buildtools/third_party/libc++/trunk/docs/Status/ |
D | FormatPaper.csv | 3 `[time.syn] <https://wg21.link/time.syn>`_,"Formatter ``chrono::duration<Rep, Period>``",,Mark de W… 4 `[time.syn] <https://wg21.link/time.syn>`_,"Formatter ``chrono::sys_time<Duration>``",,Mark de Weve… 5 `[time.syn] <https://wg21.link/time.syn>`_,"Formatter ``chrono::utc_time<Duration>``",A ``<chrono>`… 6 `[time.syn] <https://wg21.link/time.syn>`_,"Formatter ``chrono::tai_time<Duration>``",A ``<chrono>`… 7 `[time.syn] <https://wg21.link/time.syn>`_,"Formatter ``chrono::gps_time<Duration>``",A ``<chrono>`… 8 `[time.syn] <https://wg21.link/time.syn>`_,"Formatter ``chrono::file_time<Duration>``",,Not assigne… 9 `[time.syn] <https://wg21.link/time.syn>`_,"Formatter ``chrono::local_time<Duration>``",,Not assign… 10 `[time.syn] <https://wg21.link/time.syn>`_,"Formatter ``chrono::local-time-format-t<Duration>``",A … 11 `[time.syn] <https://wg21.link/time.syn>`_,"Formatter ``chrono::day``",,Mark de Wever,|Complete|, C… 12 `[time.syn] <https://wg21.link/time.syn>`_,"Formatter ``chrono::month``",,Mark de Wever,|Complete|,… [all …]
|
/external/rust/crates/tokio-macros/src/ |
D | entry.rs | 4 use syn::parse::Parser; 7 type AttributeArgs = syn::punctuated::Punctuated<syn::NestedMeta, syn::Token![,]>; 69 fn set_flavor(&mut self, runtime: syn::Lit, span: Span) -> Result<(), syn::Error> { in set_flavor() 71 return Err(syn::Error::new(span, "`flavor` set multiple times.")); in set_flavor() 76 RuntimeFlavor::from_str(&runtime_str).map_err(|err| syn::Error::new(span, err))?; in set_flavor() 83 worker_threads: syn::Lit, in set_worker_threads() 85 ) -> Result<(), syn::Error> { in set_worker_threads() 87 return Err(syn::Error::new( in set_worker_threads() 95 return Err(syn::Error::new(span, "`worker_threads` may not be 0.")); in set_worker_threads() 101 fn set_start_paused(&mut self, start_paused: syn::Lit, span: Span) -> Result<(), syn::Error> { in set_start_paused() [all …]
|
D | select.rs | 4 use syn::Ident; 49 let mut input: syn::Pat = match syn::parse(input.clone()) { in clean_pattern_macro() 59 fn clean_pattern(pat: &mut syn::Pat) { in clean_pattern() 61 syn::Pat::Box(_box) => {} in clean_pattern() 62 syn::Pat::Lit(_literal) => {} in clean_pattern() 63 syn::Pat::Macro(_macro) => {} in clean_pattern() 64 syn::Pat::Path(_path) => {} in clean_pattern() 65 syn::Pat::Range(_range) => {} in clean_pattern() 66 syn::Pat::Rest(_rest) => {} in clean_pattern() 67 syn::Pat::Verbatim(_tokens) => {} in clean_pattern() [all …]
|
/external/rust/crates/argh_derive/src/ |
D | errors.rs | 14 errors: RefCell<Vec<syn::Error>>, 21 pub fn $fn_name<'a>(&self, lit: &'a syn::Lit) -> Option<&'a syn::$syn_type> { 22 if let syn::Lit::$variant(inner) = lit { 37 pub fn $fn_name<'a>(&self, meta: &'a syn::Meta) -> Option<&'a syn::$syn_type> { 38 if let syn::Meta::$variant(inner) = meta { 57 first: &impl syn::spanned::Spanned, in duplicate_attrs() 58 second: &impl syn::spanned::Spanned, in duplicate_attrs() 69 pub fn expect_nested_meta<'a>(&self, nm: &'a syn::NestedMeta) -> Option<&'a syn::Meta> { in expect_nested_meta() 71 syn::NestedMeta::Lit(l) => { in expect_nested_meta() 75 syn::NestedMeta::Meta(m) => Some(m), in expect_nested_meta() [all …]
|
D | parse_attrs.rs | 14 pub default: Option<syn::LitStr>, 16 pub from_str_fn: Option<syn::Ident>, 18 pub long: Option<syn::LitStr>, 19 pub short: Option<syn::LitChar>, 20 pub arg_name: Option<syn::LitStr>, 21 pub greedy: Option<syn::Path>, 50 pub ident: syn::Ident, 60 pub content: syn::LitStr, 64 pub fn parse(errors: &Errors, field: &syn::Field) -> Self { in parse() 170 fn parse_attr_from_str_fn(&mut self, errors: &Errors, m: &syn::MetaList) { in parse_attr_from_str_fn() [all …]
|
/external/llvm/utils/vim/syntax/ |
D | llvm.vim | 12 syn case match 17 syn keyword llvmType void half float double x86_fp80 fp128 ppc_fp128 18 syn keyword llvmType label metadata x86_mmx 19 syn keyword llvmType type label opaque token 20 syn match llvmType /\<i\d\+\>/ 25 syn keyword llvmStatement add addrspacecast alloca and arcp ashr atomicrmw 26 syn keyword llvmStatement bitcast br call cmpxchg eq exact extractelement 27 syn keyword llvmStatement extractvalue fadd fast fcmp fdiv fence fmul fpext 28 syn keyword llvmStatement fptosi fptoui fptrunc free frem fsub getelementptr 29 syn keyword llvmStatement icmp inbounds indirectbr insertelement insertvalue [all …]
|
D | tablegen.vim | 15 syn case match 17 syn keyword tgKeyword def let in code dag field include defm foreach 18 syn keyword tgType class int string list bit bits multiclass 20 syn match tgNumber /\<\d\+\>/ 21 syn match tgNumber /\<\d\+\.\d*\>/ 22 syn match tgNumber /\<0b[01]\+\>/ 23 syn match tgNumber /\<0x[0-9a-fA-F]\+\>/ 24 syn region tgString start=/"/ skip=/\\"/ end=/"/ oneline 26 syn region tgCode start=/\[{/ end=/}\]/ 28 syn keyword tgTodo contained TODO FIXME [all …]
|
/external/rust/crates/serde_derive/src/internals/ |
D | attr.rs | 8 use syn; 9 use syn::parse::{self, Parse, ParseStream}; 10 use syn::punctuated::Punctuated; 11 use syn::Ident; 12 use syn::Meta::{List, NameValue, Path}; 13 use syn::NestedMeta::{Lit, Meta}; 215 ser_bound: Option<Vec<syn::WherePredicate>>, 216 de_bound: Option<Vec<syn::WherePredicate>>, 218 type_from: Option<syn::Type>, 219 type_try_from: Option<syn::Type>, [all …]
|
D | ast.rs | 6 use syn; 7 use syn::punctuated::Punctuated; 13 pub ident: syn::Ident, 19 pub generics: &'a syn::Generics, 21 pub original: &'a syn::DeriveInput, 34 pub ident: syn::Ident, 38 pub original: &'a syn::Variant, 43 pub member: syn::Member, 45 pub ty: &'a syn::Type, 46 pub original: &'a syn::Field, [all …]
|
/external/rust/crates/merge_derive/src/ |
D | lib.rs | 16 use syn::Token; 19 name: syn::Member, 27 strategy: Option<syn::Path>, 32 Strategy(syn::Path), 38 let ast = syn::parse(input).unwrap(); in merge_derive() 42 fn impl_merge(ast: &syn::DeriveInput) -> TokenStream { in impl_merge() 53 if let syn::Data::Struct(syn::DataStruct { ref fields, .. }) = ast.data { in impl_merge() 60 fn impl_merge_for_struct(name: &syn::Ident, fields: &syn::Fields) -> TokenStream { in impl_merge_for_struct() 72 fn gen_assignments(fields: &syn::Fields) -> TokenStream { in gen_assignments() 81 use syn::spanned::Spanned; in gen_assignment() [all …]
|
/external/rust/crates/syn/tests/ |
D | test_pat.rs | 7 use syn::{Item, Pat, Stmt}; 11 match syn::parse2(quote!(self)).unwrap() { in test_pat_ident() 19 match syn::parse2(quote!(self::CONST)).unwrap() { in test_pat_path() 29 syn::parse_str::<Item>("fn f() {}").unwrap(); in test_leading_vert() 30 syn::parse_str::<Item>("fn fun1(| A: E) {}").unwrap_err(); in test_leading_vert() 31 syn::parse_str::<Item>("fn fun2(|| A: E) {}").unwrap_err(); in test_leading_vert() 33 syn::parse_str::<Stmt>("let | () = ();").unwrap(); in test_leading_vert() 34 syn::parse_str::<Stmt>("let (| A): E;").unwrap(); in test_leading_vert() 35 syn::parse_str::<Stmt>("let (|| A): (E);").unwrap_err(); in test_leading_vert() 36 syn::parse_str::<Stmt>("let (| A,): (E,);").unwrap(); in test_leading_vert() [all …]
|
/external/rust/crates/syn/tests/debug/ |
D | gen.rs | 6 impl Debug for Lite<syn::Abi> { 13 struct Print(syn::LitStr); in fmt() 29 impl Debug for Lite<syn::AngleBracketedGenericArguments> { 36 struct Print(syn::token::Colon2); in fmt() 51 impl Debug for Lite<syn::Arm> { 62 struct Print((syn::token::If, Box<syn::Expr>)); in fmt() 79 struct Print(syn::token::Comma); in fmt() 91 impl Debug for Lite<syn::AttrStyle> { 95 syn::AttrStyle::Outer => formatter.write_str("Outer"), in fmt() 96 syn::AttrStyle::Inner(_val) => { in fmt() [all …]
|
/external/rust/cxx/third-party/ |
D | BUCK | 379 name = "syn", 380 actual = ":syn-1.0.105", 385 name = "syn-1.0.105", 387 "vendor/syn-1.0.105/src/attr.rs", 388 "vendor/syn-1.0.105/src/await.rs", 389 "vendor/syn-1.0.105/src/bigint.rs", 390 "vendor/syn-1.0.105/src/buffer.rs", 391 "vendor/syn-1.0.105/src/custom_keyword.rs", 392 "vendor/syn-1.0.105/src/custom_punctuation.rs", 393 "vendor/syn-1.0.105/src/data.rs", [all …]
|
/external/rust/crates/async-stream-impl/src/ |
D | lib.rs | 5 use syn::parse::{Parse, ParseStream, Parser, Result}; 6 use syn::visit_mut::VisitMut; 12 unit: Box<syn::Expr>, 17 fn parse_input(input: TokenStream) -> syn::Result<(TokenStream2, Vec<syn::Stmt>)> { in parse_input() 23 let stmts = syn::Block::parse_within.parse2(replace_for_await(input))?; in parse_input() 31 unit: syn::parse_quote!(()), in new() 60 match syn::parse2(stream) { in visit_token_stream_impl() 62 let mut expr = syn::Expr::Yield(yield_expr); in visit_token_stream_impl() 113 fn visit_expr_mut(&mut self, i: &mut syn::Expr) { in visit_expr_mut() 115 syn::Expr::Yield(yield_expr) => { in visit_expr_mut() [all …]
|
/external/rust/crates/clap_derive/src/utils/ |
D | ty.rs | 5 use syn::{ 23 pub fn from_syn_ty(ty: &syn::Type) -> Sp<Self> { in from_syn_ty() 58 pub fn inner_type(field_ty: &syn::Type) -> &syn::Type { in inner_type() 73 pub fn sub_type(ty: &syn::Type) -> Option<&syn::Type> { in sub_type() 77 fn only_last_segment(mut ty: &syn::Type) -> Option<&PathSegment> { in only_last_segment() 78 while let syn::Type::Group(syn::TypeGroup { elem, .. }) = ty { in only_last_segment() 95 fn subty_if<F>(ty: &syn::Type, f: F) -> Option<&syn::Type> in subty_if() 116 pub fn subty_if_name<'a>(ty: &'a syn::Type, name: &str) -> Option<&'a syn::Type> { in subty_if_name() 120 pub fn is_simple_ty(ty: &syn::Type, name: &str) -> bool { in is_simple_ty() 132 fn is_generic_ty(ty: &syn::Type, name: &str) -> bool { in is_generic_ty() [all …]
|
/external/cronet/testing/rust_gtest_interop/ |
D | gtest_attribute.rs | 3 use syn::spanned::Spanned; 60 args: &syn::AttributeArgs, in gtest() 68 syn::NestedMeta::Meta(syn::Meta::Path(path)) if path.segments.len() == 1 => { in gtest() 96 fn parse_gtest_suite(attr: &syn::Attribute) -> Result<TokenStream, TokenStream> { in gtest() 98 Ok(syn::Meta::List(list)) if list.nested.len() == 1 => match &list.nested[0] { in gtest() 99 syn::NestedMeta::Meta(syn::Meta::Path(fn_path)) => Ok(fn_path.into_token_stream()), in gtest() 114 let args = syn::parse_macro_input!(arg_stream as syn::AttributeArgs); in gtest() 115 let mut input_fn = syn::parse_macro_input!(input as syn::ItemFn); in gtest() 205 let mangled_function_name = |f: &syn::ItemFn| -> syn::Ident { in gtest() 369 let args = syn::parse_macro_input!(arg_stream as syn::AttributeArgs); in extern_test_suite() [all …]
|
/external/protobuf/editors/ |
D | proto.vim | 51 syn case match 53 syn keyword pbTodo contained TODO FIXME XXX 54 syn cluster pbCommentGrp contains=pbTodo 56 syn keyword pbSyntax syntax import option 57 syn keyword pbStructure package message group oneof 58 syn keyword pbRepeat optional required repeated 59 syn keyword pbDefault default 60 syn keyword pbExtend extend extensions to max reserved 61 syn keyword pbRPC service rpc returns 63 syn keyword pbType int32 int64 uint32 uint64 sint32 sint64 [all …]
|
/external/cronet/third_party/protobuf/editors/ |
D | proto.vim | 51 syn case match 53 syn keyword pbTodo contained TODO FIXME XXX 54 syn cluster pbCommentGrp contains=pbTodo 56 syn keyword pbSyntax syntax import option 57 syn keyword pbStructure package message group oneof 58 syn keyword pbRepeat optional required repeated 59 syn keyword pbDefault default 60 syn keyword pbExtend extend extensions to max reserved 61 syn keyword pbRPC service rpc returns 63 syn keyword pbType int32 int64 uint32 uint64 sint32 sint64 [all …]
|
/external/rust/crates/syn-mid/ |
D | README.md | 1 # syn-mid 3 …ates.io](https://img.shields.io/crates/v/syn-mid.svg?style=flat-square&logo=rust)](https://crates.… 4 [![docs.rs](https://img.shields.io/badge/docs.rs-syn--mid-blue?style=flat-square)](https://docs.rs/… 7 …shields.io/github/workflow/status/taiki-e/syn-mid/CI/master?style=flat-square)](https://github.com… 9 Providing the features between "full" and "derive" of syn. 27 Other data structures are the same as data structures of [syn]. These are 28 defined in this crate because they cannot be used in [syn] without "full" 31 [syn]: https://github.com/dtolnay/syn 39 syn-mid = "0.5"
|
D | CHANGELOG.md | 25 - Update parser implementations based on `syn` 1.0.44. This includes some bugfixes. 33 [13]: https://github.com/taiki-e/syn-mid/pull/13 37 - Updated all data structures based on `syn` 1.0. 39 - Updated `proc-macro2`, `syn`, and `quote` to 1.0. 69 [Unreleased]: https://github.com/taiki-e/syn-mid/compare/v0.5.3...HEAD 70 [0.5.3]: https://github.com/taiki-e/syn-mid/compare/v0.5.2...v0.5.3 71 [0.5.2]: https://github.com/taiki-e/syn-mid/compare/v0.5.1...v0.5.2 72 [0.5.1]: https://github.com/taiki-e/syn-mid/compare/v0.5.0...v0.5.1 73 [0.5.0]: https://github.com/taiki-e/syn-mid/compare/v0.4.0...v0.5.0 74 [0.4.0]: https://github.com/taiki-e/syn-mid/compare/v0.3.0...v0.4.0 [all …]
|
/external/rust/crates/tracing-attributes/src/ |
D | attr.rs | 2 use syn::{punctuated::Punctuated, Expr, Ident, LitInt, LitStr, Path, Token}; 6 use syn::ext::IdentExt as _; 7 use syn::parse::{Parse, ParseStream}; 22 parse_warnings: Vec<syn::Error>, 104 fn parse(input: ParseStream<'_>) -> syn::Result<Self> { in parse() 199 fn parse(input: ParseStream<'_>) -> syn::Result<Self> { in parse() 216 fn parse(input: ParseStream<'_>) -> syn::Result<Self> { in parse() 230 fn parse(input: ParseStream<'_>) -> syn::Result<Self> { in parse() 233 let _ = syn::parenthesized!(content in input); in parse() 238 return Err(syn::Error::new( in parse() [all …]
|
/external/crosvm/argh_helpers/src/ |
D | lib.rs | 12 let ast = syn::parse_macro_input!(input as syn::DeriveInput); in flatten_subcommand() 14 syn::Data::Enum(v) => v, in flatten_subcommand() 21 name: &'a syn::Ident, in flatten_subcommand() 22 ty: &'a syn::Type, in flatten_subcommand() 31 syn::Fields::Unnamed(field) => { in flatten_subcommand() 132 let mut item = syn::parse_macro_input!(item as syn::Item); in pad_description_for_argh() 133 if let syn::Item::Struct(s) = &mut item { in pad_description_for_argh() 134 if let syn::Fields::Named(fields) = &mut s.fields { in pad_description_for_argh() 143 if let Ok(syn::Meta::NameValue(nv)) = a.parse_meta() { in pad_description_for_argh() 144 if let syn::Lit::Str(s) = nv.lit { in pad_description_for_argh() [all …]
|