]> Cypherpunks repositories - gostls13.git/commitdiff
doc/go1.17: document go/parser.SkipObjectResolution
authorRob Findley <rfindley@google.com>
Thu, 17 Jun 2021 16:28:53 +0000 (12:28 -0400)
committerRobert Findley <rfindley@google.com>
Mon, 21 Jun 2021 14:12:09 +0000 (14:12 +0000)
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>
doc/go1.17.html

index 945265129579d8a393c7b70fd0077f3b7eaae1ee..50559c8933998e17e81011522d4e23140b4b6a46 100644 (file)
@@ -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 -->