|
Scala example source code file (GenPositions.scala)
The GenPositions.scala Scala example source code
package scala.reflect.reify
package codegen
trait GenPositions {
self: Reifier =>
import global._
// 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)
}
Other Scala source code examplesHere is a short list of links related to this Scala GenPositions.scala source code file: |
| ... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.