mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 06:11:35 +00:00
Borrowed AST
This commit is contained in:
parent
70097504f7
commit
d3c90ded2b
16 changed files with 350 additions and 343 deletions
|
@ -10,7 +10,7 @@ use std::{
|
|||
};
|
||||
use clap::{App, Arg, SubCommand};
|
||||
use tools::collect_tests;
|
||||
use libeditor::{File, syntax_tree, file_structure};
|
||||
use libeditor::{ParsedFile, syntax_tree, file_structure};
|
||||
|
||||
type Result<T> = ::std::result::Result<T, failure::Error>;
|
||||
|
||||
|
@ -68,7 +68,7 @@ fn main() -> Result<()> {
|
|||
Ok(())
|
||||
}
|
||||
|
||||
fn file() -> Result<File> {
|
||||
fn file() -> Result<ParsedFile> {
|
||||
let text = read_stdin()?;
|
||||
Ok(libeditor::parse(&text))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue