From 4e91c23c796988e3934afabf619185333f85c116 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Tue, 12 Feb 2019 18:41:57 +0300 Subject: rename yellow -> syntax_node why yellow in the first place? Its red + green. --- crates/ra_syntax/src/lib.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'crates/ra_syntax/src/lib.rs') diff --git a/crates/ra_syntax/src/lib.rs b/crates/ra_syntax/src/lib.rs index 088b2f5d7..cbba1d4ae 100644 --- a/crates/ra_syntax/src/lib.rs +++ b/crates/ra_syntax/src/lib.rs @@ -30,7 +30,7 @@ mod syntax_kinds; /// Utilities for simple uses of the parser. pub mod utils; mod validation; -mod yellow; +mod syntax_node; mod ptr; pub use rowan::{SmolStr, TextRange, TextUnit}; @@ -38,12 +38,12 @@ pub use crate::{ ast::AstNode, lexer::{tokenize, Token}, syntax_kinds::SyntaxKind, - yellow::{Direction, SyntaxError, SyntaxNode, WalkEvent, Location, TreeArc}, + syntax_node::{Direction, SyntaxError, SyntaxNode, WalkEvent, Location, TreeArc}, ptr::{SyntaxNodePtr, AstPtr}, }; use ra_text_edit::AtomTextEdit; -use crate::yellow::GreenNode; +use crate::syntax_node::GreenNode; /// `SourceFile` represents a parse tree for a single Rust file. pub use crate::ast::SourceFile; @@ -61,7 +61,7 @@ impl SourceFile { pub fn parse(text: &str) -> TreeArc { let tokens = tokenize(&text); let (green, errors) = - parser_impl::parse_with(yellow::GreenBuilder::new(), text, &tokens, grammar::root); + parser_impl::parse_with(syntax_node::GreenBuilder::new(), text, &tokens, grammar::root); SourceFile::new(green, errors) } -- cgit v1.2.3