mirror of
https://github.com/golang/go.git
synced 2025-05-05 15:43:04 +00:00
go/types: mention FakeImportC in Package.Import doc comment
Change-Id: If4a82893f855d86de3311247424b1a3740c1f212 Reviewed-on: https://go-review.googlesource.com/c/go/+/443615 Reviewed-by: Robert Griesemer <gri@google.com> Run-TryBot: Alan Donovan <adonovan@google.com> TryBot-Result: Gopher Robot <gobot@golang.org>
This commit is contained in:
parent
44edc5d787
commit
fee0ab8b5e
@ -59,6 +59,9 @@ func (pkg *Package) MarkComplete() { pkg.complete = true }
|
|||||||
// If pkg was loaded from export data, Imports includes packages that
|
// If pkg was loaded from export data, Imports includes packages that
|
||||||
// provide package-level objects referenced by pkg. This may be more or
|
// provide package-level objects referenced by pkg. This may be more or
|
||||||
// less than the set of packages directly imported by pkg's source code.
|
// less than the set of packages directly imported by pkg's source code.
|
||||||
|
//
|
||||||
|
// If pkg uses cgo and the FakeImportC configuration option
|
||||||
|
// was enabled, the imports list may contain a fake "C" package.
|
||||||
func (pkg *Package) Imports() []*Package { return pkg.imports }
|
func (pkg *Package) Imports() []*Package { return pkg.imports }
|
||||||
|
|
||||||
// SetImports sets the list of explicitly imported packages to list.
|
// SetImports sets the list of explicitly imported packages to list.
|
||||||
|
@ -60,6 +60,9 @@ func (pkg *Package) MarkComplete() { pkg.complete = true }
|
|||||||
// If pkg was loaded from export data, Imports includes packages that
|
// If pkg was loaded from export data, Imports includes packages that
|
||||||
// provide package-level objects referenced by pkg. This may be more or
|
// provide package-level objects referenced by pkg. This may be more or
|
||||||
// less than the set of packages directly imported by pkg's source code.
|
// less than the set of packages directly imported by pkg's source code.
|
||||||
|
//
|
||||||
|
// If pkg uses cgo and the FakeImportC configuration option
|
||||||
|
// was enabled, the imports list may contain a fake "C" package.
|
||||||
func (pkg *Package) Imports() []*Package { return pkg.imports }
|
func (pkg *Package) Imports() []*Package { return pkg.imports }
|
||||||
|
|
||||||
// SetImports sets the list of explicitly imported packages to list.
|
// SetImports sets the list of explicitly imported packages to list.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user