Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 17 of 17 for TypeList (0.21 sec)

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

    		msg = "array length %s must be integer"
    	}
    	check.errorf(&x, InvalidArrayLen, msg, &x)
    	return -1
    }
    
    // typeList provides the list of types corresponding to the incoming expression list.
    // If an error occurred, the result is nil, but all list elements were type-checked.
    func (check *Checker) typeList(list []syntax.Expr) []Type {
    	res := make([]Type, len(list)) // res != nil even if len(list) == 0
    	for i, x := range list {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/types2/named.go

    }
    
    // instance holds information that is only necessary for instantiated named
    // types.
    type instance struct {
    	orig            *Named    // original, uninstantiated type
    	targs           *TypeList // type arguments
    	expandedMethods int       // number of expanded methods; expandedMethods <= len(orig.methods)
    	ctxt            *Context  // local Context; set to nil after full expansion
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 20:03:31 UTC 2024
    - 23.9K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/types2/call.go

    	// targs and xlist are the type arguments and corresponding type expressions, or nil.
    	var targs []Type
    	var xlist []syntax.Expr
    	if inst != nil {
    		xlist = syntax.UnpackListExpr(inst.Index)
    		targs = check.typeList(xlist)
    		if targs == nil {
    			x.mode = invalid
    			return nil, nil
    		}
    		assert(len(targs) == len(xlist))
    	}
    
    	// Check the number of type arguments (got) vs number of type parameters (want).
    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/named.go

    }
    
    // instance holds information that is only necessary for instantiated named
    // types.
    type instance struct {
    	orig            *Named    // original, uninstantiated type
    	targs           *TypeList // type arguments
    	expandedMethods int       // number of expanded methods; expandedMethods <= len(orig.methods)
    	ctxt            *Context  // local Context; set to nil after full expansion
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 20:03:31 UTC 2024
    - 24K bytes
    - Viewed (0)
  5. src/go/types/call.go

    	// targs and xlist are the type arguments and corresponding type expressions, or nil.
    	var targs []Type
    	var xlist []ast.Expr
    	if ix != nil {
    		xlist = ix.Indices
    		targs = check.typeList(xlist)
    		if targs == nil {
    			x.mode = invalid
    			return nil, nil
    		}
    		assert(len(targs) == len(xlist))
    	}
    
    	// Check the number of type arguments (got) vs number of type parameters (want).
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 33.5K bytes
    - Viewed (0)
  6. src/go/types/api.go

    // function instantiations. For type instantiations, [Type] will be of dynamic
    // type *[Named]. For function instantiations, [Type] will be of dynamic type
    // *Signature.
    type Instance struct {
    	TypeArgs *TypeList
    	Type     Type
    }
    
    // An Initializer describes a package-level variable, or a list of variables in case
    // of a multi-valued initialization expression, and the corresponding initialization
    // expression.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 17.2K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/types2/api.go

    // function instantiations. For type instantiations, Type will be of dynamic
    // type *Named. For function instantiations, Type will be of dynamic type
    // *Signature.
    type Instance struct {
    	TypeArgs *TypeList
    	Type     Type
    }
    
    // An Initializer describes a package-level variable, or a list of variables in case
    // of a multi-valued initialization expression, and the corresponding initialization
    // expression.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 13:48:53 UTC 2024
    - 17.4K bytes
    - Viewed (0)
Back to top