Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 87 for interfaceType (0.2 sec)

  1. src/cmd/compile/internal/typecheck/mkbuiltin.go

    		}
    		return fmt.Sprintf("types.NewChan(%s, %s)", i.subtype(t.Value), dir)
    	case *ast.FuncType:
    		return fmt.Sprintf("newSig(%s, %s)", i.fields(t.Params, false), i.fields(t.Results, false))
    	case *ast.InterfaceType:
    		if len(t.Methods.List) != 0 {
    			log.Fatal("non-empty interfaces unsupported")
    		}
    		return "types.Types[types.TINTER]"
    	case *ast.MapType:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jan 26 21:56:49 UTC 2023
    - 6K bytes
    - Viewed (0)
  2. 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)
  3. src/cmd/vendor/golang.org/x/tools/go/ast/astutil/enclosing.go

    			tok(n.Lbrack, len("[")),
    			tok(n.Rbrack, len("]")))
    
    	case *ast.IndexListExpr:
    		children = append(children,
    			tok(n.Lbrack, len("[")),
    			tok(n.Rbrack, len("]")))
    
    	case *ast.InterfaceType:
    		children = append(children,
    			tok(n.Interface, len("interface")))
    
    	case *ast.KeyValueExpr:
    		children = append(children,
    			tok(n.Colon, len(":")))
    
    	case *ast.LabeledStmt:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 18 21:28:13 UTC 2023
    - 15.9K bytes
    - Viewed (0)
  4. 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)
  5. src/cmd/compile/internal/syntax/walk.go

    		for _, t := range n.TagList {
    			if t != nil {
    				w.node(t)
    			}
    		}
    
    	case *Field:
    		if n.Name != nil {
    			w.node(n.Name)
    		}
    		w.node(n.Type)
    
    	case *InterfaceType:
    		w.fieldList(n.MethodList)
    
    	case *FuncType:
    		w.fieldList(n.ParamList)
    		w.fieldList(n.ResultList)
    
    	case *MapType:
    		w.node(n.Key)
    		w.node(n.Value)
    
    	case *ChanType:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 17 19:55:04 UTC 2023
    - 5.7K 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