commit | 79324963f279f15fee76d4173a6fa82693871bb3 | [log] [tgz] |
---|---|---|
author | Colin Cross <ccross@android.com> | Wed Jun 01 21:44:44 2016 -0700 |
committer | Colin Cross <ccross@android.com> | Thu Jun 02 12:38:24 2016 -0700 |
tree | 12b4b1fe6c871ee42dec2dccfa4c5d6f6c154ce7 | |
parent | d9f6fd55dd7a586b42eaab3b7f094954a28b9176 [diff] |
Fix documentation property type for pointers Change-Id: I7964215adb5e04f5e7a50370e3d98b51ee100ee5
diff --git a/bootstrap/bpdoc/bpdoc.go b/bootstrap/bpdoc/bpdoc.go index 0826963..dcb6f65 100644 --- a/bootstrap/bpdoc/bpdoc.go +++ b/bootstrap/bpdoc/bpdoc.go
@@ -263,7 +263,12 @@ return nil, err } } - switch a := f.Type.(type) { + + t := f.Type + if star, ok := t.(*ast.StarExpr); ok { + t = star.X + } + switch a := t.(type) { case *ast.ArrayType: typ = "list of strings" case *ast.InterfaceType: