Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 214 for typeName (0.35 sec)

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

    // rhs must not be nil.
    func NewAlias(obj *TypeName, rhs Type) *Alias {
    	alias := (*Checker)(nil).newAlias(obj, rhs)
    	// Ensure that alias.actual is set (#65455).
    	alias.cleanup()
    	return alias
    }
    
    // Obj returns the type name for the declaration defining the alias type a.
    // For instantiated types, this is same as the type name of the origin type.
    func (a *Alias) Obj() *TypeName { return a.orig.obj }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 5K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/types2/object_test.go

    )
    
    func TestIsAlias(t *testing.T) {
    	check := func(obj *TypeName, want bool) {
    		if got := obj.IsAlias(); got != want {
    			t.Errorf("%v: got IsAlias = %v; want %v", obj, got, want)
    		}
    	}
    
    	// predeclared types
    	check(Unsafe.Scope().Lookup("Pointer").(*TypeName), false)
    	for _, name := range Universe.Names() {
    		if obj, _ := Universe.Lookup(name).(*TypeName); obj != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 18 14:10:44 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/rewrite_util.h

    #include "mlir/Support/LLVM.h"  // from @llvm-project
    
    namespace mlir {
    namespace TF {
    
    // Returns int, float or complex DenseElementsAttr with scalar shape with the
    // given element type and the integer value.
    template <typename T>
    DenseElementsAttr GetScalarOfType(Type ty, T raw_value) {
      RankedTensorType scalar_ty = RankedTensorType::get({}, ty);
      if (auto float_ty = mlir::dyn_cast<FloatType>(ty)) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 22 19:47:48 UTC 2024
    - 4K bytes
    - Viewed (0)
  4. src/go/types/typexpr.go

    // For the meaning of def, see Checker.definedType, below.
    // If wantType is set, the identifier e is expected to denote a type.
    func (check *Checker) ident(x *operand, e *ast.Ident, def *TypeName, wantType bool) {
    	x.mode = invalid
    	x.expr = e
    
    	// Note that we cannot use check.lookup here because the returned scope
    	// may be different from obj.Parent(). See also Scope.LookupParent doc.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 16.3K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/types2/typexpr.go

    // For the meaning of def, see Checker.definedType, below.
    // If wantType is set, the identifier e is expected to denote a type.
    func (check *Checker) ident(x *operand, e *syntax.Name, def *TypeName, wantType bool) {
    	x.mode = invalid
    	x.expr = e
    
    	// Note that we cannot use check.lookup here because the returned scope
    	// may be different from obj.Parent(). See also Scope.LookupParent doc.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  6. src/go/types/alias.go

    // rhs must not be nil.
    func NewAlias(obj *TypeName, rhs Type) *Alias {
    	alias := (*Checker)(nil).newAlias(obj, rhs)
    	// Ensure that alias.actual is set (#65455).
    	alias.cleanup()
    	return alias
    }
    
    // Obj returns the type name for the declaration defining the alias type a.
    // For instantiated types, this is same as the type name of the origin type.
    func (a *Alias) Obj() *TypeName { return a.orig.obj }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/validation_test.go

    				*vv = NestedValueValidation{}
    			}
    		},
    	)
    	fuzzer.NilChance(0)
    
    	// check that type must be object
    	typeNames := []string{"object", "array", "number", "integer", "boolean", "string"}
    	for _, typeName := range typeNames {
    		s := Structural{
    			Generic: Generic{
    				Type: typeName,
    			},
    		}
    
    		errs := validateStructuralMetadataInvariants(&s, true, rootLevel, nil)
    		if len(errs) != 0 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 31 18:20:00 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  8. src/go/types/typestring.go

    		w.error("nil")
    
    	case *Basic:
    		// exported basic types go into package unsafe
    		// (currently this is just unsafe.Pointer)
    		if isExported(t.name) {
    			if obj, _ := Unsafe.scope.Lookup(t.name).(*TypeName); obj != nil {
    				w.typeName(obj)
    				break
    			}
    		}
    		w.string(t.name)
    
    	case *Array:
    		w.byte('[')
    		w.string(strconv.FormatInt(t.len, 10))
    		w.byte(']')
    		w.typ(t.elem)
    
    	case *Slice:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo_conversions/reduce.h

    LogicalResult MatchReduceToArgMinMaxType2(mhlo::ReduceOp reduce_op,
                                              bool is_argmax);
    
    // Base class for converting mhlo::ReduceOp to TF/TFL ArgMax/ArgMin ops.
    template <typename Reduce, typename ArgReduce, typename BooleanReduce,
              bool is_argmax>
    class ConvertReduceOpToArgMinMax : public OpConversionPattern<mhlo::ReduceOp> {
     public:
      using OpConversionPattern::OpConversionPattern;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/reflect/Types.java

          if (ownerType != null && JavaVersion.CURRENT.jdkTypeDuplicatesOwnerName()) {
            builder.append(JavaVersion.CURRENT.typeName(ownerType)).append('.');
          }
          return builder
              .append(rawType.getName())
              .append('<')
              .append(COMMA_JOINER.join(transform(argumentsList, JavaVersion.CURRENT::typeName)))
              .append('>')
              .toString();
        }
    
        @Override
        public int hashCode() {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Apr 17 16:33:44 UTC 2024
    - 23.1K bytes
    - Viewed (0)
Back to top