Home
last modified time | relevance | path

Searched refs:Delimiter (Results 1 – 25 of 46) sorted by relevance

12

/external/rust/crates/syn/1.0.7/src/
Dtt.rs3 use proc_macro2::{Delimiter, TokenStream, TokenTree};
14 (Delimiter::Parenthesis, Delimiter::Parenthesis) in eq()
15 | (Delimiter::Brace, Delimiter::Brace) in eq()
16 | (Delimiter::Bracket, Delimiter::Bracket) in eq()
17 | (Delimiter::None, Delimiter::None) => {} in eq()
57 Delimiter::Parenthesis => 0u8.hash(h), in hash()
58 Delimiter::Brace => 1u8.hash(h), in hash()
59 Delimiter::Bracket => 2u8.hash(h), in hash()
60 Delimiter::None => 3u8.hash(h), in hash()
Dgroup.rs1 use proc_macro2::{Delimiter, Span};
39 parse_delimited(input, Delimiter::Parenthesis).map(|(span, content)| Parens { in parse_parens()
48 parse_delimited(input, Delimiter::Brace).map(|(span, content)| Braces { in parse_braces()
57 parse_delimited(input, Delimiter::Bracket).map(|(span, content)| Brackets { in parse_brackets()
65 parse_delimited(input, Delimiter::None).map(|(span, content)| Group { in parse_group()
73 delimiter: Delimiter, in parse_delimited() argument
84 Delimiter::Parenthesis => "expected parentheses", in parse_delimited()
85 Delimiter::Brace => "expected curly braces", in parse_delimited()
86 Delimiter::Bracket => "expected square brackets", in parse_delimited()
87 Delimiter::None => "expected invisible group", in parse_delimited()
Dmac.rs5 use proc_macro2::{Delimiter, Span, TokenTree};
179 Delimiter::Parenthesis => MacroDelimiter::Paren(Paren(span)), in parse_delimiter()
180 Delimiter::Brace => MacroDelimiter::Brace(Brace(span)), in parse_delimiter()
181 Delimiter::Bracket => MacroDelimiter::Bracket(Bracket(span)), in parse_delimiter()
182 Delimiter::None => { in parse_delimiter()
Dtoken.rs101 use proc_macro2::Delimiter;
552 lookahead::is_delimiter(cursor, Delimiter::Parenthesis) in peek()
563 lookahead::is_delimiter(cursor, Delimiter::Brace) in peek()
574 lookahead::is_delimiter(cursor, Delimiter::Bracket) in peek()
585 lookahead::is_delimiter(cursor, Delimiter::None) in peek()
913 use proc_macro2::{Delimiter, Group, Ident, Punct, Spacing, Span, TokenStream};
943 "(" => Delimiter::Parenthesis, in delim()
944 "[" => Delimiter::Bracket, in delim()
945 "{" => Delimiter::Brace, in delim()
946 " " => Delimiter::None, in delim()
Dbuffer.rs15 use proc_macro2::{Delimiter, Group, Ident, Literal, Punct, Spacing, Span, TokenStream, TokenTree};
211 if group.delimiter() == Delimiter::None { in ignore_none()
232 pub fn group(mut self, delim: Delimiter) -> Option<(Cursor<'a>, Span, Cursor<'a>)> { in group()
236 if delim != Delimiter::None { in group()
Dlookahead.rs3 use proc_macro2::{Delimiter, Span};
164 pub fn is_delimiter(cursor: Cursor, delimiter: Delimiter) -> bool { in is_delimiter()
Dparse.rs205 use proc_macro2::{self, Delimiter, Group, Literal, Punct, Span, TokenStream, TokenTree};
1007 for delim in &[Delimiter::Parenthesis, Delimiter::Brace, Delimiter::Bracket] { in parse()
/external/rust/crates/syn/0.15.42/src/
Dtt.rs3 use proc_macro2::{Delimiter, TokenStream, TokenTree};
14 (Delimiter::Parenthesis, Delimiter::Parenthesis) in eq()
15 | (Delimiter::Brace, Delimiter::Brace) in eq()
16 | (Delimiter::Bracket, Delimiter::Bracket) in eq()
17 | (Delimiter::None, Delimiter::None) => {} in eq()
59 Delimiter::Parenthesis => 0u8.hash(h), in hash()
60 Delimiter::Brace => 1u8.hash(h), in hash()
61 Delimiter::Bracket => 2u8.hash(h), in hash()
62 Delimiter::None => 3u8.hash(h), in hash()
Dgroup.rs1 use proc_macro2::{Delimiter, Span};
40 parse_delimited(input, Delimiter::Parenthesis).map(|(span, content)| Parens { in parse_parens()
49 parse_delimited(input, Delimiter::Brace).map(|(span, content)| Braces { in parse_braces()
58 parse_delimited(input, Delimiter::Bracket).map(|(span, content)| Brackets { in parse_brackets()
67 parse_delimited(input, Delimiter::None).map(|(span, content)| Group { in parse_group()
76 delimiter: Delimiter, in parse_delimited() argument
90 Delimiter::Parenthesis => "expected parentheses", in parse_delimited()
91 Delimiter::Brace => "expected curly braces", in parse_delimited()
92 Delimiter::Bracket => "expected square brackets", in parse_delimited()
93 Delimiter::None => "expected invisible group", in parse_delimited()
Dmac.rs4 use proc_macro2::{Delimiter, Span, TokenTree};
179 Delimiter::Parenthesis => MacroDelimiter::Paren(Paren(span)), in parse_delimiter()
180 Delimiter::Brace => MacroDelimiter::Brace(Brace(span)), in parse_delimiter()
181 Delimiter::Bracket => MacroDelimiter::Bracket(Bracket(span)), in parse_delimiter()
182 Delimiter::None => { in parse_delimiter()
Dtoken.rs101 use proc_macro2::Delimiter;
552 lookahead::is_delimiter(cursor, Delimiter::Parenthesis) in peek()
563 lookahead::is_delimiter(cursor, Delimiter::Brace) in peek()
574 lookahead::is_delimiter(cursor, Delimiter::Bracket) in peek()
585 lookahead::is_delimiter(cursor, Delimiter::None) in peek()
919 use proc_macro2::{Delimiter, Group, Ident, Punct, Spacing, Span, TokenStream};
949 "(" => Delimiter::Parenthesis, in delim()
950 "[" => Delimiter::Bracket, in delim()
951 "{" => Delimiter::Brace, in delim()
952 " " => Delimiter::None, in delim()
Dbuffer.rs15 use proc_macro2::{Delimiter, Group, Ident, Literal, Punct, Spacing, Span, TokenStream, TokenTree};
212 if group.delimiter() == Delimiter::None { in ignore_none()
233 pub fn group(mut self, delim: Delimiter) -> Option<(Cursor<'a>, Span, Cursor<'a>)> { in group()
237 if delim != Delimiter::None { in group()
Dlookahead.rs3 use proc_macro2::{Delimiter, Span};
164 pub fn is_delimiter(cursor: Cursor, delimiter: Delimiter) -> bool { in is_delimiter()
Dparse.rs207 use proc_macro2::{self, Delimiter, Group, Literal, Punct, Span, TokenStream, TokenTree};
1020 for delim in &[Delimiter::Parenthesis, Delimiter::Brace, Delimiter::Bracket] { in parse()
Derror.rs6 Delimiter, Group, Ident, LexError, Literal, Punct, Spacing, Span, TokenStream, TokenTree,
158 let mut group = Group::new(Delimiter::Brace, { in to_compile_error()
/external/rust/crates/proc-macro2/src/
Dwrapper.rs9 use crate::{fallback, Delimiter, Punct, Spacing, TokenTree};
547 pub fn new(delimiter: Delimiter, stream: TokenStream) -> Group { in new() argument
551 Delimiter::Parenthesis => proc_macro::Delimiter::Parenthesis, in new()
552 Delimiter::Bracket => proc_macro::Delimiter::Bracket, in new()
553 Delimiter::Brace => proc_macro::Delimiter::Brace, in new()
554 Delimiter::None => proc_macro::Delimiter::None, in new()
564 pub fn delimiter(&self) -> Delimiter { in delimiter() argument
567 proc_macro::Delimiter::Parenthesis => Delimiter::Parenthesis, in delimiter()
568 proc_macro::Delimiter::Bracket => Delimiter::Bracket, in delimiter()
569 proc_macro::Delimiter::Brace => Delimiter::Brace, in delimiter()
[all …]
Dfallback.rs15 use crate::{Delimiter, Punct, Spacing, TokenTree};
86 Delimiter::Parenthesis => ("(", ")"), in fmt()
87 Delimiter::Brace => ("{", "}"), in fmt()
88 Delimiter::Bracket => ("[", "]"), in fmt()
89 Delimiter::None => ("", ""), in fmt()
450 delimiter: Delimiter,
456 pub fn new(delimiter: Delimiter, stream: TokenStream) -> Group { in new() argument
464 pub fn delimiter(&self) -> Delimiter { in delimiter() argument
492 Delimiter::Parenthesis => ("(", ")"), in fmt()
493 Delimiter::Brace => ("{", "}"), in fmt()
[all …]
/external/clang/lib/StaticAnalyzer/Core/
DIssueHash.cpp182 static StringRef Delimiter = "$"; in GetIssueString() local
184 return (llvm::Twine(CheckerName) + Delimiter + in GetIssueString()
185 GetEnclosingDeclContextSignature(D) + Delimiter + in GetIssueString()
186 Twine(IssueLoc.getExpansionColumnNumber()) + Delimiter + in GetIssueString()
187 NormalizeLine(SM, IssueLoc, LangOpts) + Delimiter + BugType) in GetIssueString()
/external/rust/crates/syn/1.0.7/tests/
Dtest_grouping.rs6 use proc_macro2::{Delimiter, Group, Literal, Punct, Spacing, TokenStream, TokenTree};
17 Delimiter::None, in test_grouping()
/external/rust/crates/syn/0.15.42/tests/
Dtest_grouping.rs9 use proc_macro2::{Delimiter, Group, Literal, Punct, Spacing, TokenStream, TokenTree};
20 Delimiter::None, in test_grouping()
/external/llvm/lib/DebugInfo/Symbolize/
DDIPrinter.cpp74 StringRef Delimiter = PrintPretty ? " at " : "\n"; in print() local
76 OS << Prefix << FunctionName << Delimiter; in print()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/DebugInfo/Symbolize/
DDIPrinter.cpp74 StringRef Delimiter = PrintPretty ? " at " : "\n"; in print() local
76 OS << Prefix << FunctionName << Delimiter; in print()
/external/swiftshader/third_party/subzero/src/
DIceRangeSpec.cpp98 char Delimiter) { in tokenize() argument
104 DelimPos = Spec.find(Delimiter, StartPos); in tokenize()
/external/swiftshader/third_party/llvm-7.0/llvm/tools/llvm-symbolizer/
Dllvm-symbolizer.cpp181 StringRef Delimiter = ClPrettyPrint ? ": " : "\n"; in main() local
182 outs() << Delimiter; in main()
/external/llvm/tools/llvm-symbolizer/
Dllvm-symbolizer.cpp185 StringRef Delimiter = (ClPrettyPrint == true) ? ": " : "\n"; in main() local
186 outs() << Delimiter; in main()

12