summaryrefslogtreecommitdiff
path: root/src/reflect
diff options
context:
space:
mode:
authorEugene Burmako <xeno.by@gmail.com>2013-11-13 23:20:56 +0100
committerEugene Burmako <xeno.by@gmail.com>2013-11-13 23:20:56 +0100
commit34358ee1e884b2e760c5aec40d1f7d844b18053c (patch)
tree658be1e6c93d858be971aa29e933237dcc74c26b /src/reflect
parentd2cee3a5e1d26ba27fd7912d48b1e7af0beb844a (diff)
downloadscala-34358ee1e884b2e760c5aec40d1f7d844b18053c.tar.gz
scala-34358ee1e884b2e760c5aec40d1f7d844b18053c.tar.bz2
scala-34358ee1e884b2e760c5aec40d1f7d844b18053c.zip
more precise isMacroApplication check
Replaces the `symbol.isMacro` check with `symbol.isTermMacro`. Doesn’t make any difference to trunk but helps a lot with macro annotations.
Diffstat (limited to 'src/reflect')
-rw-r--r--src/reflect/scala/reflect/internal/TreeInfo.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/reflect/scala/reflect/internal/TreeInfo.scala b/src/reflect/scala/reflect/internal/TreeInfo.scala
index 025965ad47..4002ed6399 100644
--- a/src/reflect/scala/reflect/internal/TreeInfo.scala
+++ b/src/reflect/scala/reflect/internal/TreeInfo.scala
@@ -842,7 +842,7 @@ abstract class TreeInfo {
})
def isMacroApplication(tree: Tree): Boolean =
- !tree.isDef && tree.symbol != null && tree.symbol.isMacro && !tree.symbol.isErroneous
+ !tree.isDef && tree.symbol != null && tree.symbol.isTermMacro && !tree.symbol.isErroneous
def isMacroApplicationOrBlock(tree: Tree): Boolean = tree match {
case Block(_, expr) => isMacroApplicationOrBlock(expr)