diff options
author | Martin Odersky <odersky@gmail.com> | 2017-03-19 21:34:56 +0100 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2017-04-06 13:15:29 +0200 |
commit | a15b14f22a66f5cfb3188abe5dbea2a12fc4ef4b (patch) | |
tree | 97ad846936a77cc32e9fe1ad0527f187a06a2090 /doc-tool | |
parent | cdc91e28879a6882ce48f3a7fd7f0d7f432258b6 (diff) | |
download | dotty-a15b14f22a66f5cfb3188abe5dbea2a12fc4ef4b.tar.gz dotty-a15b14f22a66f5cfb3188abe5dbea2a12fc4ef4b.tar.bz2 dotty-a15b14f22a66f5cfb3188abe5dbea2a12fc4ef4b.zip |
Fix dotty-doc to take account of refactorings
Diffstat (limited to 'doc-tool')
-rw-r--r-- | doc-tool/src/dotty/tools/dottydoc/model/factories.scala | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/doc-tool/src/dotty/tools/dottydoc/model/factories.scala b/doc-tool/src/dotty/tools/dottydoc/model/factories.scala index 3e766a990..6b00934d2 100644 --- a/doc-tool/src/dotty/tools/dottydoc/model/factories.scala +++ b/doc-tool/src/dotty/tools/dottydoc/model/factories.scala @@ -79,7 +79,7 @@ object factories { case TypeBounds(lo, hi) => BoundsReference(expandTpe(lo), expandTpe(hi)) - case t: PolyParam => + case t: TypeParamRef => typeRef(t.paramName.show, params = params) case ExprType(tpe) => @@ -160,7 +160,7 @@ object factories { paramLists(pt.resultType) case mt: MethodType => - ParamListImpl(mt.paramNames.zip(mt.paramTypes).map { case (name, tpe) => + ParamListImpl(mt.paramNames.zip(mt.paramInfos).map { case (name, tpe) => NamedReference( name.decode.toString, returnType(tpe), @@ -169,13 +169,13 @@ object factories { ) }, mt.isImplicit) :: paramLists(mt.resultType) - case mp: MethodParam => + case mp: TermParamRef => paramLists(mp.underlying) case annot: AnnotatedType => paramLists(annot.tpe) - case (_: PolyParam | _: RefinedType | _: TypeRef | _: ThisType | + case (_: TypeParamRef | _: RefinedType | _: TypeRef | _: ThisType | _: ExprType | _: OrType | _: AndType | _: HKApply | _: TermRef | _: ConstantType) => Nil // return types should not be in the paramlist |