- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 92 for newNames (0.13 sec)
-
src/cmd/compile/internal/types2/struct.go
pos := syntax.StartPos(f.Type) // position of type, for errors name := embeddedFieldIdent(f.Type) if name == nil { check.errorf(pos, InvalidSyntaxTree, "invalid embedded field type %s", f.Type) name = syntax.NewName(pos, "_") addInvalid(name) continue } add(name, true) // struct{p.T} field has position of T // Because we have a name, typ must be of the form T or *T, where T is the name
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 29 22:06:18 UTC 2024 - 6.6K bytes - Viewed (0) -
src/net/dnsclient_unix.go
var lastErr error serverOffset := cfg.serverOffset() sLen := uint32(len(cfg.servers)) n, err := dnsmessage.NewName(name) if err != nil { return dnsmessage.Parser{}, "", &DNSError{Err: errCannotMarshalDNSMessage.Error(), Name: name} } q := dnsmessage.Question{ Name: n, Type: qtype, Class: dnsmessage.ClassINET,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sun Apr 14 18:23:45 UTC 2024 - 24.5K bytes - Viewed (0) -
src/net/resolverdialfunc_test.go
// AddSRV adds a SRV record. The target name must end in a period and // be 63 bytes or fewer. func (w SRVWriter) AddSRV(priority, weight, port uint16, target string) error { targetName, err := dnsmessage.NewName(target) if err != nil { return err } w.a.wrote = true err = w.a.builder.SRVResource(w.header(), dnsmessage.SRVResource{ Priority: priority, Weight: weight, Port: port,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 8.3K bytes - Viewed (0) -
src/cmd/compile/internal/syntax/nodes.go
type Group struct { _ int // not empty so we are guaranteed different Group instances } // ---------------------------------------------------------------------------- // Expressions func NewName(pos Pos, value string) *Name { n := new(Name) n.pos = pos n.Value = value return n } type ( Expr interface { Node typeInfo aExpr() }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Sep 20 14:52:38 UTC 2023 - 9K bytes - Viewed (0) -
src/cmd/compile/internal/walk/select.go
var scase *types.Type // Keep in sync with src/runtime/select.go. func scasetype() *types.Type { if scase == nil { n := ir.NewDeclNameAt(src.NoXPos, ir.OTYPE, ir.Pkgs.Runtime.Lookup("scase")) scase = types.NewNamed(n) n.SetType(scase) n.SetTypecheck(1) scase.SetUnderlying(types.NewStruct([]*types.Field{ types.NewField(base.Pos, typecheck.Lookup("c"), types.Types[types.TUNSAFEPTR]),
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Aug 22 01:53:41 UTC 2023 - 7.8K bytes - Viewed (0) -
src/go/types/object.go
// The remaining arguments set the attributes found with all Objects. // // The typ argument may be a defined (Named) type or an alias type. // It may also be nil such that the returned TypeName can be used as // argument for NewNamed, which will set the TypeName's type as a side- // effect. func NewTypeName(pos token.Pos, pkg *Package, name string, typ Type) *TypeName { return &TypeName{object{nil, pos, pkg, name, typ, 0, colorFor(typ), nopos}} }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 07 20:08:23 UTC 2024 - 20.1K bytes - Viewed (0) -
src/cmd/compile/internal/syntax/parser.go
// Common productions func (p *parser) name() *Name { // no tracing to avoid overly verbose output if p.tok == _Name { n := NewName(p.pos(), p.lit) p.next() return n } n := NewName(p.pos(), "_") p.syntaxError("expected name") p.advance() return n } // IdentifierList = identifier { "," identifier } . // The first name must be provided.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 62.9K bytes - Viewed (0) -
pkg/config/analysis/README.md
// assume that the namespace is not blank, except for cluster-scoped resources. for i, gwName := range vs.Gateways { if !c.Exists(collections.Gateway, resource.NewName(r.Metadata.FullName.Namespace, gwName)) { // Messages are defined in galley/pkg/config/analysis/msg/messages.yaml // From there, code is generated for each message type, including a constructor function
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Apr 02 08:32:06 UTC 2024 - 9.4K bytes - Viewed (0) -
pilot/pkg/serviceregistry/kube/controller/ambient/waypoints.go
} func makeWaypoint( gateway *v1beta1.Gateway, gatewayClass *v1beta1.GatewayClass, serviceAccounts []string, trafficType string, ) *Waypoint { return &Waypoint{ Named: krt.NewNamed(gateway), Addresses: getGatewayAddrs(gateway), DefaultBinding: makeInboundBinding(gateway, gatewayClass), TrafficType: trafficType, ServiceAccounts: slices.Sort(serviceAccounts), } }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Jun 12 18:02:28 UTC 2024 - 11.1K bytes - Viewed (0) -
src/cmd/compile/internal/types2/object.go
// The remaining arguments set the attributes found with all Objects. // // The typ argument may be a defined (Named) type or an alias type. // It may also be nil such that the returned TypeName can be used as // argument for NewNamed, which will set the TypeName's type as a side- // effect. func NewTypeName(pos syntax.Pos, pkg *Package, name string, typ Type) *TypeName { return &TypeName{object{nil, pos, pkg, name, typ, 0, colorFor(typ), nopos}} }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 07 20:08:23 UTC 2024 - 20.1K bytes - Viewed (0)