Update to new source-region SourceRegion abstraction

This commit is contained in:
Yura Dupyn 2026-04-06 19:47:06 +02:00
parent 38b147c3e7
commit 909caaf7ac
12 changed files with 63 additions and 52 deletions

View file

@ -1,6 +1,6 @@
import { For, Match, Show, Switch } from "solid-js";
import { ParseError } from "src/lang/parser/parser";
import { SourceText } from "source-text";
import { SourceRegion } from "source-text";
import { ShowParseError } from 'src/ui/Component/ParseError';
import { Program } from "src/lang/program";
@ -13,7 +13,7 @@ export type DigithError = {
export namespace DigithError {
export type Payload =
| { tag: "Parse", err: ParseError, src: SourceText }
| { tag: "Parse", err: ParseError, src: SourceRegion }
| { tag: "Program", err: Program.Error };
export type Id = string;