File tree Expand file tree Collapse file tree 2 files changed +17
-13
lines changed
src/org/modeldriven/alf/syntax/expressions/impl Expand file tree Collapse file tree 2 files changed +17
-13
lines changed Original file line number Diff line number Diff line change @@ -171,17 +171,19 @@ protected ElementReference deriveReferent() {
171
171
// "Impl" inserted and resolving it makes sure
172
172
// that all template bindings are handled
173
173
// correctly.
174
- implConstructor = qualification .getQualification ();
174
+ implConstructor =
175
+ qualification .getImpl ().copy ().getQualification ();
175
176
if (implConstructor == null ) {
176
177
implConstructor = new QualifiedName ();
177
178
implConstructor .getImpl ().
178
179
setCurrentScope (namespaceDefinition );
179
180
}
180
181
implConstructor .getImpl ().addName ("Impl" ).
181
- addNameBinding (qualification .getUnqualifiedName ());
182
+ addNameBinding (qualification .getUnqualifiedName ());
182
183
}
183
184
184
- implConstructor .addNameBinding (unqualifiedName );
185
+ implConstructor .addNameBinding (unqualifiedName );
186
+ implConstructor .getImpl ().setIsVisibleOnly (false );
185
187
ElementReference implOperationReferent =
186
188
implConstructor .getImpl ().getOperationReferent ();
187
189
Original file line number Diff line number Diff line change 1
- package Library {
2
- public abstract class Class {
3
- @Create public Class() { }
4
- }
5
-
6
- private package Impl {
7
- public class Class specializes Library::Class {
8
- @Create public Class() redefines Library::Class::Class { }
1
+ package Library_Impl {
2
+ public package Library {
3
+ public abstract class Class {
4
+ @Create public Class() { }
9
5
}
6
+
7
+ private package Impl {
8
+ public class Class specializes Library::Class {
9
+ @Create public Class() redefines Library::Class::Class { }
10
+ }
11
+ }
10
12
}
11
13
12
- public activity Instantiate(): Class {
13
- return new Class();
14
+ public activity Instantiate(): Library:: Class {
15
+ return new Library:: Class();
14
16
}
15
17
}
You can’t perform that action at this time.
0 commit comments