diff options
author | Eugene Vigdorchik <eugene.vigdorchik@gmail.com> | 2013-02-19 21:29:30 +0400 |
---|---|---|
committer | Eugene Vigdorchik <eugene.vigdorchik@gmail.com> | 2013-02-24 13:35:35 +0400 |
commit | 53c499bec28ccbc7695c79f56e40f98e7732aeb7 (patch) | |
tree | cfd6828ad7981ca86ec38404ec50a68e958fa587 /src/compiler/scala/tools/nsc/typechecker/Typers.scala | |
parent | 5d6e02ee2eb1b454d88d3c3fb41d4715930caa9d (diff) | |
download | scala-53c499bec28ccbc7695c79f56e40f98e7732aeb7.tar.gz scala-53c499bec28ccbc7695c79f56e40f98e7732aeb7.tar.bz2 scala-53c499bec28ccbc7695c79f56e40f98e7732aeb7.zip |
SI-7109 SI-7153 Generalize the API to get docComments: allow to force docTrees
for given fragments. Don't type-check when forcing doc comments, but rather
do it directly. Test the new functionality as well as better tests for
the old one.
Diffstat (limited to 'src/compiler/scala/tools/nsc/typechecker/Typers.scala')
-rw-r--r-- | src/compiler/scala/tools/nsc/typechecker/Typers.scala | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/Typers.scala b/src/compiler/scala/tools/nsc/typechecker/Typers.scala index f97582f45c..24857e4ab0 100644 --- a/src/compiler/scala/tools/nsc/typechecker/Typers.scala +++ b/src/compiler/scala/tools/nsc/typechecker/Typers.scala @@ -5289,8 +5289,7 @@ trait Typers extends Modes with Adaptations with Tags { def typedDocDef(docdef: DocDef) = { if (forScaladoc && (sym ne null) && (sym ne NoSymbol)) { val comment = docdef.comment - docComments(sym) = comment - comment.defineVariables(sym) + fillDocComment(sym, comment) val typer1 = newTyper(context.makeNewScope(tree, context.owner)) for (useCase <- comment.useCases) { typer1.silent(_.typedUseCase(useCase)) match { |