首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >配置scaladoc以包含扩展方法

配置scaladoc以包含扩展方法
EN

Stack Overflow用户
提问于 2014-01-28 20:59:41
回答 1查看 189关注 0票数 3

是否可以通过指定隐式转换将scaladoc配置为包含来自隐式转换的方法?

例如,给定

代码语言:javascript
复制
trait Foo

object Operations {
  implicit class FooOps(val f: Foo) extends AnyVal {
    def bar = 33
  }
}

我可以让scaladoc在Foo的文档中包含扩展方法bar

EN

回答 1

Stack Overflow用户

发布于 2014-01-28 23:37:01

看起来是这样(我还没试过):

代码语言:javascript
复制
% scladoc -help
Usage: scaladoc <options> <source files>
where possible scaladoc options include:
  ...
  -implicits                    Document members inherited by implicit conversions.
  -implicits-hide:<implicit(s)> Hide the members inherited by the given comma separated, fully qualified implicit conversions. Add dot (.) to include default conversions.
  -implicits-show-all           Show members inherited by implicit conversions that are impossible in the default scope. (for example conversions that require Numeric[String] to be in scope)
  ...
票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/21406207

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档