mirror of
https://github.com/golang/go
synced 2024-11-25 09:27:57 -07:00
all: fix some comments
Change-Id: I0ee85161846c13d938213ef04d3a34f690a93e48 Reviewed-on: https://go-review.googlesource.com/c/go/+/553435 Reviewed-by: Dmitri Shuralyov <dmitshur@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Ian Lance Taylor <iant@google.com> Auto-Submit: Ian Lance Taylor <iant@golang.org>
This commit is contained in:
parent
da6cc218cb
commit
7dd8f39eba
@ -27,7 +27,7 @@ import (
|
|||||||
// later.
|
// later.
|
||||||
var localPkgReader *pkgReader
|
var localPkgReader *pkgReader
|
||||||
|
|
||||||
// LookupMethodFunc returns the ir.Func for an arbitrary full symbol name if
|
// LookupFunc returns the ir.Func for an arbitrary full symbol name if
|
||||||
// that function exists in the set of available export data.
|
// that function exists in the set of available export data.
|
||||||
//
|
//
|
||||||
// This allows lookup of arbitrary functions and methods that aren't otherwise
|
// This allows lookup of arbitrary functions and methods that aren't otherwise
|
||||||
|
@ -403,7 +403,7 @@ func resultsToWasmFields(f *ir.Func, result *abi.ABIParamResultInfo, abiParams [
|
|||||||
return wfs
|
return wfs
|
||||||
}
|
}
|
||||||
|
|
||||||
// setupTextLSym initializes the LSym for a with-body text symbol.
|
// setupWasmABI calculates the params and results in terms of WebAssembly values for the given function.
|
||||||
func setupWasmABI(f *ir.Func) {
|
func setupWasmABI(f *ir.Func) {
|
||||||
wi := obj.WasmImport{
|
wi := obj.WasmImport{
|
||||||
Module: f.WasmImport.Module,
|
Module: f.WasmImport.Module,
|
||||||
|
@ -433,7 +433,7 @@ func dot(pos src.XPos, typ *types.Type, op ir.Op, x ir.Node, selection *types.Fi
|
|||||||
return n
|
return n
|
||||||
}
|
}
|
||||||
|
|
||||||
// XDotMethod returns an expression representing the field selection
|
// XDotField returns an expression representing the field selection
|
||||||
// x.sym. If any implicit field selection are necessary, those are
|
// x.sym. If any implicit field selection are necessary, those are
|
||||||
// inserted too.
|
// inserted too.
|
||||||
func XDotField(pos src.XPos, x ir.Node, sym *types.Sym) *ir.SelectorExpr {
|
func XDotField(pos src.XPos, x ir.Node, sym *types.Sym) *ir.SelectorExpr {
|
||||||
|
@ -844,7 +844,7 @@ func (t *Type) wantEtype(et Kind) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// ResultTuple returns the result type of signature type t as a tuple.
|
// ResultsTuple returns the result type of signature type t as a tuple.
|
||||||
// This can be used as the type of multi-valued call expressions.
|
// This can be used as the type of multi-valued call expressions.
|
||||||
func (t *Type) ResultsTuple() *Type { return t.funcType().resultsTuple }
|
func (t *Type) ResultsTuple() *Type { return t.funcType().resultsTuple }
|
||||||
|
|
||||||
@ -858,7 +858,7 @@ func (t *Type) Params() []*Field { return t.funcType().params() }
|
|||||||
// Results returns a slice of result parameters of signature type t.
|
// Results returns a slice of result parameters of signature type t.
|
||||||
func (t *Type) Results() []*Field { return t.funcType().results() }
|
func (t *Type) Results() []*Field { return t.funcType().results() }
|
||||||
|
|
||||||
// RecvsParamsResults returns a slice containing all of the
|
// RecvParamsResults returns a slice containing all of the
|
||||||
// signature's parameters in receiver (if any), (normal) parameters,
|
// signature's parameters in receiver (if any), (normal) parameters,
|
||||||
// and then results.
|
// and then results.
|
||||||
func (t *Type) RecvParamsResults() []*Field { return t.funcType().allParams }
|
func (t *Type) RecvParamsResults() []*Field { return t.funcType().allParams }
|
||||||
|
@ -190,7 +190,7 @@ func (c *conf) mustUseGoResolver(r *Resolver) bool {
|
|||||||
if runtime.GOOS == "plan9" {
|
if runtime.GOOS == "plan9" {
|
||||||
// TODO(bradfitz): for now we only permit use of the PreferGo
|
// TODO(bradfitz): for now we only permit use of the PreferGo
|
||||||
// implementation when there's a non-nil Resolver with a
|
// implementation when there's a non-nil Resolver with a
|
||||||
// non-nil Dialer. This is a sign that they the code is trying
|
// non-nil Dialer. This is a sign that the code is trying
|
||||||
// to use their DNS-speaking net.Conn (such as an in-memory
|
// to use their DNS-speaking net.Conn (such as an in-memory
|
||||||
// DNS cache) and they don't want to actually hit the network.
|
// DNS cache) and they don't want to actually hit the network.
|
||||||
// Once we add support for looking the default DNS servers
|
// Once we add support for looking the default DNS servers
|
||||||
|
@ -272,7 +272,7 @@ func (s *mspan) pinnerBitSize() uintptr {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// newPinnerBits returns a pointer to 8 byte aligned bytes to be used for this
|
// newPinnerBits returns a pointer to 8 byte aligned bytes to be used for this
|
||||||
// span's pinner bits. newPinneBits is used to mark objects that are pinned.
|
// span's pinner bits. newPinnerBits is used to mark objects that are pinned.
|
||||||
// They are copied when the span is swept.
|
// They are copied when the span is swept.
|
||||||
func (s *mspan) newPinnerBits() *pinnerBits {
|
func (s *mspan) newPinnerBits() *pinnerBits {
|
||||||
return (*pinnerBits)(newMarkBits(uintptr(s.nelems) * 2))
|
return (*pinnerBits)(newMarkBits(uintptr(s.nelems) * 2))
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
// Ensure that typed non-integer, negative and to large
|
// Ensure that typed non-integer, negative and too large
|
||||||
// values are not accepted as size argument in make for
|
// values are not accepted as size argument in make for
|
||||||
// channels.
|
// channels.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user