summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/typechecker/Typers.scala
diff options
context:
space:
mode:
authorEugene Vigdorchik <eugene.vigdorchik@gmail.com>2012-11-21 16:06:36 +0400
committerEugene Vigdorchik <eugene.vigdorchik@gmail.com>2012-12-12 15:46:41 +0400
commite5e6d673cf669e3c9a7643aedd02213e4f7bbddf (patch)
tree063972705e1a76d8a362e9a9c6d5ac7c120e6fe4 /src/compiler/scala/tools/nsc/typechecker/Typers.scala
parent522ef796c8466d24fe7068af0bd1c8989b29b392 (diff)
downloadscala-e5e6d673cf669e3c9a7643aedd02213e4f7bbddf.tar.gz
scala-e5e6d673cf669e3c9a7643aedd02213e4f7bbddf.tar.bz2
scala-e5e6d673cf669e3c9a7643aedd02213e4f7bbddf.zip
Extract base scaladoc functionality for the IDE.
Diffstat (limited to 'src/compiler/scala/tools/nsc/typechecker/Typers.scala')
-rw-r--r--src/compiler/scala/tools/nsc/typechecker/Typers.scala3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/Typers.scala b/src/compiler/scala/tools/nsc/typechecker/Typers.scala
index f2d7adc628..4d320de173 100644
--- a/src/compiler/scala/tools/nsc/typechecker/Typers.scala
+++ b/src/compiler/scala/tools/nsc/typechecker/Typers.scala
@@ -48,6 +48,7 @@ trait Typers extends Modes with Adaptations with Tags {
resetContexts()
resetImplicits()
transformed.clear()
+ clearDocComments()
}
object UnTyper extends Traverser {
@@ -5138,8 +5139,8 @@ trait Typers extends Modes with Adaptations with Tags {
}
def typedDocDef(docdef: DocDef) = {
- val comment = docdef.comment
if (forScaladoc && (sym ne null) && (sym ne NoSymbol)) {
+ val comment = docdef.comment
docComments(sym) = comment
comment.defineVariables(sym)
val typer1 = newTyper(context.makeNewScope(tree, context.owner))