rename TreePtr -> TreeArc
This is much clearer about the semantics
This commit is contained in:
@@ -38,9 +38,9 @@ pub(crate) fn validate_string_node(node: &ast::String, errors: &mut Vec<SyntaxEr
|
||||
|
||||
#[cfg(test)]
|
||||
mod test {
|
||||
use crate::{SourceFile, TreePtr};
|
||||
use crate::{SourceFile, TreeArc};
|
||||
|
||||
fn build_file(literal: &str) -> TreePtr<SourceFile> {
|
||||
fn build_file(literal: &str) -> TreeArc<SourceFile> {
|
||||
let src = format!(r#"const S: &'static str = "{}";"#, literal);
|
||||
println!("Source: {}", src);
|
||||
SourceFile::parse(&src)
|
||||
|
||||
Reference in New Issue
Block a user