Skip to content

Improve syntax error with line information. #844

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 18, 2019

Conversation

windelbouwman
Copy link
Contributor

No description provided.


use std::error::Error;
use std::fmt;

#[derive(Debug)]
pub enum CompileError {
pub struct CompileError {
pub error: CompileErrorType,
Copy link
Member

@coolreader18 coolreader18 Apr 17, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe something like problem or issue for naming here instead of error/CompileErrorType?

@codecov-io
Copy link

Codecov Report

Merging #844 into master will decrease coverage by 0.03%.
The diff coverage is 20%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #844      +/-   ##
==========================================
- Coverage   63.16%   63.13%   -0.04%     
==========================================
  Files          87       87              
  Lines       14381    14414      +33     
  Branches     3255     3257       +2     
==========================================
+ Hits         9084     9100      +16     
- Misses       3162     3176      +14     
- Partials     2135     2138       +3
Impacted Files Coverage Δ
src/main.rs 20% <0%> (-0.54%) ⬇️
wasm/lib/src/vm_class.rs 0% <0%> (ø) ⬆️
vm/src/exceptions.rs 47.54% <0%> (ø) ⬆️
vm/src/error.rs 13.79% <10.52%> (+13.79%) ⬆️
vm/src/builtins.rs 66.47% <100%> (+0.06%) ⬆️
vm/src/vm.rs 71.88% <100%> (+0.81%) ⬆️
vm/src/compile.rs 77.15% <11.11%> (-0.8%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 615a121...b34784e. Read the comment docs.

@windelbouwman windelbouwman merged commit 6cf7f79 into master Apr 18, 2019
@windelbouwman windelbouwman deleted the improve-syntax-error branch April 24, 2019 07:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants