mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
Defined new trait ParseErrorReporter and added error_reporter member to ParserContext
This commit is contained in:
parent
8efc954531
commit
996e9e06b2
24 changed files with 194 additions and 69 deletions
|
@ -24,3 +24,9 @@ extern crate util;
|
|||
#[macro_use]
|
||||
pub mod values;
|
||||
pub mod viewport;
|
||||
|
||||
use cssparser::{Parser, SourcePosition};
|
||||
pub trait ParseErrorReporter {
|
||||
fn report_error(&self, input: &mut Parser, position: SourcePosition, message: &str);
|
||||
fn clone(&self) -> Box<ParseErrorReporter + Send + Sync>;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue