Separate parser API from implementation

This commit is contained in:
Aleksey Kladov
2018-02-11 16:53:57 +03:00
parent 7a0ada860b
commit 9e2c056478
8 changed files with 254 additions and 232 deletions

View File

@@ -70,7 +70,7 @@ impl Sink for FileBuilder {
let &(node, after_child) = self.in_progress.last().unwrap();
self.errors.push(SyntaxErrorData {
node,
message: err.message,
message: err.msg,
after_child,
})
}
@@ -157,5 +157,5 @@ fn grow(left: &mut TextRange, right: TextRange) {
#[derive(Default)]
pub(crate) struct ErrorMsg {
pub(crate) message: String,
pub(crate) msg: String,
}