aboutsummaryrefslogtreecommitdiffstats
path: root/subprojects/frontend/src/xtext
diff options
context:
space:
mode:
authorLibravatar Kristóf Marussy <marussy@mit.bme.hu>2024-01-04 18:29:13 +0100
committerLibravatar GitHub <noreply@github.com>2024-01-04 18:29:13 +0100
commit667045429b1d7fdc49d7ecae75b7673d7a2c240e (patch)
tree76daca5944872f0b21d6cef472c5cb0b393dff8b /subprojects/frontend/src/xtext
parentMerge pull request #50 from kris7t/generator-roundtrip (diff)
parentfeat(web): toggle identifier coloring (diff)
downloadrefinery-667045429b1d7fdc49d7ecae75b7673d7a2c240e.tar.gz
refinery-667045429b1d7fdc49d7ecae75b7673d7a2c240e.tar.zst
refinery-667045429b1d7fdc49d7ecae75b7673d7a2c240e.zip
Merge pull request #51 from kris7t/color-identifiers
Color identifiers
Diffstat (limited to 'subprojects/frontend/src/xtext')
-rw-r--r--subprojects/frontend/src/xtext/xtextServiceResults.ts9
1 files changed, 5 insertions, 4 deletions
diff --git a/subprojects/frontend/src/xtext/xtextServiceResults.ts b/subprojects/frontend/src/xtext/xtextServiceResults.ts
index e473bd48..792c7de3 100644
--- a/subprojects/frontend/src/xtext/xtextServiceResults.ts
+++ b/subprojects/frontend/src/xtext/xtextServiceResults.ts
@@ -1,5 +1,5 @@
1/* 1/*
2 * SPDX-FileCopyrightText: 2021-2023 The Refinery Authors <https://refinery.tools/> 2 * SPDX-FileCopyrightText: 2021-2024 The Refinery Authors <https://refinery.tools/>
3 * 3 *
4 * SPDX-License-Identifier: EPL-2.0 4 * SPDX-License-Identifier: EPL-2.0
5 */ 5 */
@@ -137,6 +137,7 @@ export type ModelGenerationStartedResult = z.infer<
137export const NodeMetadata = z.object({ 137export const NodeMetadata = z.object({
138 name: z.string(), 138 name: z.string(),
139 simpleName: z.string(), 139 simpleName: z.string(),
140 typeHash: z.string().optional(),
140 kind: z.enum(['IMPLICIT', 'INDIVIDUAL', 'NEW']), 141 kind: z.enum(['IMPLICIT', 'INDIVIDUAL', 'NEW']),
141}); 142});
142 143
@@ -182,15 +183,15 @@ export type SemanticsResult = z.infer<typeof SemanticsResult>;
182 183
183export const ModelGenerationResult = z.union([ 184export const ModelGenerationResult = z.union([
184 z.object({ 185 z.object({
185 uuid: z.string().nonempty(), 186 uuid: z.string().min(1),
186 status: z.string(), 187 status: z.string(),
187 }), 188 }),
188 z.object({ 189 z.object({
189 uuid: z.string().nonempty(), 190 uuid: z.string().min(1),
190 error: z.string(), 191 error: z.string(),
191 }), 192 }),
192 SemanticsSuccessResult.extend({ 193 SemanticsSuccessResult.extend({
193 uuid: z.string().nonempty(), 194 uuid: z.string().min(1),
194 }), 195 }),
195]); 196]);
196 197