Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 21 for funcList (0.49 sec)

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

    			// This is ok; lazy type set computation will determine the actual type set
    			// in normal form.
    			return &Union{terms}
    		}
    
    	case *Interface:
    		methods, mcopied := subst.funcList(t.methods)
    		embeddeds, ecopied := subst.typeList(t.embeddeds)
    		if mcopied || ecopied {
    			iface := subst.check.newInterface()
    			iface.embeddeds = embeddeds
    			iface.embedPos = t.embedPos
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:04:07 UTC 2024
    - 11K bytes
    - Viewed (0)
  2. src/go/types/subst.go

    			// This is ok; lazy type set computation will determine the actual type set
    			// in normal form.
    			return &Union{terms}
    		}
    
    	case *Interface:
    		methods, mcopied := subst.funcList(t.methods)
    		embeddeds, ecopied := subst.typeList(t.embeddeds)
    		if mcopied || ecopied {
    			iface := subst.check.newInterface()
    			iface.embeddeds = embeddeds
    			iface.embedPos = t.embedPos
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:04:07 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/types2/call.go

    //
    // There are two modes of operation:
    //
    //  1. If infer == true, funcInst infers missing type arguments as needed and
    //     instantiates the function x. The returned results are nil.
    //
    //  2. If infer == false and inst provides all type arguments, funcInst
    //     instantiates the function x. The returned results are nil.
    //     If inst doesn't provide enough type arguments, funcInst returns the
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 31.5K bytes
    - Viewed (0)
  4. src/go/types/call.go

    //
    // There are two modes of operation:
    //
    //  1. If infer == true, funcInst infers missing type arguments as needed and
    //     instantiates the function x. The returned results are nil.
    //
    //  2. If infer == false and inst provides all type arguments, funcInst
    //     instantiates the function x. The returned results are nil.
    //     If inst doesn't provide enough type arguments, funcInst returns the
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 33.5K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/copylock/copylock.go

    		(*ast.FuncDecl)(nil),
    		(*ast.FuncLit)(nil),
    		(*ast.GenDecl)(nil),
    		(*ast.RangeStmt)(nil),
    		(*ast.ReturnStmt)(nil),
    	}
    	inspect.Preorder(nodeFilter, func(node ast.Node) {
    		switch node := node.(type) {
    		case *ast.RangeStmt:
    			checkCopyLocksRange(pass, node)
    		case *ast.FuncDecl:
    			checkCopyLocksFunc(pass, node.Name.Name, node.Recv, node.Type)
    		case *ast.FuncLit:
    			checkCopyLocksFunc(pass, "func", nil, node.Type)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/rangefunc/rewrite.go

    	ri := make(map[*syntax.FuncLit]bool)
    	for _, file := range files {
    		syntax.Inspect(file, func(n syntax.Node) bool {
    			switch n := n.(type) {
    			case *syntax.FuncDecl:
    				sig, _ := info.Defs[n.Name].Type().(*types2.Signature)
    				rewriteFunc(pkg, info, n.Type, n.Body, sig, ri)
    				return false
    			case *syntax.FuncLit:
    				sig, _ := info.Types[n].Type.(*types2.Signature)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:05:44 UTC 2024
    - 41.6K bytes
    - Viewed (0)
  7. src/go/ast/ast.go

    		Value    string      // literal string; e.g. 42, 0x7f, 3.14, 1e-9, 2.4i, 'a', '\x7f', "foo" or `\m\n\o`
    	}
    
    	// A FuncLit node represents a function literal.
    	FuncLit struct {
    		Type *FuncType  // function type
    		Body *BlockStmt // function body
    	}
    
    	// A CompositeLit node represents a composite literal.
    	CompositeLit struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 28 21:32:41 UTC 2024
    - 35.6K bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/loopclosure/loopclosure.go

    }
    
    // litStmts returns all statements from the function body of a function
    // literal.
    //
    // If fun is not a function literal, it returns nil.
    func litStmts(fun ast.Expr) []ast.Stmt {
    	lit, _ := fun.(*ast.FuncLit)
    	if lit == nil {
    		return nil
    	}
    	return lit.Body.List
    }
    
    // goInvoke returns a function expression that would be called asynchronously
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  9. src/cmd/vendor/golang.org/x/tools/go/ast/astutil/enclosing.go

    		}
    		if n.Type.Results != nil {
    			children = append(children, n.Type.Results)
    		}
    		if n.Body != nil {
    			children = append(children, n.Body)
    		}
    
    	case *ast.FuncLit:
    		// nop
    
    	case *ast.FuncType:
    		if n.Func != 0 {
    			children = append(children,
    				tok(n.Func, len("func")))
    		}
    
    	case *ast.GenDecl:
    		children = append(children,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 18 21:28:13 UTC 2023
    - 15.9K bytes
    - Viewed (0)
  10. src/cmd/fix/typecheck.go

    	// the curfn stack.
    	var curfn []*ast.FuncType
    
    	before := func(n any) {
    		// push function type on stack
    		switch n := n.(type) {
    		case *ast.FuncDecl:
    			curfn = append(curfn, n.Type)
    		case *ast.FuncLit:
    			curfn = append(curfn, n.Type)
    		}
    	}
    
    	// After is the real type checker.
    	after := func(n any) {
    		if n == nil {
    			return
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 16 22:02:42 UTC 2022
    - 20.1K bytes
    - Viewed (0)
Back to top