@@ -30,20 +30,20 @@ mod syntax_kinds;
3030/// Utilities for simple uses of the parser.
3131pub mod utils;
3232mod validation;
33- mod yellow ;
33+ mod syntax_node ;
3434mod ptr;
3535
3636pub use rowan:: { SmolStr , TextRange , TextUnit } ;
3737pub use crate :: {
3838 ast:: AstNode ,
3939 lexer:: { tokenize, Token } ,
4040 syntax_kinds:: SyntaxKind ,
41- yellow :: { Direction , SyntaxError , SyntaxNode , WalkEvent , Location , TreeArc } ,
41+ syntax_node :: { Direction , SyntaxError , SyntaxNode , WalkEvent , Location , TreeArc } ,
4242 ptr:: { SyntaxNodePtr , AstPtr } ,
4343} ;
4444
4545use ra_text_edit:: AtomTextEdit ;
46- use crate :: yellow :: GreenNode ;
46+ use crate :: syntax_node :: GreenNode ;
4747
4848/// `SourceFile` represents a parse tree for a single Rust file.
4949pub use crate :: ast:: SourceFile ;
@@ -61,7 +61,7 @@ impl SourceFile {
6161 pub fn parse ( text : & str ) -> TreeArc < SourceFile > {
6262 let tokens = tokenize ( & text) ;
6363 let ( green, errors) =
64- parser_impl:: parse_with ( yellow :: GreenBuilder :: new ( ) , text, & tokens, grammar:: root) ;
64+ parser_impl:: parse_with ( syntax_node :: GreenBuilder :: new ( ) , text, & tokens, grammar:: root) ;
6565 SourceFile :: new ( green, errors)
6666 }
6767
0 commit comments