Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 88 for newNames (0.16 sec)

  1. src/cmd/compile/internal/walk/switch.go

    			// Switch on the result of the call (or cache lookup).
    			var newCases []*ir.CaseClause
    			for i, c := range interfaceCases {
    				newCases = append(newCases, &ir.CaseClause{
    					List: []ir.Node{ir.NewInt(base.Pos, int64(i))},
    					Body: []ir.Node{c.jmp},
    				})
    			}
    			// TODO: add len(newCases) case, mark switch as bounded
    			sw2 := ir.NewSwitchStmt(base.Pos, caseVar, newCases)
    			sw.Compiled.Append(typecheck.Stmt(sw2))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:34:01 UTC 2024
    - 30.1K bytes
    - Viewed (0)
  2. src/reflect/type.go

    	pkgPathName := abi.Name{Bytes: (*byte)(resolveTypeOff(unsafe.Pointer(n.Bytes), nameOff))}
    	return pkgPathName.Name()
    }
    
    func newName(n, tag string, exported, embedded bool) abi.Name {
    	return abi.NewName(n, tag, exported, embedded)
    }
    
    /*
     * The compiler knows the exact layout of all the data structures above.
     * The compiler does not know about the data structures and methods below.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 85.5K bytes
    - Viewed (0)
  3. src/go/types/typeterm_test.go

    // license that can be found in the LICENSE file.
    
    package types
    
    import (
    	"strings"
    	"testing"
    )
    
    var myInt = func() Type {
    	tname := NewTypeName(nopos, nil, "myInt", nil)
    	return NewNamed(tname, Typ[Int], nil)
    }()
    
    var testTerms = map[string]*term{
    	"∅":       nil,
    	"𝓤":       {},
    	"int":     {false, Typ[Int]},
    	"~int":    {true, Typ[Int]},
    	"string":  {false, Typ[String]},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  4. src/go/types/object_test.go

    			check(obj, name == "any" || name == "byte" || name == "rune")
    		}
    	}
    
    	// various other types
    	pkg := NewPackage("p", "p")
    	t1 := NewTypeName(nopos, pkg, "t1", nil)
    	n1 := NewNamed(t1, new(Struct), nil)
    	t5 := NewTypeName(nopos, pkg, "t5", nil)
    	NewTypeParam(t5, nil)
    	for _, test := range []struct {
    		name  *TypeName
    		alias bool
    	}{
    		{NewTypeName(nopos, nil, "t0", nil), false}, // no type yet
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 18 14:10:44 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  5. tensorflow/c/eager/c_api_unified_experimental_graph.cc

        }
        // TODO(b/145674566): We use Graph::NewName to get a unique name here but
        // this may not be consistent with python's naming policy.
        mutex_lock l(g_->mu);
        op_.reset(new TF_OperationDescription(g_, op_type_.c_str(),
                                              g_->graph.NewName(op_name).c_str()));
        return absl::OkStatus();
      }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 12 20:00:09 UTC 2024
    - 15.4K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/types2/typeterm_test.go

    // license that can be found in the LICENSE file.
    
    package types2
    
    import (
    	"strings"
    	"testing"
    )
    
    var myInt = func() Type {
    	tname := NewTypeName(nopos, nil, "myInt", nil)
    	return NewNamed(tname, Typ[Int], nil)
    }()
    
    var testTerms = map[string]*term{
    	"∅":       nil,
    	"𝓤":       {},
    	"int":     {false, Typ[Int]},
    	"~int":    {true, Typ[Int]},
    	"string":  {false, Typ[String]},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 20 23:30:58 UTC 2021
    - 5.1K bytes
    - Viewed (0)
  7. src/internal/abi/type.go

    	i2, l2 := n.ReadVarint(1 + i + l)
    	return unsafe.String(n.DataChecked(1+i+l+i2, "non-empty string"), l2)
    }
    
    func NewName(n, tag string, exported, embedded bool) Name {
    	if len(n) >= 1<<29 {
    		panic("abi.NewName: name too long: " + n[:1024] + "...")
    	}
    	if len(tag) >= 1<<29 {
    		panic("abi.NewName: tag too long: " + tag[:1024] + "...")
    	}
    	var nameLen [10]byte
    	var tagLen [10]byte
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 17 21:09:59 UTC 2024
    - 21.8K bytes
    - Viewed (0)
  8. 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)
  9. 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)
  10. 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)
Back to top