Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 91 for interfaceType (0.19 sec)

  1. android/guava/src/com/google/common/util/concurrent/FakeTimeLimiter.java

      @CanIgnoreReturnValue // TODO(kak): consider removing this
      @Override
      public <T> T newProxy(
          T target, Class<T> interfaceType, long timeoutDuration, TimeUnit timeoutUnit) {
        checkNotNull(target);
        checkNotNull(interfaceType);
        checkNotNull(timeoutUnit);
        return target; // ha ha
      }
    
      @CanIgnoreReturnValue // TODO(kak): consider removing this
      @Override
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Dec 14 20:35:03 UTC 2023
    - 3.5K bytes
    - Viewed (0)
  2. src/internal/abi/iface.go

    // It records the underlying concrete type (Type), the interface type it
    // is implementing (Inter), and some ancillary information.
    //
    // allocated in non-garbage-collected memory
    type ITab struct {
    	Inter *InterfaceType
    	Type  *Type
    	Hash  uint32     // copy of Type.Hash. Used for type switches.
    	Fun   [1]uintptr // variable sized. fun[0]==0 means Type does not implement Inter.
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 17 21:09:59 UTC 2024
    - 895 bytes
    - Viewed (0)
  3. src/internal/abi/type.go

    	if t.Kind() != Func {
    		return nil
    	}
    	return (*FuncType)(unsafe.Pointer(t))
    }
    
    // InterfaceType returns t cast to a *InterfaceType, or nil if its tag does not match.
    func (t *Type) InterfaceType() *InterfaceType {
    	if t.Kind() != Interface {
    		return nil
    	}
    	return (*InterfaceType)(unsafe.Pointer(t))
    }
    
    // Size returns the size of data with type t.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 17 21:09:59 UTC 2024
    - 21.8K bytes
    - Viewed (0)
  4. src/go/doc/exports.go

    		if x.IsExported() {
    			return true
    		}
    	}
    	return false
    }
    
    // removeAnonymousField removes anonymous fields named name from an interface.
    func removeAnonymousField(name string, ityp *ast.InterfaceType) {
    	list := ityp.Methods.List // we know that ityp.Methods != nil
    	j := 0
    	for _, field := range list {
    		keepField := true
    		if n := len(field.Names); n == 0 {
    			// anonymous field
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 01 18:18:07 UTC 2022
    - 8.5K bytes
    - Viewed (0)
  5. src/runtime/type.go

    		}
    		return res
    	}
    	res := md.textAddr(uint32(off))
    	return unsafe.Pointer(res)
    }
    
    type uncommontype = abi.UncommonType
    
    type interfacetype = abi.InterfaceType
    
    type maptype = abi.MapType
    
    type arraytype = abi.ArrayType
    
    type chantype = abi.ChanType
    
    type slicetype = abi.SliceType
    
    type functype = abi.FuncType
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:17:26 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/stdmethods/stdmethods.go

    	nodeFilter := []ast.Node{
    		(*ast.FuncDecl)(nil),
    		(*ast.InterfaceType)(nil),
    	}
    	inspect.Preorder(nodeFilter, func(n ast.Node) {
    		switch n := n.(type) {
    		case *ast.FuncDecl:
    			if n.Recv != nil {
    				canonicalMethod(pass, n.Name)
    			}
    		case *ast.InterfaceType:
    			for _, field := range n.Methods.List {
    				for _, id := range field.Names {
    					canonicalMethod(pass, id)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 09 01:28:01 UTC 2023
    - 6.9K bytes
    - Viewed (0)
  7. src/runtime/iface.go

    		*(*[]byte)(x) = val
    	}
    	return
    }
    
    func assertE2I(inter *interfacetype, t *_type) *itab {
    	if t == nil {
    		// explicit conversions require non-nil interface value.
    		panic(&TypeAssertionError{nil, nil, &inter.Type, ""})
    	}
    	return getitab(inter, t, false)
    }
    
    func assertE2I2(inter *interfacetype, t *_type) *itab {
    	if t == nil {
    		return nil
    	}
    	return getitab(inter, t, true)
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 22.5K bytes
    - Viewed (0)
  8. src/go/doc/filter.go

    			// match type parameters here.
    			switch t := v.Type.(type) {
    			case *ast.StructType:
    				if matchFields(t.Fields, f) {
    					return true
    				}
    			case *ast.InterfaceType:
    				if matchFields(t.Methods, f) {
    					return true
    				}
    			}
    		}
    	}
    	return false
    }
    
    func filterValues(a []*Value, f Filter) []*Value {
    	w := 0
    	for _, vd := range a {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 01 18:18:07 UTC 2022
    - 2.2K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/types2/interface.go

    func (t *Interface) cleanup() {
    	t.typeSet() // any interface that escapes type checking must be safe for concurrent use
    	t.check = nil
    	t.embedPos = nil
    }
    
    func (check *Checker) interfaceType(ityp *Interface, iface *syntax.InterfaceType, def *TypeName) {
    	addEmbedded := func(pos syntax.Pos, typ Type) {
    		ityp.embeddeds = append(ityp.embeddeds, typ)
    		if ityp.embedPos == nil {
    			ityp.embedPos = new([]syntax.Pos)
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 09 17:24:42 UTC 2023
    - 6.2K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/syntax/positions.go

    				m = n.ElemList[0]
    				continue
    			}
    			return n.Pos()
    		// types
    		// case *ArrayType:
    		// case *SliceType:
    		// case *DotsType:
    		// case *StructType:
    		// case *Field:
    		// case *InterfaceType:
    		// case *FuncType:
    		// case *MapType:
    		// case *ChanType:
    
    		// statements
    		// case *EmptyStmt:
    		// case *LabeledStmt:
    		// case *BlockStmt:
    		// case *ExprStmt:
    		case *SendStmt:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 17:49:19 UTC 2024
    - 6.5K bytes
    - Viewed (0)
Back to top