From 2c3254c536b526cf17d8f27a46b88276a89a7e77 Mon Sep 17 00:00:00 2001 From: Niko Stotz Date: Mon, 14 Oct 2024 18:05:13 +0200 Subject: [PATCH] added special annotations to helper concepts and docs --- docs/reference/converter-lang.adoc | 10 ++++++ .../io.lionweb.mps.converter.lang.editor.mps | 9 ++++++ ....lionweb.mps.converter.lang.intentions.mps | 16 ++++++++++ ...o.lionweb.mps.converter.lang.structure.mps | 5 +++ ...web.mps.converter.test.converter@tests.mps | 31 +++++++++++++++++++ 5 files changed, 71 insertions(+) diff --git a/docs/reference/converter-lang.adoc b/docs/reference/converter-lang.adoc index a397138..85001a0 100644 --- a/docs/reference/converter-lang.adoc +++ b/docs/reference/converter-lang.adoc @@ -48,6 +48,16 @@ Converts all listed languages completely. If any element in the listed languages uses an element from a non-listed language, we include the element of the non-listed language -- but not any other elements of that non-listed language. We apply this strategy (known as _tree shaking_) transitively until we included all used elements. +We can set some flags for special annotation handling: + +[horizontal] +export description annotations:: +Whether concept descriptions should be exported as instances of `io.lionweb.mps.specific.lang.MPS-specific annotations.ConceptDescription`. + +export special annotations:: +Whether special concept annotations should be exported: ++ +* `jetbrains.mps.lang.structure.structure.DeprecatedNodeAnnotation` -> `io.lionweb.mps.specific.lang.MPS-specific annotations.Deprecated` [[instance-json]] == MPS Instance Model ↔ JSON diff --git a/languages/io.lionweb.mps.converter.lang/models/io.lionweb.mps.converter.lang.editor.mps b/languages/io.lionweb.mps.converter.lang/models/io.lionweb.mps.converter.lang.editor.mps index 5887193..081f643 100644 --- a/languages/io.lionweb.mps.converter.lang/models/io.lionweb.mps.converter.lang.editor.mps +++ b/languages/io.lionweb.mps.converter.lang/models/io.lionweb.mps.converter.lang.editor.mps @@ -257,6 +257,15 @@ + + + + + + + + + diff --git a/languages/io.lionweb.mps.converter.lang/models/io.lionweb.mps.converter.lang.intentions.mps b/languages/io.lionweb.mps.converter.lang/models/io.lionweb.mps.converter.lang.intentions.mps index ddf5f93..88ed3b8 100644 --- a/languages/io.lionweb.mps.converter.lang/models/io.lionweb.mps.converter.lang.intentions.mps +++ b/languages/io.lionweb.mps.converter.lang/models/io.lionweb.mps.converter.lang.intentions.mps @@ -2175,6 +2175,22 @@ + + + + + + + + + + + + + + + + diff --git a/languages/io.lionweb.mps.converter.lang/models/io.lionweb.mps.converter.lang.structure.mps b/languages/io.lionweb.mps.converter.lang/models/io.lionweb.mps.converter.lang.structure.mps index 7ac4be4..ca3b3b5 100644 --- a/languages/io.lionweb.mps.converter.lang/models/io.lionweb.mps.converter.lang.structure.mps +++ b/languages/io.lionweb.mps.converter.lang/models/io.lionweb.mps.converter.lang.structure.mps @@ -228,6 +228,11 @@ + + + + + diff --git a/solutions/io.lionweb.mps.converter.test/models/io.lionweb.mps.converter.test.converter@tests.mps b/solutions/io.lionweb.mps.converter.test/models/io.lionweb.mps.converter.test.converter@tests.mps index 5711449..ec43552 100644 --- a/solutions/io.lionweb.mps.converter.test/models/io.lionweb.mps.converter.test.converter@tests.mps +++ b/solutions/io.lionweb.mps.converter.test/models/io.lionweb.mps.converter.test.converter@tests.mps @@ -24,6 +24,12 @@ + + + + + + @@ -151,9 +157,15 @@ + + + + + + @@ -3718,5 +3730,24 @@ + + + + + + + + + + + + + + + + + + +