File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11use std:: collections:: HashSet ;
2- use techscript_common:: { NodeIdGenerator , Span } ;
2+ use techscript_common:: NodeIdGenerator ;
33use techscript_errors:: { Diagnostic , DiagnosticLevel , DiagnosticReporter , ErrorCode } ;
44use techscript_syntax:: { Token , TokenKind } ;
55
@@ -18,7 +18,6 @@ pub struct Parser<'a> {
1818 pub ( crate ) dsl_sub_blocks : HashSet < String > ,
1919}
2020
21- #[ allow( dead_code) ]
2221impl < ' a > Parser < ' a > {
2322 /// Create a new Parser instance with DSL keyword registry initialized.
2423 pub fn new ( tokens : & ' a [ Token ] ) -> Self {
@@ -212,16 +211,6 @@ impl<'a> Parser<'a> {
212211 self . node_id_gen . next ( )
213212 }
214213
215- /// Returns the span of the current token.
216- pub ( crate ) fn current_span ( & self ) -> Span {
217- self . peek ( ) . span
218- }
219-
220- /// Returns the span of the previous token.
221- pub ( crate ) fn prev_span ( & self ) -> Span {
222- self . previous ( ) . span
223- }
224-
225214 /// Synchronizes the parser boundary to recover from syntax errors.
226215 pub ( crate ) fn synchronize ( & mut self ) {
227216 self . advance ( ) ;
You can’t perform that action at this time.
0 commit comments