Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of about 10,000 for typC (0.16 sec)

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

    func (check *Checker) typ(e syntax.Expr) Type {
    	return check.definedType(e, nil)
    }
    
    // varType type-checks the type expression e and returns its type, or Typ[Invalid].
    // The type must not be an (uninstantiated) generic type and it must not be a
    // constraint interface.
    func (check *Checker) varType(e syntax.Expr) Type {
    	typ := check.definedType(e, nil)
    	check.validVarType(e, typ)
    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/instantiate_test.go

    		src       string
    		name1     string
    		targs1    []Type
    		name2     string
    		targs2    []Type
    		wantEqual bool
    	}{
    		{
    			"package basictype; type T[P any] int",
    			"T", []Type{Typ[Int]},
    			"T", []Type{Typ[Int]},
    			true,
    		},
    		{
    			"package differenttypeargs; type T[P any] int",
    			"T", []Type{Typ[Int]},
    			"T", []Type{Typ[String]},
    			false,
    		},
    		{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 28 17:58:07 UTC 2023
    - 5.8K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/types2/subst.go

    		panic("unreachable")
    	}
    
    	return typ
    }
    
    // typOrNil is like typ but if the argument is nil it is replaced with Typ[Invalid].
    // A nil type may appear in pathological cases such as type T[P any] []func(_ T([]_))
    // where an array/slice element is accessed before it is set up.
    func (subst *subster) typOrNil(typ Type) Type {
    	if typ == nil {
    		return Typ[Invalid]
    	}
    	return subst.typ(typ)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:04:07 UTC 2024
    - 11K bytes
    - Viewed (0)
  4. src/go/types/instantiate_test.go

    		src       string
    		name1     string
    		targs1    []Type
    		name2     string
    		targs2    []Type
    		wantEqual bool
    	}{
    		{
    			"package basictype; type T[P any] int",
    			"T", []Type{Typ[Int]},
    			"T", []Type{Typ[Int]},
    			true,
    		},
    		{
    			"package differenttypeargs; type T[P any] int",
    			"T", []Type{Typ[Int]},
    			"T", []Type{Typ[String]},
    			false,
    		},
    		{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/types2/mono.go

    	}
    
    	// Recursively walk the type argument to find any defined types or
    	// type parameters.
    	var do func(typ Type)
    	do = func(typ Type) {
    		switch typ := Unalias(typ).(type) {
    		default:
    			panic("unexpected type")
    
    		case *TypeParam:
    			assert(typ.Obj().Pkg() == pkg)
    			flow(w.typeParamVertex(typ), typ)
    
    		case *Named:
    			if src := w.localNamedVertex(pkg, typ.Origin()); src >= 0 {
    				flow(src, typ)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 28 00:05:29 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  6. src/go/types/subst.go

    		panic("unreachable")
    	}
    
    	return typ
    }
    
    // typOrNil is like typ but if the argument is nil it is replaced with Typ[Invalid].
    // A nil type may appear in pathological cases such as type T[P any] []func(_ T([]_))
    // where an array/slice element is accessed before it is set up.
    func (subst *subster) typOrNil(typ Type) Type {
    	if typ == nil {
    		return Typ[Invalid]
    	}
    	return subst.typ(typ)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:04:07 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  7. src/go/internal/gccgoimporter/parser_test.go

    	{id: "foo", typ: "<type 1 struct { I8 <type -1>; I16 <type -2> \"i16\"; }>", want: "struct{I8 int8; I16 int16 \"i16\"}"},
    	{id: "foo", typ: "<type 1 interface { Foo (a <type -1>, b <type -2>) <type -1>; Bar (? <type -2>, ? ...<type -1>) (? <type -2>, ? <type -1>); Baz (); }>", want: "interface{Bar(int16, ...int8) (int16, int8); Baz(); Foo(a int8, b int16) int8}"},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 26 20:35:55 UTC 2018
    - 2.8K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/types2/operand.go

    //
    // value      <expr> (<untyped kind> <mode>                    )
    // value      <expr> (               <mode>       of type <typ>)
    //
    // nilvalue   untyped nil
    // nilvalue   nil    (                            of type <typ>)
    //
    // commaok    <expr> (<untyped kind> <mode>                    )
    // commaok    <expr> (               <mode>       of type <typ>)
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 21:17:10 UTC 2024
    - 11K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/reflectdata/helpers.go

    // element type.
    func sliceElemRType(pos src.XPos, typ *types.Type) ir.Node {
    	base.AssertfAt(typ.IsSlice(), pos, "want slice type, have %v", typ)
    	return TypePtrAt(pos, typ.Elem())
    }
    
    // concreteRType asserts that typ is not an interface type, and
    // returns an expression that yields the *runtime._type value
    // representing typ.
    func concreteRType(pos src.XPos, typ *types.Type) ir.Node {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 12 04:50:32 UTC 2023
    - 7.1K bytes
    - Viewed (0)
  10. cmd/storage-datatypes.go

    	return fi.Erasure.DataBlocks
    }
    
    // Equals checks if fi(FileInfo) matches ofi(FileInfo)
    func (fi FileInfo) Equals(ofi FileInfo) (ok bool) {
    	typ1, ok1 := crypto.IsEncrypted(fi.Metadata)
    	typ2, ok2 := crypto.IsEncrypted(ofi.Metadata)
    	if ok1 != ok2 {
    		return false
    	}
    	if typ1 != typ2 {
    		return false
    	}
    	if fi.IsCompressed() != ofi.IsCompressed() {
    		return false
    	}
    	if !fi.TransitionInfoEquals(ofi) {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:51:27 UTC 2024
    - 15.7K bytes
    - Viewed (0)
Back to top