diff options
author | Felix Mulder <felix.mulder@gmail.com> | 2017-01-13 11:39:48 +0100 |
---|---|---|
committer | Felix Mulder <felix.mulder@gmail.com> | 2017-01-31 14:31:08 +0100 |
commit | 2c08c956d39d9a06b3c5aa7eddc3b8c903f807df (patch) | |
tree | e0440216f9c70a023491f0e1ef00a0154b5806ee /doc-tool/src/dotty/tools/dottydoc/model/factories.scala | |
parent | 64a13956d5611117c7ec4913a79363694f1e70c3 (diff) | |
download | dotty-2c08c956d39d9a06b3c5aa7eddc3b8c903f807df.tar.gz dotty-2c08c956d39d9a06b3c5aa7eddc3b8c903f807df.tar.bz2 dotty-2c08c956d39d9a06b3c5aa7eddc3b8c903f807df.zip |
Add annotations to doc AST
Diffstat (limited to 'doc-tool/src/dotty/tools/dottydoc/model/factories.scala')
-rw-r--r-- | doc-tool/src/dotty/tools/dottydoc/model/factories.scala | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/doc-tool/src/dotty/tools/dottydoc/model/factories.scala b/doc-tool/src/dotty/tools/dottydoc/model/factories.scala index 2976c2f48..e47c683f3 100644 --- a/doc-tool/src/dotty/tools/dottydoc/model/factories.scala +++ b/doc-tool/src/dotty/tools/dottydoc/model/factories.scala @@ -32,6 +32,8 @@ object factories { case sym => path(sym.owner) :+ sym.name.show } + def annotations(sym: Symbol)(implicit ctx: Context): List[String] = + sym.annotations.map(_.symbol.showFullName) private val product = """Product[1-9][0-9]*""".r |