Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 104 for recvq (1.11 sec)

  1. src/cmd/compile/internal/noder/noder.go

    	err        chan syntax.Error
    }
    
    // linkname records a //go:linkname directive.
    type linkname struct {
    	pos    syntax.Pos
    	local  string
    	remote string
    }
    
    var unOps = [...]ir.Op{
    	syntax.Recv: ir.ORECV,
    	syntax.Mul:  ir.ODEREF,
    	syntax.And:  ir.OADDR,
    
    	syntax.Not: ir.ONOT,
    	syntax.Xor: ir.OBITNOT,
    	syntax.Add: ir.OPLUS,
    	syntax.Sub: ir.ONEG,
    }
    
    var binOps = [...]ir.Op{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 11 20:40:57 UTC 2023
    - 12.5K bytes
    - Viewed (0)
  2. pkg/adsc/adsc_test.go

    				if err := tt.validator(tt); err != nil {
    					t.Fatal(err)
    				}
    			}
    
    			if !cmp.Equal(tt.inAdsc.Received, tt.expectedADSResources.Received, protocmp.Transform()) {
    				t.Errorf("%s: expected recv %v got %v", tt.desc, tt.expectedADSResources.Received, tt.inAdsc.Received)
    			}
    		})
    	}
    }
    
    func TestADSC_Save(t *testing.T) {
    	tests := []struct {
    		desc         string
    		expectedJSON map[string]string
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Dec 19 22:42:42 UTC 2023
    - 15.4K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/types2/decl.go

    	// The object map contains the package scope objects and the non-interface methods.
    	if debug {
    		info := check.objMap[obj]
    		inObjMap := info != nil && (info.fdecl == nil || info.fdecl.Recv == nil) // exclude methods
    		isPkgObj := obj.Parent() == check.pkg.scope
    		if isPkgObj != inObjMap {
    			check.dump("%v: inconsistent object map for %s (isPkgObj = %v, inObjMap = %v)", obj.Pos(), obj, isPkgObj, inObjMap)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 29.6K bytes
    - Viewed (0)
  4. src/go/types/issues_test.go

    		// must match the method's name per the choice in the source file.
    		for i := 0; i < iface.NumMethods(); i++ {
    			m := iface.Method(i)
    			recvName := m.Signature().Recv().Type().(*Named).Obj().Name()
    			if recvName != m.Name() {
    				t.Errorf("perm %v: got recv %s; want %s", perm, recvName, m.Name())
    			}
    		}
    	}
    }
    
    func TestIssue28282(t *testing.T) {
    	// create type interface { error }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 28.1K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/tests/tests.go

    	for _, f := range pass.Files {
    		if !strings.HasSuffix(pass.Fset.File(f.Pos()).Name(), "_test.go") {
    			continue
    		}
    		for _, decl := range f.Decls {
    			fn, ok := decl.(*ast.FuncDecl)
    			if !ok || fn.Recv != nil {
    				// Ignore non-functions or functions with receivers.
    				continue
    			}
    			switch {
    			case strings.HasPrefix(fn.Name.Name, "Example"):
    				checkExampleName(pass, fn)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 14.4K bytes
    - Viewed (0)
  6. src/go/types/stmt.go

    		}
    		return typ.elem, nil, "", false, true
    	case *Signature:
    		if !buildcfg.Experiment.RangeFunc && allowVersion != nil && !allowVersion(go1_23) {
    			return bad("requires go1.23 or later")
    		}
    		assert(typ.Recv() == nil)
    		switch {
    		case typ.Params().Len() != 1:
    			return bad("func must be func(yield func(...) bool): wrong argument count")
    		case toSig(typ.Params().At(0).Type()) == nil:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 30.6K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/types/size.go

    	// function is 3 cated structures;
    	// compute their widths as side-effect.
    	case TFUNCARGS:
    		t1 := t.FuncArgs()
    		// TODO(mdempsky): Should package abi be responsible for computing argwid?
    		w = calcStructOffset(t1, t1.Recvs(), 0)
    		w = calcStructOffset(t1, t1.Params(), w)
    		w = RoundUp(w, int64(RegSize))
    		w = calcStructOffset(t1, t1.Results(), w)
    		w = RoundUp(w, int64(RegSize))
    		t1.extra.(*Func).Argwid = w
    		t.align = 1
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 15K bytes
    - Viewed (0)
  8. src/go/ast/filter.go

    // nameOf returns the function (foo) or method name (foo.bar) for
    // the given function declaration. If the AST is incorrect for the
    // receiver, it assumes a function instead.
    func nameOf(f *FuncDecl) string {
    	if r := f.Recv; r != nil && len(r.List) == 1 {
    		// looks like a correct receiver declaration
    		t := r.List[0].Type
    		// dereference pointer receiver types
    		if p, _ := t.(*StarExpr); p != nil {
    			t = p.X
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/types2/issues_test.go

    		// must match the method's name per the choice in the source file.
    		for i := 0; i < iface.NumMethods(); i++ {
    			m := iface.Method(i)
    			recvName := m.Type().(*Signature).Recv().Type().(*Named).Obj().Name()
    			if recvName != m.Name() {
    				t.Errorf("perm %v: got recv %s; want %s", perm, recvName, m.Name())
    			}
    		}
    	}
    }
    
    func TestIssue28282(t *testing.T) {
    	// create type interface { error }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 28.1K bytes
    - Viewed (0)
  10. src/go/types/decl.go

    	// The object map contains the package scope objects and the non-interface methods.
    	if debug {
    		info := check.objMap[obj]
    		inObjMap := info != nil && (info.fdecl == nil || info.fdecl.Recv == nil) // exclude methods
    		isPkgObj := obj.Parent() == check.pkg.scope
    		if isPkgObj != inObjMap {
    			check.dump("%v: inconsistent object map for %s (isPkgObj = %v, inObjMap = %v)", obj.Pos(), obj, isPkgObj, inObjMap)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 31K bytes
    - Viewed (0)
Back to top