summaryrefslogtreecommitdiff
path: root/src/compiler/scala/reflect/reify/codegen/GenPositions.scala
blob: 8c5db0445465f6c17b35cab31e8a36f504c2f936 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package scala.reflect.reify
package codegen

trait GenPositions {
  self: Reifier =>

  import global._
  import definitions._

  // we do not reify positions because this inflates resulting trees, but doesn't buy as anything
  // where would one use positions? right, in error messages
  // but I can hardly imagine when one would need a position that points to the reified code
  // usually reified trees are used to compose macro expansions or to be fed to the runtime compiler
  // however both macros and toolboxes have their own means to report errors in synthetic trees
  def reifyPosition(pos: Position): Tree =
    reifyMirrorObject(NoPosition)
}