From c6b6fee65c41a8a1f7b54379e45fc650806aa022 Mon Sep 17 00:00:00 2001 From: Eugene Burmako Date: Mon, 27 Aug 2012 16:40:46 +0200 Subject: exposes MethodSymbol.isPrimaryConstructor Doesn't seem to be inferrable from the API we expose right now --- src/reflect/scala/reflect/api/Symbols.scala | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/reflect') diff --git a/src/reflect/scala/reflect/api/Symbols.scala b/src/reflect/scala/reflect/api/Symbols.scala index c3fbcb4ed8..80caf22c17 100644 --- a/src/reflect/scala/reflect/api/Symbols.scala +++ b/src/reflect/scala/reflect/api/Symbols.scala @@ -327,6 +327,9 @@ trait Symbols extends base.Symbols { self: Universe => */ def isConstructor: Boolean + /** Does this symbol denote the primary constructor of its enclosing class? */ + def isPrimaryConstructor: Boolean + /** For a polymorphic method, its type parameters, the empty list for all other methods */ def typeParams: List[Symbol] -- cgit v1.2.3