mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 12:29:21 +00:00
Add dylib loading code
This commit is contained in:
parent
dde9488559
commit
f7f121d60d
5 changed files with 277 additions and 1 deletions
|
@ -34,6 +34,10 @@ impl TokenStream {
|
|||
TokenStream { subtree: Default::default() }
|
||||
}
|
||||
|
||||
pub fn with_subtree(subtree: tt::Subtree) -> Self {
|
||||
TokenStream { subtree }
|
||||
}
|
||||
|
||||
pub fn is_empty(&self) -> bool {
|
||||
self.subtree.token_trees.is_empty()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue