From: Robert Griesemer Date: Fri, 3 Dec 2021 18:52:52 +0000 (-0800) Subject: doc/go1.18: add documentation for changes to go/ast X-Git-Tag: go1.18beta1~95 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=fa88ba1e8adacda08973d112cca8d6e66c1390e1;p=gostls13.git 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 Reviewed-by: Robert Findley --- 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. +
go/ast
+
+

+ Per the proposal + + Additions to go/ast and go/token to support parameterized functions and types + + the following additions are made to the go/ast package: +

    +
  • + the FuncType + and TypeSpec + nodes have a new field TypeParams to hold type parameters, if any. +
  • +
  • + The new expression node IndexListExpr + represents index expressions with multiple indices, used for function and type instantiations + with more than one explicit type argument. +
  • +
+

+
+
+
go/constant