Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for FuncType (0.36 sec)

  1. src/go/types/exprstring.go

    		}
    		buf.WriteByte(']')
    		WriteExpr(buf, x.Elt)
    
    	case *ast.StructType:
    		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('}')
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 08 19:31:44 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  2. src/reflect/export_test.go

    	var ft *abi.Type
    	var abid abiDesc
    	if rcvr != nil {
    		ft, _, abid = funcLayout((*funcType)(unsafe.Pointer(t.common())), rcvr.common())
    	} else {
    		ft, _, abid = funcLayout((*funcType)(unsafe.Pointer(t.(*rtype))), nil)
    	}
    	// Extract size information.
    	argSize = abid.stackCallArgsSize
    	retOffset = abid.retOffset
    	frametype = toType(ft)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 15:10:48 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  3. src/reflect/makefunc.go

    // The first three words of this type must be kept in sync with
    // methodValue and runtime.reflectMethodValue.
    // Any changes should be reflected in all three.
    type makeFuncImpl struct {
    	makeFuncCtxt
    	ftyp *funcType
    	fn   func([]Value) []Value
    }
    
    // MakeFunc returns a new function of the given [Type]
    // that wraps the function fn. When called, that new function
    // does the following:
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 15:20:05 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/syntax/positions.go

    				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:
    			m = n.Chan
    		// case *DeclStmt:
    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/parser"
    	"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{}
    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. src/go/ast/example_test.go

    	//     12  .  .  .  .  .  Kind: func
    	//     13  .  .  .  .  .  Name: "main"
    	//     14  .  .  .  .  .  Decl: *(obj @ 7)
    	//     15  .  .  .  .  }
    	//     16  .  .  .  }
    	//     17  .  .  .  Type: *ast.FuncType {
    	//     18  .  .  .  .  Func: 3:1
    	//     19  .  .  .  .  Params: *ast.FieldList {
    	//     20  .  .  .  .  .  Opening: 3:10
    	//     21  .  .  .  .  .  Closing: 3:11
    	//     22  .  .  .  .  }
    	//     23  .  .  .  }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 21:44:50 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  7. src/go/ast/walk.go

    		Walk(v, n.Key)
    		Walk(v, n.Value)
    
    	// Types
    	case *ArrayType:
    		if n.Len != nil {
    			Walk(v, n.Len)
    		}
    		Walk(v, n.Elt)
    
    	case *StructType:
    		Walk(v, n.Fields)
    
    	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:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 16:34:10 UTC 2024
    - 6.4K bytes
    - Viewed (0)
Back to top