aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorRob Findley <rfindley@google.com>2021-06-17 12:28:53 -0400
committerRobert Findley <rfindley@google.com>2021-06-21 14:12:09 +0000
commit1de332996c25bf99bb31c82393dc018e6cec18ae (patch)
treeb624d1d1294bc38442bf842aa8013f0447f844fb /doc
parent117ebe0f52efc5128a9c86722e07fe22cb65450d (diff)
downloadgo-1de332996c25bf99bb31c82393dc018e6cec18ae.tar.gz
go-1de332996c25bf99bb31c82393dc018e6cec18ae.zip
doc/go1.17: document go/parser.SkipObjectResolution
Documents the mode added in CL 306149 to skip object resolution. Fixes #46298 Change-Id: I6a14aaa00790f9f7e4e4ba17033355f5e878d74b Reviewed-on: https://go-review.googlesource.com/c/go/+/329009 Trust: Robert Findley <rfindley@google.com> Trust: Robert Griesemer <gri@golang.org> Run-TryBot: Robert Findley <rfindley@google.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Robert Griesemer <gri@golang.org>
Diffstat (limited to 'doc')
-rw-r--r--doc/go1.17.html10
1 files changed, 10 insertions, 0 deletions
diff --git a/doc/go1.17.html b/doc/go1.17.html
index 9452651295..50559c8933 100644
--- a/doc/go1.17.html
+++ b/doc/go1.17.html
@@ -693,6 +693,16 @@ func Foo() bool {
</dd>
</dl><!-- go/format -->
+<dl id="go/parser"><dt><a href="/pkg/go/parser/">go/parser</a></dt>
+ <dd>
+ <p><!-- CL 306149 -->
+ The new <a href="/pkg/go/parser/#SkipObjectResolution"><code>SkipObjectResolution</code></a>
+ <code>Mode</code> value instructs the parser not to resolve identifiers to
+ their declaration. This may improve parsing speed.
+ </p>
+ </dd>
+</dl><!-- go/parser -->
+
<dl id="image"><dt><a href="/pkg/image/">image</a></dt>
<dd>
<p><!-- CL 311129 -->