mirror of https://github.com/sbt/sbt.git
use standard Context.weakTypeOf
This commit is contained in:
parent
2929e4e724
commit
f6c73ff4c7
|
|
@ -48,8 +48,6 @@ final class ContextUtil[C <: Context](val ctx: C)
|
|||
|
||||
def getPos(sym: Symbol) = if(sym eq null) NoPosition else sym.pos
|
||||
|
||||
def atypeOf[T](implicit att: WeakTypeTag[T]): Type = att.tpe
|
||||
|
||||
/** Constructs a unique term name with the given prefix within this Context.
|
||||
* (The current implementation uses Context.fresh, which increments*/
|
||||
def freshTermName(prefix: String) = newTermName(ctx.fresh("$" + prefix))
|
||||
|
|
|
|||
Loading…
Reference in New Issue