go/ast: fix godoc links

Change-Id: I374e169ea71dea209eb86dfc251c659153f6f7a7
Reviewed-on: https://go-review.googlesource.com/c/go/+/777560
Reviewed-by: Alan Donovan <adonovan@google.com>
LUCI-TryBot-Result: golang-scoped@luci-project-accounts.iam.gserviceaccount.com <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Auto-Submit: Alan Donovan <adonovan@google.com>
This commit is contained in:
Olivier Mengué 2026-05-13 11:15:36 +02:00 committed by Gopher Robot
parent 364de84f36
commit 168fe84e6c
2 changed files with 5 additions and 5 deletions

View file

@ -6,8 +6,8 @@
// packages.
//
// Syntax trees may be constructed directly, but they are typically
// produced from Go source code by the parser; see the ParseFile
// function in package [go/parser].
// produced from Go source code by the parser; see the
// [go/parser.ParseFile] function.
package ast
import (
@ -1110,7 +1110,7 @@ func (p *Package) End() token.Pos { return token.NoPos }
// not handwritten, by detecting the special comment described
// at https://go.dev/s/generatedcode.
//
// The syntax tree must have been parsed with the [parser.ParseComments] flag.
// The syntax tree must have been parsed with the [go/parser.ParseComments] flag.
// Example:
//
// f, err := parser.ParseFile(fset, filename, src, parser.ParseComments|parser.PackageClauseOnly)

View file

@ -79,11 +79,11 @@ func (s *Scope) String() string {
// refers to a field of T, whereas for the other types it refers to a
// value in the environment.
//
// New programs should set the [parser.SkipObjectResolution] parser
// New programs should set the [go/parser.SkipObjectResolution] parser
// flag to disable syntactic object resolution (which also saves CPU
// and memory), and instead use the type checker [go/types] if object
// resolution is desired. See the Defs, Uses, and Implicits fields of
// the [types.Info] struct for details.
// the [go/types.Info] struct for details.
type Object struct {
Kind ObjKind
Name string // declared name