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
"Check if I contain a trait of this name. If yes, return it.
277
-
If I do not contain a trait of this name, check if one of my subMM has a trait of this name. If one is found, return it. If more is found raise an error. If non is found, create a new trait of this name and return it."
276
+
If no, check if one of my subMM has a trait of this name. If one is found, return it. If more is found raise an error. If non is found, create a new trait of this name and return it."
278
277
279
278
| remoteTraits |
280
-
selfflag:#todo. "Maybe we could cache the sub MM entities."
('Multiple remote traits named {1} where found in sub metamodels. Found in: {2}.
294
-
In order to fix the issue you should use #remoteTrait:withPrefix: in your generator to select yourself the right trait to use. If you want to create an entity of this name in your model and not use the trait of this name from a sub metamodel, declare this trait before referencing it.'
295
-
format: {
289
+
remoteTraits size >1ifTrue: [
290
+
selferror: ('Multiple remote traits named {1} where found in sub metamodels. Found in: {2}.
291
+
In order to fix the issue you should use #remoteTrait:withPrefix: in your generator to select yourself the right trait to use. If you want to create an entity of this name in your model and not use the trait of this name from a sub metamodel, declare this trait before referencing it.'
292
+
format: {
296
293
aSymbol.
297
-
(', 'join:
298
-
(remoteTraits keys collect: [ :builder |
299
-
builder generator asString ])) }) ].
300
-
301
-
selfflag:#todo. "Cyril: I introduced this warning in the development of Moose 8 to not break every existing generators. We should remove the full detect in the future, for example in the development of Moose 9 (not before!) and revome the warning class."
0 commit comments