Home
last modified time | relevance | path

Searched refs:MacroDelimiter (Results 1 – 11 of 11) sorted by relevance

/external/rust/crates/syn/src/
Dmac.rs19 pub delimiter: MacroDelimiter,
30 pub enum MacroDelimiter {
38 fn delimiter_span_close(macro_delimiter: &MacroDelimiter) -> Span { in delimiter_span_close()
40 MacroDelimiter::Paren(_) => Delimiter::Parenthesis, in delimiter_span_close()
41 MacroDelimiter::Brace(_) => Delimiter::Brace, in delimiter_span_close()
42 MacroDelimiter::Bracket(_) => Delimiter::Bracket, in delimiter_span_close()
46 MacroDelimiter::Paren(token) => token.span, in delimiter_span_close()
47 MacroDelimiter::Brace(token) => token.span, in delimiter_span_close()
48 MacroDelimiter::Bracket(token) => token.span, in delimiter_span_close()
153 pub fn parse_delimiter(input: ParseStream) -> Result<(MacroDelimiter, TokenStream)> { in parse_delimiter() argument
[all …]
Dlib.rs395 pub use crate::mac::{Macro, MacroDelimiter};
Ditem.rs2781 impl MacroDelimiter { implementation
2784 MacroDelimiter::Brace(_) => true, in is_brace()
2785 MacroDelimiter::Paren(_) | MacroDelimiter::Bracket(_) => false, in is_brace()
3038 MacroDelimiter::Paren(paren) => { in to_tokens()
3041 MacroDelimiter::Brace(brace) => { in to_tokens()
3044 MacroDelimiter::Bracket(bracket) => { in to_tokens()
/external/rust/crates/syn/src/gen/
Dclone.rs1371 impl Clone for MacroDelimiter { implementation
1374 MacroDelimiter::Paren(v0) => MacroDelimiter::Paren(v0.clone()), in clone()
1375 MacroDelimiter::Brace(v0) => MacroDelimiter::Brace(v0.clone()), in clone()
1376 MacroDelimiter::Bracket(v0) => MacroDelimiter::Bracket(v0.clone()), in clone()
Deq.rs1380 impl Eq for MacroDelimiter {} implementation
1383 impl PartialEq for MacroDelimiter { implementation
1386 (MacroDelimiter::Paren(_), MacroDelimiter::Paren(_)) => true, in eq()
1387 (MacroDelimiter::Brace(_), MacroDelimiter::Brace(_)) => true, in eq()
1388 (MacroDelimiter::Bracket(_), MacroDelimiter::Bracket(_)) => true, in eq()
Dfold.rs470 fn fold_macro_delimiter(&mut self, i: MacroDelimiter) -> MacroDelimiter { in fold_macro_delimiter() argument
2282 pub fn fold_macro_delimiter<F>(f: &mut F, node: MacroDelimiter) -> MacroDelimiter in fold_macro_delimiter()
2287 MacroDelimiter::Paren(_binding_0) => { in fold_macro_delimiter()
2288 MacroDelimiter::Paren(Paren(tokens_helper(f, &_binding_0.span))) in fold_macro_delimiter()
2290 MacroDelimiter::Brace(_binding_0) => { in fold_macro_delimiter()
2291 MacroDelimiter::Brace(Brace(tokens_helper(f, &_binding_0.span))) in fold_macro_delimiter()
2293 MacroDelimiter::Bracket(_binding_0) => { in fold_macro_delimiter()
2294 MacroDelimiter::Bracket(Bracket(tokens_helper(f, &_binding_0.span))) in fold_macro_delimiter()
Dhash.rs1748 impl Hash for MacroDelimiter { implementation
1754 MacroDelimiter::Paren(_) => { in hash()
1757 MacroDelimiter::Brace(_) => { in hash()
1760 MacroDelimiter::Bracket(_) => { in hash()
Dvisit_mut.rs473 fn visit_macro_delimiter_mut(&mut self, i: &mut MacroDelimiter) { in visit_macro_delimiter_mut() argument
2632 pub fn visit_macro_delimiter_mut<V>(v: &mut V, node: &mut MacroDelimiter) in visit_macro_delimiter_mut()
2637 MacroDelimiter::Paren(_binding_0) => { in visit_macro_delimiter_mut()
2640 MacroDelimiter::Brace(_binding_0) => { in visit_macro_delimiter_mut()
2643 MacroDelimiter::Bracket(_binding_0) => { in visit_macro_delimiter_mut()
Ddebug.rs1881 impl Debug for MacroDelimiter { implementation
1884 MacroDelimiter::Paren(v0) => { in fmt()
1889 MacroDelimiter::Brace(v0) => { in fmt()
1894 MacroDelimiter::Bracket(v0) => { in fmt()
Dvisit.rs469 fn visit_macro_delimiter(&mut self, i: &'ast MacroDelimiter) { in visit_macro_delimiter() argument
2626 pub fn visit_macro_delimiter<'ast, V>(v: &mut V, node: &'ast MacroDelimiter) in visit_macro_delimiter()
2631 MacroDelimiter::Paren(_binding_0) => { in visit_macro_delimiter()
2634 MacroDelimiter::Brace(_binding_0) => { in visit_macro_delimiter()
2637 MacroDelimiter::Bracket(_binding_0) => { in visit_macro_delimiter()
/external/rust/crates/syn/tests/debug/
Dgen.rs3541 impl Debug for Lite<syn::MacroDelimiter> {
3545 syn::MacroDelimiter::Paren(_val) => { in fmt()
3549 syn::MacroDelimiter::Brace(_val) => { in fmt()
3553 syn::MacroDelimiter::Bracket(_val) => { in fmt()