Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 91 for interfaceType (0.21 sec)

  1. src/go/ast/ast.go

    		TypeParams *FieldList // type parameters; or nil
    		Params     *FieldList // (incoming) parameters; non-nil
    		Results    *FieldList // (outgoing) results; or nil
    	}
    
    	// An InterfaceType node represents an interface type.
    	InterfaceType struct {
    		Interface  token.Pos  // position of "interface" keyword
    		Methods    *FieldList // list of embedded interfaces, methods, or types
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 28 21:32:41 UTC 2024
    - 35.6K bytes
    - Viewed (0)
  2. 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)
  3. 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)
  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/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)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top