Merge pull request #1477 from puffnfresh/dont-warn-not-simple-types

Change "Not a simple type" warning to log message
This commit is contained in:
Josh Suereth 2014-07-31 17:51:22 -04:00
commit 775b21eef2
1 changed files with 1 additions and 1 deletions

View File

@ -149,7 +149,7 @@ class ExtractAPI[GlobalType <: CallbackGlobal](val global: GlobalType,
private def simpleType(in: Symbol, t: Type): SimpleType =
processType(in, t) match {
case s: SimpleType => s
case x => warning("Not a simple type:\n\tType: " + t + " (" + t.getClass + ")\n\tTransformed: " + x.getClass); Constants.emptyType
case x => log("Not a simple type:\n\tType: " + t + " (" + t.getClass + ")\n\tTransformed: " + x.getClass); Constants.emptyType
}
private def types(in: Symbol, t: List[Type]): Array[xsbti.api.Type] = t.toArray[Type].map(processType(in, _))
private def projectionType(in: Symbol, pre: Type, sym: Symbol) =