diff options
Diffstat (limited to 'doc-tool/src/dotty/tools/dottydoc/model/json.scala')
-rw-r--r-- | doc-tool/src/dotty/tools/dottydoc/model/json.scala | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/doc-tool/src/dotty/tools/dottydoc/model/json.scala b/doc-tool/src/dotty/tools/dottydoc/model/json.scala index 145728f8a..766f0c147 100644 --- a/doc-tool/src/dotty/tools/dottydoc/model/json.scala +++ b/doc-tool/src/dotty/tools/dottydoc/model/json.scala @@ -63,6 +63,7 @@ object json { s"""{"args":${ref.args.map(refToJson).mkString("[",",","]")},"returnValue":${refToJson(ref.returnValue)},"kind": "FunctionReference"}""" case ref: TupleReference => s"""{"args":${ref.args.map(refToJson).mkString("[",",","]")},"kind": "TupleReference"}""" + case EmptyReference => ??? } implicit class ReferenceJson(val ref: Reference) extends AnyVal { def json: String = refToJson(ref) } |