Exclude all non static annotations from ExtractAPI

This commit is contained in:
Krzysztof Romanowski 2015-09-02 21:43:30 +02:00 committed by Eugene Yokota
parent 0f616294c4
commit d32a0eaaa0
1 changed files with 1 additions and 1 deletions

View File

@ -636,7 +636,7 @@ class ExtractAPI[GlobalType <: CallbackGlobal](val global: GlobalType,
// a) they are recorded as normal source methods anyway
// b) there is no way to distinguish them from user-defined methods
val associated = List(b, b.getter(b.enclClass), b.setter(b.enclClass)).filter(_ != NoSymbol)
associated.flatMap(ss => annotations(in, ss.annotations)).distinct.toArray;
associated.flatMap(ss => annotations(in, ss.annotations.filter(_.isStatic))).distinct.toArray;
}
private def annotatedType(in: Symbol, at: AnnotatedType): xsbti.api.Type =
{