diff options
author | Eugene Burmako <xeno.by@gmail.com> | 2013-02-01 16:14:26 -0800 |
---|---|---|
committer | Eugene Burmako <xeno.by@gmail.com> | 2013-02-01 16:14:26 -0800 |
commit | 01eb6f4958b64667dfae6240effa55d44fa0d392 (patch) | |
tree | 592ce02e080c9480993a89ee836011276325d815 /src/compiler/scala/tools/nsc/typechecker/ContextErrors.scala | |
parent | 283924bfa5c266ccaea1bdb87521581e1ceb38cd (diff) | |
parent | 941c56918e052a1c619f35b24c6aa6c736390dc5 (diff) | |
download | scala-01eb6f4958b64667dfae6240effa55d44fa0d392.tar.gz scala-01eb6f4958b64667dfae6240effa55d44fa0d392.tar.bz2 scala-01eb6f4958b64667dfae6240effa55d44fa0d392.zip |
Merge pull request #2024 from scalamacros/ticket/6812
SI-6812 scaladoc can opt out of expanding macros
Diffstat (limited to 'src/compiler/scala/tools/nsc/typechecker/ContextErrors.scala')
-rw-r--r-- | src/compiler/scala/tools/nsc/typechecker/ContextErrors.scala | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/ContextErrors.scala b/src/compiler/scala/tools/nsc/typechecker/ContextErrors.scala index 2e5d61cc6b..fbf23968f0 100644 --- a/src/compiler/scala/tools/nsc/typechecker/ContextErrors.scala +++ b/src/compiler/scala/tools/nsc/typechecker/ContextErrors.scala @@ -760,10 +760,14 @@ trait ContextErrors { else " of " + expanded.getClass )) - def MacroImplementationNotFoundError(expandee: Tree) = - macroExpansionError(expandee, + def MacroImplementationNotFoundError(expandee: Tree) = { + val message = "macro implementation not found: " + expandee.symbol.name + " " + - "(the most common reason for that is that you cannot use macro implementations in the same compilation run that defines them)") + "(the most common reason for that is that you cannot use macro implementations in the same compilation run that defines them)" + + (if (forScaladoc) ". When generating scaladocs for multiple projects at once, consider using -Ymacro-no-expand to disable macro expansions altogether." + else "") + macroExpansionError(expandee, message) + } } } |