File tree Expand file tree Collapse file tree
org.omg.kerml.xpect.tests/src/org/omg/kerml/xpect/tests/parsing Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88 File {from ="/library/Performances.kerml"}
99 File {from ="/library/Metaobjects.kerml"}
1010 File {from ="/library/KerML.kerml"}
11+ File {from ="/library/BaseFunctions.kerml"}
12+ File {from ="/library/ControlFunctions.kerml"}
1113 }
1214 Workspace {
1315 JavaProject {
2022 File {from ="/library/Performances.kerml"}
2123 File {from ="/library/Metaobjects.kerml"}
2224 File {from ="/library/KerML.kerml"}
25+ File {from ="/library/BaseFunctions.kerml"}
26+ File {from ="/library/ControlFunctions.kerml"}
2327 }
2428 }
2529 }
@@ -54,4 +58,19 @@ package Metadata {
5458 #A #B metadata C;
5559 #A #B @C;
5660 }
61+
62+ class CC;
63+ struct SS {
64+ feature cc : CC;
65+ }
66+
67+ metaclass M :> Metaobjects::SemanticMetadata {
68+ :>> annotatedElement : KerML::Class;
69+ :>> baseType = if annotatedElement istype KerML::Structure ?
70+ SS meta KerML::Type else CC meta KerML::Class;
71+ }
72+
73+ #M struct T {
74+ feature :>> cc;
75+ }
5776}
You can’t perform that action at this time.
0 commit comments