diff options
author | Felix Mulder <felix.mulder@gmail.com> | 2016-08-27 00:30:07 +0200 |
---|---|---|
committer | Felix Mulder <felix.mulder@gmail.com> | 2016-10-06 17:45:12 +0200 |
commit | 5463b7a9d42ece31409526ce192d263f7f55e047 (patch) | |
tree | bbdacab4ef724e42a45f3e59c0fa8acdf3ba3b3e /src/dotty/tools/dotc/typer/Namer.scala | |
parent | ea24c55fdc7b3310a7f9911b408647701b5799fa (diff) | |
download | dotty-5463b7a9d42ece31409526ce192d263f7f55e047.tar.gz dotty-5463b7a9d42ece31409526ce192d263f7f55e047.tar.bz2 dotty-5463b7a9d42ece31409526ce192d263f7f55e047.zip |
Fix cooking of docstrings
Diffstat (limited to 'src/dotty/tools/dotc/typer/Namer.scala')
-rw-r--r-- | src/dotty/tools/dotc/typer/Namer.scala | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/src/dotty/tools/dotc/typer/Namer.scala b/src/dotty/tools/dotc/typer/Namer.scala index b34eaa605..1d2d59208 100644 --- a/src/dotty/tools/dotc/typer/Namer.scala +++ b/src/dotty/tools/dotc/typer/Namer.scala @@ -4,7 +4,7 @@ package typer import core._ import ast._ -import Trees._, Constants._, StdNames._, Scopes._, Denotations._ +import Trees._, Constants._, StdNames._, Scopes._, Denotations._, Comments._ import Contexts._, Symbols._, Types._, SymDenotations._, Names._, NameOps._, Flags._, Decorators._ import ast.desugar, ast.desugar._ import ProtoTypes._ @@ -456,14 +456,7 @@ class Namer { typer: Typer => def setDocstring(sym: Symbol, tree: Tree)(implicit ctx: Context) = tree match { - case t: MemberDef if t.rawComment.isDefined => - val cmt = t.rawComment - ctx.docbase.addDocstring(sym, cmt) - - cmt.get.usecases.foreach { usecase => - usecase.symbol = enterSymbol(createSymbol(usecase.untpdCode)) - } - + case t: MemberDef if t.rawComment.isDefined => ctx.docbase.addDocstring(sym, t.rawComment) case _ => () } |