Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 37 for FuncType (0.14 sec)

  1. src/internal/abi/type.go

    	if t.Kind() != Array {
    		return nil
    	}
    	return (*ArrayType)(unsafe.Pointer(t))
    }
    
    // FuncType returns t cast to a *FuncType, or nil if its tag does not match.
    func (t *Type) FuncType() *FuncType {
    	if t.Kind() != Func {
    		return nil
    	}
    	return (*FuncType)(unsafe.Pointer(t))
    }
    
    // InterfaceType returns t cast to a *InterfaceType, or nil if its tag does not match.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 17 21:09:59 UTC 2024
    - 21.8K bytes
    - Viewed (0)
  2. src/internal/reflectlite/type.go

    }
    
    func (t rtype) NumIn() int {
    	tt := t.Type.FuncType()
    	if tt == nil {
    		panic("reflect: NumIn of non-func type")
    	}
    	return int(tt.InCount)
    }
    
    func (t rtype) NumOut() int {
    	tt := t.Type.FuncType()
    	if tt == nil {
    		panic("reflect: NumOut of non-func type")
    	}
    	return tt.NumOut()
    }
    
    func (t rtype) Out(i int) Type {
    	tt := t.Type.FuncType()
    	if tt == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 17:01:54 UTC 2024
    - 16.2K bytes
    - Viewed (0)
  3. src/runtime/type.go

    type interfacetype = abi.InterfaceType
    
    type maptype = abi.MapType
    
    type arraytype = abi.ArrayType
    
    type chantype = abi.ChanType
    
    type slicetype = abi.SliceType
    
    type functype = abi.FuncType
    
    type ptrtype = abi.PtrType
    
    type name = abi.Name
    
    type structtype = abi.StructType
    
    func pkgPath(n name) string {
    	if n.Bytes == nil || *n.Data(0)&(1<<2) == 0 {
    		return ""
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:17:26 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  4. src/go/types/signature.go

    // ----------------------------------------------------------------------------
    // Implementation
    
    // funcType type-checks a function or method type.
    func (check *Checker) funcType(sig *Signature, recvPar *ast.FieldList, ftyp *ast.FuncType) {
    	check.openScope(ftyp, "function")
    	check.scope.isFunc = true
    	check.recordScope(ftyp, check.scope)
    	sig.scope = check.scope
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 29 22:06:18 UTC 2024
    - 13K bytes
    - Viewed (0)
  5. src/go/ast/ast.go

    		Incomplete bool       // true if (source) fields are missing in the Fields list
    	}
    
    	// Pointer types are represented via StarExpr nodes.
    
    	// A FuncType node represents a function type.
    	FuncType struct {
    		Func       token.Pos  // position of "func" keyword (token.NoPos if there is no "func")
    		TypeParams *FieldList // type parameters; or nil
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 28 21:32:41 UTC 2024
    - 35.6K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/types2/signature.go

    // ----------------------------------------------------------------------------
    // Implementation
    
    // funcType type-checks a function or method type.
    func (check *Checker) funcType(sig *Signature, recvPar *syntax.Field, tparams []*syntax.Field, ftyp *syntax.FuncType) {
    	check.openScope(ftyp, "function")
    	check.scope.isFunc = true
    	check.recordScope(ftyp, check.scope)
    	sig.scope = check.scope
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 21:33:05 UTC 2024
    - 12.6K bytes
    - Viewed (0)
  7. src/cmd/vendor/golang.org/x/tools/go/ast/astutil/enclosing.go

    		// Uniquely, FuncDecl breaks the invariant that
    		// preorder traversal yields tokens in lexical order:
    		// in fact, FuncDecl.Recv precedes FuncDecl.Type.Func.
    		//
    		// As a workaround, we inline the case for FuncType
    		// here and order things correctly.
    		//
    		children = nil // discard ast.Walk(FuncDecl) info subtrees
    		children = append(children, tok(n.Type.Func, len("func")))
    		if n.Recv != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 18 21:28:13 UTC 2023
    - 15.9K bytes
    - Viewed (0)
  8. src/debug/dwarf/type.go

    		if i > 0 {
    			s += "; "
    		}
    		s += v.Name + "=" + strconv.FormatInt(v.Val, 10)
    	}
    	s += "}"
    	return s
    }
    
    // A FuncType represents a function type.
    type FuncType struct {
    	CommonType
    	ReturnType Type
    	ParamType  []Type
    }
    
    func (t *FuncType) String() string {
    	s := "func("
    	for i, t := range t.ParamType {
    		if i > 0 {
    			s += ", "
    		}
    		s += t.String()
    	}
    	s += ")"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 18 19:33:30 UTC 2023
    - 21.9K bytes
    - Viewed (0)
  9. src/cmd/link/internal/ld/decodesym.go

    	return abi.TFlag(p[abi.TFlagOff(arch.PtrSize)])&abi.TFlagUncommon != 0
    }
    
    // Type.FuncType.dotdotdot
    func decodetypeFuncDotdotdot(arch *sys.Arch, p []byte) bool {
    	return uint16(decodeInuxi(arch, p[commonsize(arch)+2:], 2))&(1<<15) != 0
    }
    
    // Type.FuncType.inCount
    func decodetypeFuncInCount(arch *sys.Arch, p []byte) int {
    	return int(decodeInuxi(arch, p[commonsize(arch):], 2))
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 16:25:18 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  10. src/cmd/fix/fix.go

    	case **ast.BlockStmt:
    		walkBeforeAfter(*n, before, after)
    	case **ast.CallExpr:
    		walkBeforeAfter(*n, before, after)
    	case **ast.FieldList:
    		walkBeforeAfter(*n, before, after)
    	case **ast.FuncType:
    		walkBeforeAfter(*n, before, after)
    	case **ast.Ident:
    		walkBeforeAfter(*n, before, after)
    	case **ast.BasicLit:
    		walkBeforeAfter(*n, before, after)
    
    	// pointers to slices
    	case *[]ast.Decl:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 14.6K bytes
    - Viewed (0)
Back to top