Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for funcTypeTypeParams (0.2 sec)

  1. src/cmd/cgo/ast_go1.go

    )
    
    func (f *File) walkUnexpected(x interface{}, context astContext, visit func(*File, interface{}, astContext)) {
    	error_(token.NoPos, "unexpected type %T in walk", x)
    	panic("unexpected type")
    }
    
    func funcTypeTypeParams(n *ast.FuncType) *ast.FieldList {
    	return nil
    }
    
    func typeSpecTypeParams(n *ast.TypeSpec) *ast.FieldList {
    	return nil
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Nov 30 21:45:10 GMT 2022
    - 578 bytes
    - Viewed (0)
  2. src/cmd/cgo/ast_go118.go

    	default:
    		error_(token.NoPos, "unexpected type %T in walk", x)
    		panic("unexpected type")
    
    	case *ast.IndexListExpr:
    		f.walk(&n.X, ctxExpr, visit)
    		f.walk(n.Indices, ctxExpr, visit)
    	}
    }
    
    func funcTypeTypeParams(n *ast.FuncType) *ast.FieldList {
    	return n.TypeParams
    }
    
    func typeSpecTypeParams(n *ast.TypeSpec) *ast.FieldList {
    	return n.TypeParams
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Nov 30 21:45:10 GMT 2022
    - 730 bytes
    - Viewed (0)
  3. src/cmd/cgo/ast.go

    	case *ast.ArrayType:
    		f.walk(&n.Len, ctxExpr, visit)
    		f.walk(&n.Elt, ctxType, visit)
    	case *ast.StructType:
    		f.walk(n.Fields, ctxField, visit)
    	case *ast.FuncType:
    		if tparams := funcTypeTypeParams(n); tparams != nil {
    			f.walk(tparams, ctxParam, visit)
    		}
    		f.walk(n.Params, ctxParam, visit)
    		if n.Results != nil {
    			f.walk(n.Results, ctxParam, visit)
    		}
    	case *ast.InterfaceType:
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Jun 07 16:54:27 GMT 2023
    - 14.3K bytes
    - Viewed (0)
Back to top