Skip to content

Commit

Permalink
Mark value constructor getters as @ignore
Browse files Browse the repository at this point in the history
This is not a whole true, however, because the model loader does
still look at them, at least in order to support importing constructors
as in #2176. But we don't want the model loader to see them as methods.

Part of ceylon/ceylon.language#757
  • Loading branch information
tombentley committed Sep 23, 2015
1 parent d870321 commit 9f43a63
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -275,7 +275,7 @@ protected void transformSingletonConstructor(
null,
singletonModel.getName(), singletonModel, false);
adb.modelAnnotations(gen.makeAtEnumerated());

adb.modelAnnotations(gen.makeAtIgnore());
adb.userAnnotations(gen.expressionGen().transformAnnotations(false, OutputElement.GETTER, ctor));
adb.fieldAnnotations(gen.expressionGen().transformAnnotations(false, OutputElement.FIELD, ctor));
adb.immutable();// not setter
Expand Down

0 comments on commit 9f43a63

Please sign in to comment.