Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 39 of 39 for ifaceeq (0.18 sec)

  1. src/cmd/compile/internal/types2/infer.go

    					//           (which will compare signatures exactly as we do below).
    					//           We leave it as is for now because missingMethod provides
    					//           a failure cause which allows for a better error message.
    					//           Eventually, unify should return an error with cause.
    					var cause string
    					constraint := tpar.iface()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 13:54:20 UTC 2024
    - 26.4K bytes
    - Viewed (0)
  2. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/printf/printf.go

    	if !sig.Variadic() {
    		return nil // not variadic
    	}
    
    	params := sig.Params()
    	nparams := params.Len() // variadic => nonzero
    
    	args := params.At(nparams - 1)
    	iface, ok := args.Type().(*types.Slice).Elem().(*types.Interface)
    	if !ok || !iface.Empty() {
    		return nil // final (args) param is not ...interface{}
    	}
    
    	// Is second last param 'format string'?
    	var format *types.Var
    	if nparams >= 2 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 32.5K bytes
    - Viewed (0)
  3. src/go/types/infer.go

    					//           (which will compare signatures exactly as we do below).
    					//           We leave it as is for now because missingMethod provides
    					//           a failure cause which allows for a better error message.
    					//           Eventually, unify should return an error with cause.
    					var cause string
    					constraint := tpar.iface()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 13:54:20 UTC 2024
    - 26.5K bytes
    - Viewed (0)
  4. src/encoding/xml/marshal.go

    			if dashLast {
    				// "--->" is invalid grammar. Make it "- -->"
    				p.WriteByte(' ')
    			}
    			p.WriteString("-->")
    			continue
    
    		case fInnerXML:
    			vf = indirect(vf)
    			iface := vf.Interface()
    			switch raw := iface.(type) {
    			case []byte:
    				p.Write(raw)
    				continue
    			case string:
    				p.WriteString(raw)
    				continue
    			}
    
    		case fElement, fElement | fAny:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 08 18:46:41 UTC 2024
    - 31.2K bytes
    - Viewed (0)
  5. src/internal/reflectlite/type.go

    	// methods along the way, or else V does not implement T.
    	// This lets us run the scan in overall linear time instead of
    	// the quadratic time  a naive search would require.
    	// See also ../runtime/iface.go.
    	if V.Kind() == Interface {
    		v := (*interfaceType)(unsafe.Pointer(V))
    		i := 0
    		for j := 0; j < len(v.Methods); j++ {
    			tm := &t.Methods[i]
    			tmName := rT.nameOff(tm.Name)
    			vm := &v.Methods[j]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 17:01:54 UTC 2024
    - 16.2K bytes
    - Viewed (0)
  6. src/text/template/exec.go

    // the template.
    func (s *state) printValue(n parse.Node, v reflect.Value) {
    	s.at(n)
    	iface, ok := printableValue(v)
    	if !ok {
    		s.errorf("can't print %s of type %s", n, v.Type())
    	}
    	_, err := fmt.Fprint(s.wr, iface)
    	if err != nil {
    		s.writeError(err)
    	}
    }
    
    // printableValue returns the, possibly indirected, interface value inside v that
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 21:22:24 UTC 2024
    - 32K bytes
    - Viewed (0)
  7. src/runtime/mfinal.go

    					(*eface)(r).data = f.arg
    					if len(ityp.Methods) != 0 {
    						// convert to interface with methods
    						// this conversion is guaranteed to succeed - we checked in SetFinalizer
    						(*iface)(r).tab = assertE2I(ityp, (*eface)(r)._type)
    					}
    				default:
    					throw("bad kind in runfinq")
    				}
    				fingStatus.Or(fingRunningFinalizer)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 01:56:56 UTC 2024
    - 19K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/walk/switch.go

    				as := ir.NewAssignListStmt(c.pos, ir.OAS2,
    					[]ir.Node{ir.BlankNode, s.okName},                               // _, ok =
    					[]ir.Node{ir.NewTypeAssertExpr(c.pos, s.srcName, c.typ.Type())}) // iface.(type)
    				nif := ir.NewIfStmt(c.pos, s.okName, []ir.Node{c.jmp}, nil)
    				clauses = append(clauses, typeClause{
    					hash: types.TypeHash(c.typ.Type()),
    					body: []ir.Node{typecheck.Stmt(as), typecheck.Stmt(nif)},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:34:01 UTC 2024
    - 30.1K bytes
    - Viewed (0)
  9. src/runtime/runtime2.go

    	// while sema-based impl as M* waitm.
    	// Used to be a union, but unions break precise GC.
    	key uintptr
    }
    
    type funcval struct {
    	fn uintptr
    	// variable-size, fn-specific data here
    }
    
    type iface struct {
    	tab  *itab
    	data unsafe.Pointer
    }
    
    type eface struct {
    	_type *_type
    	data  unsafe.Pointer
    }
    
    func efaceOf(ep *any) *eface {
    	return (*eface)(unsafe.Pointer(ep))
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:57:37 UTC 2024
    - 47.9K bytes
    - Viewed (0)
Back to top