Preparation for new partial syntax

This commit is contained in:
Yura Dupyn 2026-04-25 14:55:36 +02:00
parent 437e91a004
commit 84cfc5863e
7 changed files with 99 additions and 36 deletions

View file

@ -2,7 +2,7 @@ import { createMemo, createSignal, Show } from 'solid-js';
import { sourceText } from 'source-region';
import type { CodePointSpan, SourceRegion, SourceText } from 'source-region';
import { parseDocument } from '../parser';
import type { ParseError } from '../parser';
import type { ParseError } from '../parse_errors';
import type { ConcreteSyntax } from '../syntax';
import { spanLabel } from './format';
import { PaneHeader, PaneSplitter } from './Pane';

View file

@ -1,7 +1,7 @@
import { For, Show } from 'solid-js';
import type { JSX } from 'solid-js';
import type { CodePointSpan } from 'source-region';
import type { ParseError } from '../parser';
import type { ParseError } from '../parse_errors';
import type { ConcreteSyntax } from '../syntax';
import { Expr } from '../syntax';
import { errorDetail, errorLabel, errorTitle } from './format';

View file

@ -1,5 +1,5 @@
import type { CodePointSpan } from 'source-region';
import type { FoundSyntax, ParseError } from '../parser';
import type { FoundSyntax, ParseError } from '../parse_errors';
export function errorTitle(error: ParseError): string {
switch (error.tag) {