aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorRobert Griesemer <gri@golang.org>2021-12-03 10:52:52 -0800
committerRobert Griesemer <gri@golang.org>2021-12-04 01:07:28 +0000
commitfa88ba1e8adacda08973d112cca8d6e66c1390e1 (patch)
treeb64f2b5d94a57042e97a4c8d67a0f192272dffd5 /doc
parent821bf04f2aa6b79d1d66ef7aba7537d346ea5a21 (diff)
downloadgo-fa88ba1e8adacda08973d112cca8d6e66c1390e1.tar.gz
go-fa88ba1e8adacda08973d112cca8d6e66c1390e1.zip
doc/go1.18: add documentation for changes to go/ast
Updates #47694 Change-Id: Ied26f6345df2c8640d4be5132a05db3897b59009 Reviewed-on: https://go-review.googlesource.com/c/go/+/369096 Trust: Robert Griesemer <gri@golang.org> Reviewed-by: Robert Findley <rfindley@google.com>
Diffstat (limited to 'doc')
-rw-r--r--doc/go1.18.html24
1 files changed, 24 insertions, 0 deletions
diff --git a/doc/go1.18.html b/doc/go1.18.html
index 5f32d64283..c2a04ef419 100644
--- a/doc/go1.18.html
+++ b/doc/go1.18.html
@@ -406,6 +406,30 @@ Do not send CLs removing the interior tags from such phrases.
</dd>
</dl>
+<dl id="go/ast"><dt><a href="/pkg/go/ast/">go/ast</a></dt>
+ <dd>
+ <p><!-- https://golang.org/issue/47781, CL 325689, CL 327149, CL 348375, CL 348609 -->
+ Per the proposal
+ <a href="https://go.googlesource.com/proposal/+/master/design/47781-parameterized-go-ast.md">
+ Additions to go/ast and go/token to support parameterized functions and types
+ </a>
+ the following additions are made to the <a href="/pkg/go/ast"><code>go/ast</code></a> package:
+ <ul>
+ <li>
+ the <a href="/pkg/go/ast/#FuncType"><code>FuncType</code></a>
+ and <a href="/pkg/go/ast/#TypeSpec"><code>TypeSpec</code></a>
+ nodes have a new field <code>TypeParams</code> to hold type parameters, if any.
+ </li>
+ <li>
+ The new expression node <a href="/pkg/go/ast/#IndexListExpr"><code>IndexListExpr</code></a>
+ represents index expressions with multiple indices, used for function and type instantiations
+ with more than one explicit type argument.
+ </li>
+ </ul>
+ </p>
+ </dd>
+</dl>
+
<dl id="go/constant"><dt><a href="/pkg/go/constant/">go/constant</a></dt>
<dd>
<p><!-- https://golang.org/issue/46211, CL 320491 -->