@@ -38,7 +38,11 @@ object BuiltinLanguages {
38
38
addConcept(this )
39
39
}
40
40
41
- val virtualPackage by property(" ceab5195-25ea-4f22-9b92-103b95ca8c0c/1133920641626/1193676396447" )
41
+ val virtualPackage = SimpleProperty (
42
+ " virtualPackage" ,
43
+ uid = " ceab5195-25ea-4f22-9b92-103b95ca8c0c/1133920641626/1193676396447" ,
44
+ ).also (this ::addProperty)
45
+
42
46
val smodelAttribute by childLink(" ceab5195-25ea-4f22-9b92-103b95ca8c0c/1133920641626/5169995583184591170" ).multiple()
43
47
.optional().type { Attribute }
44
48
}
@@ -63,7 +67,10 @@ object BuiltinLanguages {
63
67
64
68
object INamedConcept : SimpleConcept(conceptName = " INamedConcept" ) {
65
69
init { addConcept(this ) }
66
- val name by property(" ceab5195-25ea-4f22-9b92-103b95ca8c0c/1169194658468/1169194664001" )
70
+ val name = SimpleProperty (
71
+ " name" ,
72
+ uid = " ceab5195-25ea-4f22-9b92-103b95ca8c0c/1169194658468/1169194664001" ,
73
+ ).also (this ::addProperty)
67
74
}
68
75
}
69
76
@@ -88,8 +95,15 @@ object BuiltinLanguages {
88
95
) {
89
96
init { addConcept(this ) }
90
97
91
- val id by property(" 0a7577d1-d4e5-431d-98b1-fae38f9aee80/474657388638618892/2615330535972958738" )
92
- val stereotype by property(" 0a7577d1-d4e5-431d-98b1-fae38f9aee80/474657388638618892/3832696962605996173" )
98
+ val id = SimpleProperty (
99
+ " id" ,
100
+ uid = " 0a7577d1-d4e5-431d-98b1-fae38f9aee80/474657388638618892/2615330535972958738" ,
101
+ ).also (this ::addProperty)
102
+
103
+ val stereotype = SimpleProperty (
104
+ " stereotype" ,
105
+ uid = " 0a7577d1-d4e5-431d-98b1-fae38f9aee80/474657388638618892/3832696962605996173" ,
106
+ ).also (this ::addProperty)
93
107
94
108
val rootNodes = SimpleChildLink (
95
109
simpleName = " rootNodes" ,
@@ -121,9 +135,20 @@ object BuiltinLanguages {
121
135
) {
122
136
init { addConcept(this ) }
123
137
124
- val id by property(" 0a7577d1-d4e5-431d-98b1-fae38f9aee80/474657388638618895/4225291329823310560" )
125
- val moduleVersion by property(" 0a7577d1-d4e5-431d-98b1-fae38f9aee80/474657388638618895/2206727074858242370" )
126
- val compileInMPS by property(" 0a7577d1-d4e5-431d-98b1-fae38f9aee80/474657388638618895/2206727074858242373" )
138
+ val id = SimpleProperty (
139
+ " id" ,
140
+ uid = " 0a7577d1-d4e5-431d-98b1-fae38f9aee80/474657388638618895/4225291329823310560" ,
141
+ ).also (this ::addProperty)
142
+
143
+ val moduleVersion = SimpleProperty (
144
+ " moduleVersion" ,
145
+ uid = " 0a7577d1-d4e5-431d-98b1-fae38f9aee80/474657388638618895/2206727074858242370" ,
146
+ ).also (this ::addProperty)
147
+
148
+ val compileInMPS = SimpleProperty (
149
+ " compileInMPS" ,
150
+ uid = " 0a7577d1-d4e5-431d-98b1-fae38f9aee80/474657388638618895/2206727074858242373" ,
151
+ ).also (this ::addProperty)
127
152
128
153
val models = SimpleChildLink (
129
154
simpleName = " models" ,
@@ -242,7 +267,10 @@ object BuiltinLanguages {
242
267
) {
243
268
init { addConcept(this ) }
244
269
245
- val virtualFolder by property(" 0a7577d1-d4e5-431d-98b1-fae38f9aee80/4201834143491306084/4201834143491306085" )
270
+ val virtualFolder = SimpleProperty (
271
+ " virtualFolder" ,
272
+ uid = " 0a7577d1-d4e5-431d-98b1-fae38f9aee80/4201834143491306084/4201834143491306085" ,
273
+ ).also (this ::addProperty)
246
274
}
247
275
248
276
object ModuleReference : SimpleConcept(
@@ -283,8 +311,15 @@ object BuiltinLanguages {
283
311
) {
284
312
init { addConcept(this ) }
285
313
286
- val uuid by property(" 0a7577d1-d4e5-431d-98b1-fae38f9aee80/8958347146611575311/8958347146611575314" )
287
- val name by property(" 0a7577d1-d4e5-431d-98b1-fae38f9aee80/8958347146611575311/8958347146611575315" )
314
+ val uuid = SimpleProperty (
315
+ " uuid" ,
316
+ uid = " 0a7577d1-d4e5-431d-98b1-fae38f9aee80/8958347146611575311/8958347146611575314" ,
317
+ ).also (this ::addProperty)
318
+
319
+ val name = SimpleProperty (
320
+ " name" ,
321
+ uid = " 0a7577d1-d4e5-431d-98b1-fae38f9aee80/8958347146611575311/8958347146611575315" ,
322
+ ).also (this ::addProperty)
288
323
}
289
324
290
325
object SingleLanguageDependency : SimpleConcept(
@@ -294,7 +329,10 @@ object BuiltinLanguages {
294
329
) {
295
330
init { addConcept(this ) }
296
331
297
- val version by property(" 0a7577d1-d4e5-431d-98b1-fae38f9aee80/2206727074858242429/2206727074858242435" )
332
+ val version = SimpleProperty (
333
+ " version" ,
334
+ uid = " 0a7577d1-d4e5-431d-98b1-fae38f9aee80/2206727074858242429/2206727074858242435" ,
335
+ ).also (this ::addProperty)
298
336
}
299
337
300
338
object DevkitDependency : SimpleConcept(
@@ -320,8 +358,15 @@ object BuiltinLanguages {
320
358
) {
321
359
init { addConcept(this ) }
322
360
323
- val generated by property(" 0a7577d1-d4e5-431d-98b1-fae38f9aee80/2206727074858242406/2206727074858242407" )
324
- val path by property(" 0a7577d1-d4e5-431d-98b1-fae38f9aee80/2206727074858242406/2206727074858242409" )
361
+ val generated = SimpleProperty (
362
+ " generated" ,
363
+ uid = " 0a7577d1-d4e5-431d-98b1-fae38f9aee80/2206727074858242406/2206727074858242407" ,
364
+ ).also (this ::addProperty)
365
+
366
+ val path = SimpleProperty (
367
+ " path" ,
368
+ uid = " 0a7577d1-d4e5-431d-98b1-fae38f9aee80/2206727074858242406/2206727074858242409" ,
369
+ ).also (this ::addProperty)
325
370
}
326
371
327
372
object ModuleDependency : SimpleConcept(
@@ -331,12 +376,35 @@ object BuiltinLanguages {
331
376
) {
332
377
init { addConcept(this ) }
333
378
334
- val reexport by property(" 0a7577d1-d4e5-431d-98b1-fae38f9aee80/2206727074858242415/2206727074858242416" )
335
- val uuid by property(" 0a7577d1-d4e5-431d-98b1-fae38f9aee80/2206727074858242415/2206727074858242418" )
336
- val name by property(" 0a7577d1-d4e5-431d-98b1-fae38f9aee80/2206727074858242415/2206727074858242421" )
337
- val explicit by property(" 0a7577d1-d4e5-431d-98b1-fae38f9aee80/2206727074858242415/2206727074858750565" )
338
- val version by property(" 0a7577d1-d4e5-431d-98b1-fae38f9aee80/2206727074858242415/2206727074858750570" )
339
- val scope by property(" 0a7577d1-d4e5-431d-98b1-fae38f9aee80/2206727074858242415/8438396892798826745" )
379
+ val reexport = SimpleProperty (
380
+ " reexport" ,
381
+ uid = " 0a7577d1-d4e5-431d-98b1-fae38f9aee80/2206727074858242415/2206727074858242416" ,
382
+ ).also (this ::addProperty)
383
+
384
+ val uuid = SimpleProperty (
385
+ " uuid" ,
386
+ uid = " 0a7577d1-d4e5-431d-98b1-fae38f9aee80/2206727074858242415/2206727074858242418" ,
387
+ ).also (this ::addProperty)
388
+
389
+ val name = SimpleProperty (
390
+ " name" ,
391
+ uid = " 0a7577d1-d4e5-431d-98b1-fae38f9aee80/2206727074858242415/2206727074858242421" ,
392
+ ).also (this ::addProperty)
393
+
394
+ val explicit = SimpleProperty (
395
+ " explicit" ,
396
+ uid = " 0a7577d1-d4e5-431d-98b1-fae38f9aee80/2206727074858242415/2206727074858750565" ,
397
+ ).also (this ::addProperty)
398
+
399
+ val version = SimpleProperty (
400
+ " version" ,
401
+ uid = " 0a7577d1-d4e5-431d-98b1-fae38f9aee80/2206727074858242415/2206727074858750570" ,
402
+ ).also (this ::addProperty)
403
+
404
+ val scope = SimpleProperty (
405
+ " scope" ,
406
+ uid = " 0a7577d1-d4e5-431d-98b1-fae38f9aee80/2206727074858242415/8438396892798826745" ,
407
+ ).also (this ::addProperty)
340
408
}
341
409
}
342
410
@@ -368,7 +436,10 @@ object BuiltinLanguages {
368
436
) {
369
437
init { addConcept(this ) }
370
438
371
- val id by property(" b6980ebd-f01d-459d-a952-38740f6313b4/7113393488488348864/7113393488488348870" )
439
+ val id = SimpleProperty (
440
+ " id" ,
441
+ uid = " b6980ebd-f01d-459d-a952-38740f6313b4/7113393488488348864/7113393488488348870" ,
442
+ ).also (this ::addProperty)
372
443
373
444
val branches = SimpleChildLink (
374
445
simpleName = " branches" ,
@@ -395,20 +466,6 @@ object BuiltinLanguages {
395
466
)
396
467
}
397
468
398
- private fun SimpleConcept.property (uid : String ) = object {
399
- private lateinit var name: String
400
- private lateinit var owner: SimpleConcept
401
- private val instance: IProperty by lazy {
402
- SimpleProperty (name, uid = uid).also { owner.addProperty(it) }
403
- }
404
-
405
- operator fun getValue (ownerConcept : SimpleConcept , kotlinProperty : KProperty <* >): IProperty {
406
- this .owner = ownerConcept
407
- this .name = kotlinProperty.name
408
- return instance
409
- }
410
- }
411
-
412
469
private fun SimpleConcept.childLink (uid : String ) = object {
413
470
private lateinit var name: String
414
471
private lateinit var owner: SimpleConcept
0 commit comments