mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
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>
This commit is contained in:
parent
117ebe0f52
commit
1de332996c
1 changed files with 10 additions and 0 deletions
|
|
@ -693,6 +693,16 @@ func Foo() bool {
|
||||||
</dd>
|
</dd>
|
||||||
</dl><!-- go/format -->
|
</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>
|
<dl id="image"><dt><a href="/pkg/image/">image</a></dt>
|
||||||
<dd>
|
<dd>
|
||||||
<p><!-- CL 311129 -->
|
<p><!-- CL 311129 -->
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue