Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 55 for interfaceType (0.62 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. src/internal/reflectlite/reflect_mirror_test.go

    	"go/token"
    	"io/fs"
    	"os"
    	"path/filepath"
    	"runtime"
    	"strings"
    	"sync"
    	"testing"
    )
    
    var typeNames = []string{
    	"uncommonType",
    	"arrayType",
    	"chanType",
    	"funcType",
    	"interfaceType",
    	"ptrType",
    	"sliceType",
    	"structType",
    }
    
    type visitor struct {
    	m map[string]map[string]bool
    }
    
    func newVisitor() visitor {
    	v := visitor{}
    	v.m = make(map[string]map[string]bool)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 19 21:11:15 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  6. platforms/jvm/language-java/src/main/java/org/gradle/api/internal/tasks/compile/incremental/asm/ClassDependenciesVisitor.java

                Type type = Type.getObjectType(superName);
                maybeAddDependentType(types, type);
            }
            for (String s : interfaces) {
                Type interfaceType = Type.getObjectType(s);
                maybeAddDependentType(types, interfaceType);
            }
        }
    
        @Override
        public ModuleVisitor visitModule(String name, int access, String version) {
            moduleName = name;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Feb 27 13:49:15 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/reflect/TypeTokenTest.java

    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 17:15:24 UTC 2024
    - 88.7K bytes
    - Viewed (0)
  8. src/reflect/type.go

    //	struct {
    //		funcType
    //		uncommonType
    //		[2]*rtype    // [0] is in, [1] is out
    //	}
    type funcType = abi.FuncType
    
    // interfaceType represents an interface type.
    type interfaceType struct {
    	abi.InterfaceType // can embed directly because not a public type.
    }
    
    func (t *interfaceType) nameOff(off aNameOff) abi.Name {
    	return toRType(&t.Type).nameOff(off)
    }
    
    func nameOffFor(t *abi.Type, off aNameOff) abi.Name {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 85.5K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/reflect/TypeTokenTest.java

    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 17:15:24 UTC 2024
    - 88.7K bytes
    - Viewed (0)
  10. src/go/types/exprstring.go

    		buf.WriteString("struct{")
    		writeFieldList(buf, x.Fields.List, "; ", false)
    		buf.WriteByte('}')
    
    	case *ast.FuncType:
    		buf.WriteString("func")
    		writeSigExpr(buf, x)
    
    	case *ast.InterfaceType:
    		buf.WriteString("interface{")
    		writeFieldList(buf, x.Methods.List, "; ", true)
    		buf.WriteByte('}')
    
    	case *ast.MapType:
    		buf.WriteString("map[")
    		WriteExpr(buf, x.Key)
    		buf.WriteByte(']')
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 08 19:31:44 UTC 2024
    - 4.8K bytes
    - Viewed (0)
Back to top