Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 73 for FuncType (0.21 sec)

  1. src/cmd/compile/internal/types2/expr.go

    		*syntax.IndexExpr,
    		*syntax.SliceExpr,
    		*syntax.AssertExpr,
    		*syntax.ListExpr,
    		//*syntax.StarExpr,
    		*syntax.KeyValueExpr,
    		*syntax.ArrayType,
    		*syntax.StructType,
    		*syntax.FuncType,
    		*syntax.InterfaceType,
    		*syntax.MapType,
    		*syntax.ChanType:
    		// These expression are never untyped - nothing to do.
    		// The respective sub-expressions got their final types
    		// upon assignment or use.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 02:09:54 UTC 2024
    - 51.7K bytes
    - Viewed (0)
  2. src/reflect/value.go

    }
    
    var callGC bool // for testing; see TestCallMethodJump and TestCallArgLive
    
    const debugReflectCall = false
    
    func (v Value) call(op string, in []Value) []Value {
    	// Get function pointer, type.
    	t := (*funcType)(unsafe.Pointer(v.typ()))
    	var (
    		fn       unsafe.Pointer
    		rcvr     Value
    		rcvrtype *abi.Type
    	)
    	if v.flag&flagMethod != 0 {
    		rcvr = v
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:17:41 UTC 2024
    - 119.9K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/types2/decl.go

    	// its methods, and we don't want a cycle error in that case.
    	// TODO(gri) review if this is correct and/or whether we still need this?
    	saved := obj.color_
    	obj.color_ = black
    	fdecl := decl.fdecl
    	check.funcType(sig, fdecl.Recv, fdecl.TParamList, fdecl.Type)
    	obj.color_ = saved
    
    	// Set the scope's extent to the complete "func (...) { ... }"
    	// so that Scope.Innermost works correctly.
    	sig.scope.pos = fdecl.Pos()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 29.6K bytes
    - Viewed (0)
  4. src/cmd/doc/pkg.go

    		if n.Assign.IsValid() {
    			sep = " = "
    		}
    		tparams := pkg.formatTypeParams(n.TypeParams, depth)
    		return fmt.Sprintf("type %s%s%s%s", n.Name.Name, tparams, sep, pkg.oneLineNodeDepth(n.Type, depth))
    
    	case *ast.FuncType:
    		var params []string
    		if n.Params != nil {
    			for _, field := range n.Params.List {
    				params = append(params, pkg.oneLineField(field, depth))
    			}
    		}
    		needParens := false
    		var results []string
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 08 20:15:52 UTC 2024
    - 32K bytes
    - Viewed (0)
  5. src/go/types/decl.go

    	// its methods, and we don't want a cycle error in that case.
    	// TODO(gri) review if this is correct and/or whether we still need this?
    	saved := obj.color_
    	obj.color_ = black
    	fdecl := decl.fdecl
    	check.funcType(sig, fdecl.Recv, fdecl.Type)
    	obj.color_ = saved
    
    	// Set the scope's extent to the complete "func (...) { ... }"
    	// so that Scope.Innermost works correctly.
    	sig.scope.pos = fdecl.Pos()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 31K bytes
    - Viewed (0)
  6. src/cmd/internal/dwarf/dwarf.go

    			{DW_AT_name, DW_FORM_string},
    			{DW_AT_type, DW_FORM_ref_addr},
    			{DW_AT_go_kind, DW_FORM_data1},
    			{DW_AT_go_runtime_type, DW_FORM_addr},
    			{DW_AT_go_elem, DW_FORM_ref_addr},
    		},
    	},
    
    	/* FUNCTYPE */
    	{
    		DW_TAG_subroutine_type,
    		DW_CHILDREN_yes,
    		[]dwAttrForm{
    			{DW_AT_name, DW_FORM_string},
    			{DW_AT_byte_size, DW_FORM_udata},
    			{DW_AT_go_kind, DW_FORM_data1},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 06 15:23:18 UTC 2024
    - 43K bytes
    - Viewed (0)
  7. src/cmd/link/internal/ld/dwarf_test.go

    		t.Fatalf("error reading DWARF: %v", err)
    	}
    
    	want := map[string]bool{
    		"internal/abi.Type":          true,
    		"internal/abi.ArrayType":     true,
    		"internal/abi.ChanType":      true,
    		"internal/abi.FuncType":      true,
    		"internal/abi.MapType":       true,
    		"internal/abi.PtrType":       true,
    		"internal/abi.SliceType":     true,
    		"internal/abi.StructType":    true,
    		"internal/abi.InterfaceType": true,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 08 01:38:11 UTC 2024
    - 48.6K bytes
    - Viewed (0)
  8. src/cmd/vendor/github.com/ianlancetaylor/demangle/demangle.go

    	}
    
    	ft = simplify(ft)
    
    	// For a local name, discard the return type, so that it
    	// doesn't get confused with the top level return type.
    	if local == forLocalName {
    		if functype, ok := ft.(*FunctionType); ok {
    			functype.ForLocalName = true
    		}
    	}
    
    	// Any top-level qualifiers belong to the function type.
    	if mwq != nil {
    		a = mwq.Method
    		mwq.Method = ft
    		ft = mwq
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 94.1K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/ssa/_gen/rulegen.go

    		u.scope.objects[name] = &object{
    			name: name,
    			pos:  node.Pos(),
    		}
    	case *ast.FuncDecl:
    		u.node(node.Type)
    		if node.Body != nil {
    			u.node(node.Body)
    		}
    	case *ast.FuncType:
    		if node.Params != nil {
    			u.node(node.Params)
    		}
    		if node.Results != nil {
    			u.node(node.Results)
    		}
    	case *ast.FieldList:
    		for _, field := range node.List {
    			u.node(field)
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Sep 02 22:09:21 UTC 2023
    - 48.7K bytes
    - Viewed (0)
  10. src/cmd/link/internal/ld/dwarf.go

    	// Needed by the prettyprinter code for interface inspection.
    	for _, typ := range []string{
    		"type:internal/abi.Type",
    		"type:internal/abi.ArrayType",
    		"type:internal/abi.ChanType",
    		"type:internal/abi.FuncType",
    		"type:internal/abi.MapType",
    		"type:internal/abi.PtrType",
    		"type:internal/abi.SliceType",
    		"type:internal/abi.StructType",
    		"type:internal/abi.InterfaceType",
    		"type:internal/abi.ITab",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 16:25:18 UTC 2024
    - 72.4K bytes
    - Viewed (0)
Back to top