Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 26 for typeList (0.17 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)
  8. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/CertificateAdapters.kt

            )
          },
        )
    
      /** The type of the parameters depends on the algorithm that precedes it. */
      private val algorithmParameters: DerAdapter<Any?> =
        Adapters.usingTypeHint { typeHint ->
          when (typeHint) {
            // This type is pretty strange. The spec says that for certain algorithms we must encode null
            // when it is present, and for others we must omit it!
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/cel/common/values.go

    			case "atomic":
    				return &typedList
    			default:
    				return types.NewErr("invalid x-kubernetes-list-type, expected 'map', 'set' or 'atomic' but got %s", listType)
    			}
    		}
    		return &typedList
    	}
    
    	if schema.Type() == "string" {
    		str, ok := unstructured.(string)
    		if !ok {
    			return types.NewErr("invalid data, expected string, got %T", unstructured)
    		}
    		switch schema.Format() {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 23 22:30:17 UTC 2023
    - 20.5K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/translate/export_tf_dialect_op.cc

    Status SetTypeAttribute(absl::string_view name, ContainerT types,
                            AttrValueMap* values) {
      AttrValue value;
      auto& type_list = *value.mutable_list();
      for (auto type : types) {
        DataType dtype;
        TF_RETURN_IF_ERROR(ConvertScalarTypeToDataType(type, &dtype));
        type_list.add_type(dtype);
      }
    
      auto result = values->insert({string(name), value});
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 01 11:17:36 UTC 2024
    - 11.1K bytes
    - Viewed (0)
Back to top