aboutsummaryrefslogtreecommitdiffstats
path: root/subprojects/frontend/src/editor
diff options
context:
space:
mode:
authorLibravatar Kristóf Marussy <kristof@marussy.com>2023-08-23 03:36:25 +0200
committerLibravatar Kristóf Marussy <kristof@marussy.com>2023-08-23 03:36:25 +0200
commit0e54d399424374d497d08a8631c4761dece57ceb (patch)
treebd0873080b4bc3b81984852def5e435e51292d0d /subprojects/frontend/src/editor
parentfix: predicate value translation (diff)
downloadrefinery-0e54d399424374d497d08a8631c4761dece57ceb.tar.gz
refinery-0e54d399424374d497d08a8631c4761dece57ceb.tar.zst
refinery-0e54d399424374d497d08a8631c4761dece57ceb.zip
feat: dot visualization
Diffstat (limited to 'subprojects/frontend/src/editor')
-rw-r--r--subprojects/frontend/src/editor/EditorStore.ts5
1 files changed, 3 insertions, 2 deletions
diff --git a/subprojects/frontend/src/editor/EditorStore.ts b/subprojects/frontend/src/editor/EditorStore.ts
index 563725bb..10f01099 100644
--- a/subprojects/frontend/src/editor/EditorStore.ts
+++ b/subprojects/frontend/src/editor/EditorStore.ts
@@ -28,6 +28,7 @@ import { nanoid } from 'nanoid';
28import type PWAStore from '../PWAStore'; 28import type PWAStore from '../PWAStore';
29import getLogger from '../utils/getLogger'; 29import getLogger from '../utils/getLogger';
30import type XtextClient from '../xtext/XtextClient'; 30import type XtextClient from '../xtext/XtextClient';
31import type { SemanticsSuccessResult } from '../xtext/xtextServiceResults';
31 32
32import EditorErrors from './EditorErrors'; 33import EditorErrors from './EditorErrors';
33import LintPanelStore from './LintPanelStore'; 34import LintPanelStore from './LintPanelStore';
@@ -65,7 +66,7 @@ export default class EditorStore {
65 66
66 semanticsError: string | undefined; 67 semanticsError: string | undefined;
67 68
68 semantics: unknown = {}; 69 semantics: SemanticsSuccessResult | undefined;
69 70
70 constructor(initialValue: string, pwaStore: PWAStore) { 71 constructor(initialValue: string, pwaStore: PWAStore) {
71 this.id = nanoid(); 72 this.id = nanoid();
@@ -295,7 +296,7 @@ export default class EditorStore {
295 this.semanticsError = semanticsError; 296 this.semanticsError = semanticsError;
296 } 297 }
297 298
298 setSemantics(semantics: unknown) { 299 setSemantics(semantics: SemanticsSuccessResult) {
299 this.semanticsError = undefined; 300 this.semanticsError = undefined;
300 this.semantics = semantics; 301 this.semantics = semantics;
301 } 302 }