diff options
Diffstat (limited to 'subprojects/frontend/src/editor/EditorStore.ts')
-rw-r--r-- | subprojects/frontend/src/editor/EditorStore.ts | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/subprojects/frontend/src/editor/EditorStore.ts b/subprojects/frontend/src/editor/EditorStore.ts index d0b580ed..c5dd5728 100644 --- a/subprojects/frontend/src/editor/EditorStore.ts +++ b/subprojects/frontend/src/editor/EditorStore.ts | |||
@@ -36,7 +36,7 @@ import { | |||
36 | } from '../utils/fileIO'; | 36 | } from '../utils/fileIO'; |
37 | import getLogger from '../utils/getLogger'; | 37 | import getLogger from '../utils/getLogger'; |
38 | import type XtextClient from '../xtext/XtextClient'; | 38 | import type XtextClient from '../xtext/XtextClient'; |
39 | import type { SemanticsSuccessResult } from '../xtext/xtextServiceResults'; | 39 | import type { SemanticsModelResult } from '../xtext/xtextServiceResults'; |
40 | 40 | ||
41 | import EditorErrors from './EditorErrors'; | 41 | import EditorErrors from './EditorErrors'; |
42 | import GeneratedModelStore from './GeneratedModelStore'; | 42 | import GeneratedModelStore from './GeneratedModelStore'; |
@@ -365,12 +365,11 @@ export default class EditorStore { | |||
365 | } | 365 | } |
366 | } | 366 | } |
367 | 367 | ||
368 | setSemanticsError(semanticsError: string) { | 368 | setSemanticsError(semanticsError: string | undefined) { |
369 | this.semanticsError = semanticsError; | 369 | this.semanticsError = semanticsError; |
370 | } | 370 | } |
371 | 371 | ||
372 | setSemantics(semantics: SemanticsSuccessResult) { | 372 | setSemantics(semantics: SemanticsModelResult) { |
373 | this.semanticsError = undefined; | ||
374 | this.graph.setSemantics(semantics); | 373 | this.graph.setSemantics(semantics); |
375 | } | 374 | } |
376 | 375 | ||
@@ -447,7 +446,7 @@ export default class EditorStore { | |||
447 | 446 | ||
448 | setGeneratedModelSemantics( | 447 | setGeneratedModelSemantics( |
449 | uuid: string, | 448 | uuid: string, |
450 | semantics: SemanticsSuccessResult, | 449 | semantics: SemanticsModelResult, |
451 | ): void { | 450 | ): void { |
452 | this.generatedModels.get(uuid)?.setSemantics(semantics); | 451 | this.generatedModels.get(uuid)?.setSemantics(semantics); |
453 | } | 452 | } |