Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 15 of 15 for newInterface (0.15 sec)

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

    		check.use(e0)
    
    	case *syntax.FuncType:
    		typ := new(Signature)
    		setDefType(def, typ)
    		check.funcType(typ, nil, nil, e)
    		return typ
    
    	case *syntax.InterfaceType:
    		typ := check.newInterface()
    		setDefType(def, typ)
    		check.interfaceType(typ, e, def)
    		return typ
    
    	case *syntax.MapType:
    		typ := new(Map)
    		setDefType(def, typ)
    
    		typ.key = check.varType(e.Key)
    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/types/type.go

    func newBasic(kind Kind, obj Object) *Type {
    	t := newType(kind)
    	t.obj = obj
    	return t
    }
    
    // NewInterface returns a new interface for the given methods and
    // embedded types. Embedded types are specified as fields with no Sym.
    func NewInterface(methods []*Field) *Type {
    	t := newType(TINTER)
    	t.SetInterface(methods)
    	for _, f := range methods {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:29:45 UTC 2024
    - 49.5K bytes
    - Viewed (0)
  3. src/internal/types/testdata/fixedbugs/issue61879.go

    }
    
    // Larger example from issue
    
    type InterfaceA[T comparable] interface {
    	setData(string) InterfaceA[T]
    }
    
    type ImplA[T comparable] struct {
    	data string
    	args []any
    }
    
    func NewInterfaceA[T comparable](args ...any) InterfaceA[T] {
    	return &ImplA[T]{
    		data: fmt.Sprintf("%v", args...),
    		args: args,
    	}
    }
    
    func (k *ImplA[T]) setData(data string) InterfaceA[T] {
    	k.data = data
    	return k
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 15 19:42:56 UTC 2023
    - 1K bytes
    - Viewed (0)
  4. subprojects/core/src/main/java/org/gradle/internal/classpath/transforms/InstrumentingBackwardsCompatibilityVisitor.java

            String newSuperName = fixInternalNameForBackwardCompatibility(superName);
            String[] newInterfaces = fixInternalNamesForBackwardsCompatibility(interfaces);
            super.visit(version, access, name, signature, newSuperName, newInterfaces);
        }
    
        @Override
        public FieldVisitor visitField(int access, String name, String descriptor, String signature, Object value) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 12 08:17:26 UTC 2023
    - 7.8K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go

    		{"NewArray", Func, 5},
    		{"NewChan", Func, 5},
    		{"NewChecker", Func, 5},
    		{"NewConst", Func, 5},
    		{"NewContext", Func, 18},
    		{"NewField", Func, 5},
    		{"NewFunc", Func, 5},
    		{"NewInterface", Func, 5},
    		{"NewInterfaceType", Func, 11},
    		{"NewLabel", Func, 5},
    		{"NewMap", Func, 5},
    		{"NewMethodSet", Func, 5},
    		{"NewNamed", Func, 5},
    		{"NewPackage", Func, 5},
    		{"NewParam", Func, 5},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 534.2K bytes
    - Viewed (0)
Back to top