Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 36 for interfaceType (0.27 sec)

  1. 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)
  2. 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)
  3. src/go/doc/reader.go

    	text := comment.Text()
    	if r.doc == "" {
    		r.doc = text
    		return
    	}
    	r.doc += "\n" + text
    }
    
    func (r *reader) remember(predecl string, typ *ast.InterfaceType) {
    	if r.fixmap == nil {
    		r.fixmap = make(map[string][]*ast.InterfaceType)
    	}
    	r.fixmap[predecl] = append(r.fixmap[predecl], typ)
    }
    
    func specNames(specs []ast.Spec) []string {
    	names := make([]string, 0, len(specs)) // reasonable estimate
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 27.5K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/syntax/parser.go

    		p.fieldDecl(typ)
    		return false
    	})
    
    	return typ
    }
    
    // InterfaceType = "interface" "{" { ( MethodDecl | EmbeddedElem ) ";" } "}" .
    func (p *parser) interfaceType() *InterfaceType {
    	if trace {
    		defer p.trace("interfaceType")()
    	}
    
    	typ := new(InterfaceType)
    	typ.pos = p.pos()
    
    	p.want(_Interface)
    	p.want(_Lbrace)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 62.9K bytes
    - Viewed (0)
  5. src/runtime/alg.go

    		return f64hash(p, h)
    	case abi.Complex64:
    		return c64hash(p, h)
    	case abi.Complex128:
    		return c128hash(p, h)
    	case abi.String:
    		return strhash(p, h)
    	case abi.Interface:
    		i := (*interfacetype)(unsafe.Pointer(t))
    		if len(i.Methods) == 0 {
    			return nilinterhash(p, h)
    		}
    		return interhash(p, h)
    	case abi.Array:
    		a := (*arraytype)(unsafe.Pointer(t))
    		for i := uintptr(0); i < a.Len; i++ {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  6. src/go/ast/walk.go

    	case *FuncType:
    		if n.TypeParams != nil {
    			Walk(v, n.TypeParams)
    		}
    		if n.Params != nil {
    			Walk(v, n.Params)
    		}
    		if n.Results != nil {
    			Walk(v, n.Results)
    		}
    
    	case *InterfaceType:
    		Walk(v, n.Methods)
    
    	case *MapType:
    		Walk(v, n.Key)
    		Walk(v, n.Value)
    
    	case *ChanType:
    		Walk(v, n.Value)
    
    	// Statements
    	case *BadStmt:
    		// nothing to do
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 16:34:10 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/types2/typexpr.go

    		check.use(e0)
    
    	case *syntax.FuncType:
    		typ := new(Signature)
    		setDefType(def, typ)
    		check.funcType(typ, nil, nil, e)
    		return typ
    
    	case *syntax.InterfaceType:
    		typ := check.newInterface()
    		setDefType(def, typ)
    		check.interfaceType(typ, e, def)
    		return typ
    
    	case *syntax.MapType:
    		typ := new(Map)
    		setDefType(def, typ)
    
    		typ.key = check.varType(e.Key)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  8. src/go/internal/gcimporter/ureader.go

    		return r.signature(nil, nil, nil)
    	case pkgbits.TypeSlice:
    		return types.NewSlice(r.typ())
    	case pkgbits.TypeStruct:
    		return r.structType()
    	case pkgbits.TypeInterface:
    		return r.interfaceType()
    	case pkgbits.TypeUnion:
    		return r.unionType()
    	}
    }
    
    func (r *reader) structType() *types.Struct {
    	fields := make([]*types.Var, r.Len())
    	var tags []string
    	for i := range fields {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  9. src/go/types/typexpr.go

    		return typ
    
    	case *ast.FuncType:
    		typ := new(Signature)
    		setDefType(def, typ)
    		check.funcType(typ, nil, e)
    		return typ
    
    	case *ast.InterfaceType:
    		typ := check.newInterface()
    		setDefType(def, typ)
    		check.interfaceType(typ, e, def)
    		return typ
    
    	case *ast.MapType:
    		typ := new(Map)
    		setDefType(def, typ)
    
    		typ.key = check.varType(e.Key)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 16.3K bytes
    - Viewed (0)
  10. src/go/internal/gcimporter/iimport.go

    }
    
    const predeclReserved = 32
    
    type itag uint64
    
    const (
    	// Types
    	definedType itag = iota
    	pointerType
    	sliceType
    	arrayType
    	chanType
    	mapType
    	signatureType
    	structType
    	interfaceType
    	typeParamType
    	instanceType
    	unionType
    )
    
    // iImportData imports a package from the serialized package data
    // and returns the number of bytes consumed and a reference to the package.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 19.2K bytes
    - Viewed (0)
Back to top