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() {
171171 // "Impl" inserted and resolving it makes sure
172172 // that all template bindings are handled
173173 // correctly.
174- implConstructor = qualification .getQualification ();
174+ implConstructor =
175+ qualification .getImpl ().copy ().getQualification ();
175176 if (implConstructor == null ) {
176177 implConstructor = new QualifiedName ();
177178 implConstructor .getImpl ().
178179 setCurrentScope (namespaceDefinition );
179180 }
180181 implConstructor .getImpl ().addName ("Impl" ).
181- addNameBinding (qualification .getUnqualifiedName ());
182+ addNameBinding (qualification .getUnqualifiedName ());
182183 }
183184
184- implConstructor .addNameBinding (unqualifiedName );
185+ implConstructor .addNameBinding (unqualifiedName );
186+ implConstructor .getImpl ().setIsVisibleOnly (false );
185187 ElementReference implOperationReferent =
186188 implConstructor .getImpl ().getOperationReferent ();
187189
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() { }
95 }
6+
7+ private package Impl {
8+ public class Class specializes Library::Class {
9+ @Create public Class() redefines Library::Class::Class { }
10+ }
11+ }
1012 }
1113
12- public activity Instantiate(): Class {
13- return new Class();
14+ public activity Instantiate(): Library:: Class {
15+ return new Library:: Class();
1416 }
1517}
You can’t perform that action at this time.
0 commit comments