mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 05:15:04 +00:00
rename TreePtr -> TreeArc
This is much clearer about the semantics
This commit is contained in:
parent
aad1bf877e
commit
2d3940d0ab
25 changed files with 197 additions and 197 deletions
|
@ -106,9 +106,9 @@ fn validate_byte_code_escape(text: &str, range: TextRange, errors: &mut Vec<Synt
|
|||
|
||||
#[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!("const C: u8 = b'{}';", literal);
|
||||
SourceFile::parse(&src)
|
||||
}
|
||||
|
|
|
@ -43,9 +43,9 @@ pub(crate) fn validate_byte_string_node(node: &ast::ByteString, errors: &mut Vec
|
|||
|
||||
#[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 [u8] = b"{}";"#, literal);
|
||||
println!("Source: {}", src);
|
||||
SourceFile::parse(&src)
|
||||
|
|
|
@ -175,9 +175,9 @@ fn validate_unicode_escape(text: &str, range: TextRange, errors: &mut Vec<Syntax
|
|||
|
||||
#[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!("const C: char = '{}';", literal);
|
||||
SourceFile::parse(&src)
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue