mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-02 16:21:11 +00:00
Introduce LineColumnRegion and force conversion
This commit is contained in:
parent
721233f9c8
commit
82d2be0635
11 changed files with 507 additions and 287 deletions
|
@ -28,7 +28,7 @@ use roc_parse::header::PackageName;
|
|||
use roc_parse::header::{ExposedName, ImportsEntry, PackageEntry, PlatformHeader, To, TypedIdent};
|
||||
use roc_parse::module::module_defs;
|
||||
use roc_parse::parser::{ParseProblem, Parser, SyntaxError};
|
||||
use roc_region::all::{Loc, Region};
|
||||
use roc_region::all::{Loc, Region, LineInfo};
|
||||
use roc_solve::module::SolvedModule;
|
||||
use roc_solve::solve;
|
||||
use roc_types::solved_types::Solved;
|
||||
|
@ -4331,7 +4331,10 @@ fn to_parse_problem_report<'a>(
|
|||
let alloc = RocDocAllocator::new(&src_lines, module_id, &interns);
|
||||
|
||||
let starting_line = 0;
|
||||
let report = parse_problem(&alloc, problem.filename.clone(), starting_line, problem);
|
||||
|
||||
let lines = LineInfo::new(src);
|
||||
|
||||
let report = parse_problem(&alloc, &lines, problem.filename.clone(), starting_line, problem);
|
||||
|
||||
let mut buf = String::new();
|
||||
let palette = DEFAULT_PALETTE;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue