Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 1 addition & 12 deletions compiler/parser/src/parser.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use std::collections::HashSet;
use techscript_common::{NodeIdGenerator, Span};
use techscript_common::NodeIdGenerator;
use techscript_errors::{Diagnostic, DiagnosticLevel, DiagnosticReporter, ErrorCode};
use techscript_syntax::{Token, TokenKind};

Expand All @@ -18,7 +18,6 @@ pub struct Parser<'a> {
pub(crate) dsl_sub_blocks: HashSet<String>,
}

#[allow(dead_code)]
impl<'a> Parser<'a> {
/// Create a new Parser instance with DSL keyword registry initialized.
pub fn new(tokens: &'a [Token]) -> Self {
Expand Down Expand Up @@ -212,16 +211,6 @@ impl<'a> Parser<'a> {
self.node_id_gen.next()
}

/// Returns the span of the current token.
pub(crate) fn current_span(&self) -> Span {
self.peek().span
}

/// Returns the span of the previous token.
pub(crate) fn prev_span(&self) -> Span {
self.previous().span
}

/// Synchronizes the parser boundary to recover from syntax errors.
pub(crate) fn synchronize(&mut self) {
self.advance();
Expand Down
Loading