Skip to content
This repository has been archived by the owner on Apr 13, 2023. It is now read-only.

Commit

Permalink
Find value constructor getters, even though they're @ignore
Browse files Browse the repository at this point in the history
We need to find the getters for value constructor in order to
support importing constructors (as in #2176)
but otherwise ignore them.

Part of #5635
  • Loading branch information
tombentley committed Sep 23, 2015
1 parent 893c18f commit 2118721
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1319,8 +1319,9 @@ private List<MethodMirror> getClassConstructors(ClassMirror classMirror, MethodM
LinkedList<MethodMirror> constructors = new LinkedList<MethodMirror>();
boolean isFromJDK = isFromJDK(classMirror);
for(MethodMirror methodMirror : classMirror.getDirectMethods()){
// We skip members marked with @Ignore
if(methodMirror.getAnnotation(CEYLON_IGNORE_ANNOTATION) != null)
// We skip members marked with @Ignore, unless they value constructor getters
if(methodMirror.getAnnotation(CEYLON_IGNORE_ANNOTATION) != null
&&methodMirror.getAnnotation(CEYLON_ENUMERATED_ANNOTATION) == null)
continue;
if (!p.accept(methodMirror))
continue;
Expand Down

0 comments on commit 2118721

Please sign in to comment.