Trait swc_html_parser::parser::input::ParserInput

source ·
pub trait ParserInput: Iterator<Item = TokenAndSpan> {
    // Required methods
    fn start_pos(&mut self) -> BytePos;
    fn last_pos(&mut self) -> BytePos;
    fn take_errors(&mut self) -> Vec<Error>;
    fn set_last_start_tag_name(&mut self, tag_name: &JsWord);
    fn set_input_state(&mut self, state: State);
    fn set_adjusted_current_node_to_html_namespace(&mut self, value: bool);
}

Required Methods§

source

fn start_pos(&mut self) -> BytePos

source

fn last_pos(&mut self) -> BytePos

source

fn take_errors(&mut self) -> Vec<Error>

source

fn set_last_start_tag_name(&mut self, tag_name: &JsWord)

source

fn set_input_state(&mut self, state: State)

source

fn set_adjusted_current_node_to_html_namespace(&mut self, value: bool)

Implementors§

source§

impl<I> ParserInput for Lexer<I>
where I: Input,