You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -56,22 +55,23 @@ class MPSMetaModelExporter(private val outputFolder: File) {
56
55
}
57
56
processedLanguages.add(languageModule)
58
57
59
-
val structureModel =LanguageAspect.STRUCTURE[languageModule]
60
-
val rootNodes = structureModel!!.rootNodes
58
+
val structureModel =LanguageAspect.STRUCTURE[languageModule]?:return
59
+
val rootNodes = structureModel.rootNodes
61
60
62
61
val concepts =SNodeOperations.ofConcept(rootNodes, CONCEPTS.AbstractConceptDeclaration).map { concept:SNode->
63
62
val properties =SLinkOperations.getChildren(concept, LINKS.propertyDeclaration)
64
63
.map { it:SNode->
65
-
var type:PropertyType?=PrimitivePropertyType(Primitive.STRING)
66
-
if (SLinkOperations.getPointer(it, LINKS.dataType) ==SNodePointer("r:00000000-0000-4000-0000-011c89590288(jetbrains.mps.lang.core.structure)", "1082983657062")) {
67
-
type =PrimitivePropertyType(Primitive.INT)
64
+
val type =if (SLinkOperations.getPointer(it, LINKS.dataType) ==SNodePointer("r:00000000-0000-4000-0000-011c89590288(jetbrains.mps.lang.core.structure)", "1082983657062")) {
0 commit comments