Update to new source-region SourceRegion abstraction
This commit is contained in:
parent
38b147c3e7
commit
909caaf7ac
12 changed files with 63 additions and 52 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue