diff options
author | Kristóf Marussy <kristof@marussy.com> | 2023-08-17 02:32:26 +0200 |
---|---|---|
committer | Kristóf Marussy <kristof@marussy.com> | 2023-08-17 02:43:55 +0200 |
commit | eb5da232b5954895b449957c73e35d0b36e3a902 (patch) | |
tree | a8714116cfe3102659e9c5e5b90131e7ec248492 /subprojects/frontend/src/xtext/XtextClient.ts | |
parent | chore(deps): bump dependencies (diff) | |
download | refinery-eb5da232b5954895b449957c73e35d0b36e3a902.tar.gz refinery-eb5da232b5954895b449957c73e35d0b36e3a902.tar.zst refinery-eb5da232b5954895b449957c73e35d0b36e3a902.zip |
feat: basic semantics mapping and visualization
Diffstat (limited to 'subprojects/frontend/src/xtext/XtextClient.ts')
-rw-r--r-- | subprojects/frontend/src/xtext/XtextClient.ts | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/subprojects/frontend/src/xtext/XtextClient.ts b/subprojects/frontend/src/xtext/XtextClient.ts index abdf8518..d145cd30 100644 --- a/subprojects/frontend/src/xtext/XtextClient.ts +++ b/subprojects/frontend/src/xtext/XtextClient.ts | |||
@@ -38,7 +38,7 @@ export default class XtextClient { | |||
38 | private readonly occurrencesService: OccurrencesService; | 38 | private readonly occurrencesService: OccurrencesService; |
39 | 39 | ||
40 | constructor( | 40 | constructor( |
41 | store: EditorStore, | 41 | private readonly store: EditorStore, |
42 | private readonly pwaStore: PWAStore, | 42 | private readonly pwaStore: PWAStore, |
43 | ) { | 43 | ) { |
44 | this.webSocketClient = new XtextWebSocketClient( | 44 | this.webSocketClient = new XtextWebSocketClient( |
@@ -114,6 +114,9 @@ export default class XtextClient { | |||
114 | case 'validate': | 114 | case 'validate': |
115 | this.validationService.onPush(push); | 115 | this.validationService.onPush(push); |
116 | return; | 116 | return; |
117 | case 'semantics': | ||
118 | this.store.setSemantics(push); | ||
119 | return; | ||
117 | default: | 120 | default: |
118 | throw new Error('Unknown service'); | 121 | throw new Error('Unknown service'); |
119 | } | 122 | } |