Home
last modified time | relevance | path

Searched defs:Subtree (Results 1 – 25 of 27) sorted by relevance

12

/third_party/rust/rust/src/tools/rust-analyzer/crates/hir-expand/src/
Dbuiltin_fn_macro.rs122 _tt: &tt::Subtree, in module_path_expand()
123 ) -> ExpandResult<tt::Subtree> { in module_path_expand()
131 _tt: &tt::Subtree, in line_expand()
132 ) -> ExpandResult<tt::Subtree> { in line_expand()
144 _tt: &tt::Subtree, in log_syntax_expand()
145 ) -> ExpandResult<tt::Subtree> { in log_syntax_expand()
152 _tt: &tt::Subtree, in trace_macros_expand()
153 ) -> ExpandResult<tt::Subtree> { in trace_macros_expand()
160 tt: &tt::Subtree, in stringify_expand()
161 ) -> ExpandResult<tt::Subtree> { in stringify_expand()
[all …]
Dbuiltin_derive_macro.rs79 fn as_pattern(&self, path: tt::Subtree) -> tt::Subtree { in as_pattern()
93 path: tt::Subtree, in as_pattern_map()
94 field_map: impl Fn(&tt::Ident) -> tt::Subtree, in as_pattern_map()
143 fn as_pattern(&self, name: &tt::Ident) -> Vec<tt::Subtree> { in as_pattern()
165 field_map: impl Fn(&tt::Ident) -> tt::Subtree, in as_pattern_map()
166 ) -> Vec<tt::Subtree> { in as_pattern_map()
348 tt: &tt::Subtree, in expand_simple_derive()
349 trait_path: tt::Subtree, in expand_simple_derive()
350 make_trait_body: impl FnOnce(&BasicAdtInfo) -> tt::Subtree, in expand_simple_derive()
351 ) -> ExpandResult<tt::Subtree> { in expand_simple_derive()
[all …]
Dbuiltin_attr_macro.rs65 tt: &tt::Subtree, in dummy_attr_expand()
66 ) -> ExpandResult<tt::Subtree> { in dummy_attr_expand()
95 tt: &tt::Subtree, in derive_attr_expand()
96 ) -> ExpandResult<tt::Subtree> { in derive_attr_expand()
106 tt: &tt::Subtree, in pseudo_derive_attr_expansion()
107 args: &tt::Subtree, in pseudo_derive_attr_expansion()
108 ) -> ExpandResult<tt::Subtree> { in pseudo_derive_attr_expansion()
Dproc_macro.rs34 tt: &tt::Subtree, in expand()
35 attr_arg: Option<&tt::Subtree>, in expand()
36 ) -> ExpandResult<tt::Subtree> { in expand()
Dquote.rs131 fn to_subtree(self) -> crate::tt::Subtree; in to_subtree()
136 fn to_subtree(self) -> crate::tt::Subtree { in to_subtree()
145 impl IntoTt for crate::tt::Subtree { implementation
146 fn to_subtree(self) -> crate::tt::Subtree { in to_subtree()
171 impl ToTokenTree for crate::tt::Subtree { implementation
Ddb.rs51 tt: &tt::Subtree, in expand()
52 ) -> ExpandResult<tt::Subtree> { in expand()
121 ) -> Option<Arc<(tt::Subtree, mbe::TokenMap, fixup::SyntaxFixupUndoInfo)>>; in macro_arg()
132 fn macro_expand(&self, macro_call: MacroCallId) -> ExpandResult<Arc<tt::Subtree>>; in macro_expand()
145 fn expand_proc_macro(&self, call: MacroCallId) -> ExpandResult<tt::Subtree>; in expand_proc_macro()
303 ) -> Option<Arc<(tt::Subtree, mbe::TokenMap, fixup::SyntaxFixupUndoInfo)>> { in macro_arg()
441 fn macro_expand(db: &dyn ExpandDatabase, id: MacroCallId) -> ExpandResult<Arc<tt::Subtree>> { in macro_expand()
514 fn expand_proc_macro(db: &dyn ExpandDatabase, id: MacroCallId) -> ExpandResult<tt::Subtree> { in expand_proc_macro()
554 tt: &tt::Subtree, in token_tree_to_syntax_node()
Dfixup.rs292 tt: &mut Subtree, in reverse_fixups()
347 fn check_subtree_eq(a: &tt::Subtree, b: &tt::Subtree) -> bool { in check_subtree_eq()
Dattrs.rs232 tt: &tt::Subtree, in from_tt()
268 pub fn token_tree_value(&self) -> Option<&Subtree> { in token_tree_value()
371 subtree: &Subtree, in parse_cfg_attr_input()
/third_party/rust/rust/src/tools/rust-analyzer/crates/tt/src/
Dlib.rs38 pub type Subtree = crate::Subtree<Span>; typedef
61 impl Subtree { implementation
86 Subtree(Subtree<Span>), enumerator
109 pub struct Subtree<Span> { struct
111 pub delimiter: Delimiter<Span>,
112 pub token_trees: Vec<TokenTree<Span>>,
220 impl<Span: fmt::Debug> fmt::Debug for Subtree<Span> { implementation
235 impl<Span> fmt::Display for Subtree<Span> { implementation
291 impl<Span> Subtree<Span> { impl
307 impl<Span> Subtree<Span> { impl
Dbuffer.rs22 Subtree(Option<&'t TokenTree<Span>>, &'t Subtree<Span>, EntryId), enumerator
66 impl<'a, Span> TokenList<'a, Span> for &'a Subtree<Span> { implementation
133 Subtree(&'a Subtree<Span>, Option<&'a TokenTree<Span>>), enumerator
/third_party/rust/rust/src/tools/rust-analyzer/crates/base-db/src/
Dfixture.rs496 subtree: &Subtree, in expand()
497 _: Option<&Subtree>, in expand()
499 ) -> Result<Subtree, ProcMacroExpansionError> { in expand()
510 _: &Subtree, in expand()
511 attrs: Option<&Subtree>, in expand()
513 ) -> Result<Subtree, ProcMacroExpansionError> { in expand()
525 input: &Subtree, in expand()
526 _: Option<&Subtree>, in expand()
528 ) -> Result<Subtree, ProcMacroExpansionError> { in expand()
529 fn traverse(input: &Subtree) -> Subtree { in expand()
[all …]
/third_party/rust/rust/src/tools/rust-analyzer/crates/proc-macro-srv/src/
Dproc_macros.rs46 macro_body: &tt::Subtree, in expand()
47 attributes: Option<&tt::Subtree>, in expand()
48 ) -> Result<tt::Subtree, crate::PanicMessage> { in expand()
Ddylib.rs153 macro_body: &crate::tt::Subtree, in expand()
154 attributes: Option<&crate::tt::Subtree>, in expand()
155 ) -> Result<crate::tt::Subtree, String> { in expand()
/third_party/rust/rust/src/tools/rust-analyzer/crates/rust-analyzer/src/
Dreload.rs828 subtree: &tt::Subtree, in load_proc_macro()
829 attrs: Option<&tt::Subtree>, in load_proc_macro()
831 ) -> Result<tt::Subtree, ProcMacroExpansionError> { in load_proc_macro()
848 subtree: &tt::Subtree, in load_proc_macro()
849 _: Option<&tt::Subtree>, in load_proc_macro()
851 ) -> Result<tt::Subtree, ProcMacroExpansionError> { in load_proc_macro()
863 _: &tt::Subtree, in load_proc_macro()
864 _: Option<&tt::Subtree>, in load_proc_macro()
866 ) -> Result<tt::Subtree, ProcMacroExpansionError> { in load_proc_macro()
/third_party/rust/rust/src/tools/rust-analyzer/crates/mbe/src/
Dexpander.rs15 input: &tt::Subtree, in expand_rules()
17 ) -> ExpandResult<tt::Subtree> { in expand_rules()
Dbenchmark.rs77 fn invocation_fixtures(rules: &FxHashMap<String, DeclarativeMacro>) -> Vec<(String, tt::Subtree)> { in invocation_fixtures()
122 fn collect_from_op(op: &Op, parent: &mut tt::Subtree, seed: &mut usize) { in invocation_fixtures()
Dlib.rs179 pub fn shift_all(self, tt: &mut tt::Subtree) { in shift_all()
218 tt: &tt::Subtree, in parse_macro_rules()
245 pub fn parse_macro2(tt: &tt::Subtree, is_2021: bool) -> Result<DeclarativeMacro, ParseError> { in parse_macro2()
277 pub fn expand(&self, tt: &tt::Subtree) -> ExpandResult<tt::Subtree> { in expand()
Dsyntax_bridge.rs27 pub fn syntax_node_to_token_tree(node: &SyntaxNode) -> (tt::Subtree, TokenMap) { in syntax_node_to_token_tree()
46 ) -> (tt::Subtree, TokenMap, u32) { in syntax_node_to_token_tree_with_modifications()
80 tt: &tt::Subtree, in token_tree_to_syntax_node()
110 pub fn parse_to_token_tree(text: &str) -> Option<(tt::Subtree, TokenMap)> { in parse_to_token_tree()
131 pub fn parse_exprs_with_sep(tt: &tt::Subtree, sep: char) -> Vec<tt::Subtree> { in parse_exprs_with_sep()
167 fn convert_tokens<C: TokenConverter>(conv: &mut C) -> tt::Subtree { in convert_tokens()
Dparser.rs38 fn parse(tt: &tt::Subtree, mode: Mode) -> Result<MetaTemplate, ParseError> { in parse()
58 Subtree { tokens: MetaTemplate, delimiter: tt::Delimiter }, enumerator
Dtt_iter.rs39 pub(crate) fn expect_subtree(&mut self) -> Result<&'a tt::Subtree, ()> { in expect_subtree()
/third_party/rust/rust/src/tools/rust-analyzer/crates/hir-def/src/macro_expansion_tests/
Dmod.rs252 fn extract_id_ranges(ranges: &mut Vec<(TextRange, TokenId)>, map: &TokenMap, tree: &Subtree) { in extract_id_ranges()
345 subtree: &Subtree, in expand()
346 _: Option<&Subtree>, in expand()
348 ) -> Result<Subtree, base_db::ProcMacroExpansionError> { in expand()
/third_party/rust/rust/src/tools/rust-analyzer/crates/proc-macro-api/src/
Dlib.rs139 subtree: &tt::Subtree, in expand()
140 attr: Option<&tt::Subtree>, in expand()
142 ) -> Result<Result<tt::Subtree, PanicMessage>, ServerError> { in expand()
/third_party/rust/rust/src/tools/rust-analyzer/crates/mbe/src/expander/
Dtranscriber.rs114 ) -> ExpandResult<tt::Subtree> { in transcribe()
142 ) -> ExpandResult<tt::Subtree> { in expand_subtree()
407 fn push_subtree(buf: &mut Vec<tt::TokenTree>, tt: tt::Subtree) { in push_subtree()
/third_party/rust/rust/src/tools/rust-analyzer/crates/proc-macro-api/src/msg/
Dflat.rs81 pub fn new(subtree: &tt::Subtree, version: u32) -> FlatTree { in new()
113 pub fn to_subtree(self, version: u32) -> tt::Subtree { in to_subtree()
227 fn write(&mut self, root: &'a tt::Subtree) { in write()
234 fn subtree(&mut self, idx: usize, subtree: &'a tt::Subtree) { in subtree() method
306 pub(crate) fn read(self) -> tt::Subtree { in read()
/third_party/rust/rust/src/tools/rust-analyzer/crates/proc-macro-srv/src/server/
Dtoken_stream.rs23 pub(crate) fn into_subtree(self) -> tt::Subtree { in into_subtree()
130 fn subtree_replace_token_ids_with_unspecified(subtree: tt::Subtree) -> tt::Subtree { in subtree_replace_token_ids_with_unspecified()

12