Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 19 of 19 for newInterface (0.19 sec)

  1. src/go/types/typexpr.go

    		return typ
    
    	case *ast.FuncType:
    		typ := new(Signature)
    		setDefType(def, typ)
    		check.funcType(typ, nil, e)
    		return typ
    
    	case *ast.InterfaceType:
    		typ := check.newInterface()
    		setDefType(def, typ)
    		check.interfaceType(typ, e, def)
    		return typ
    
    	case *ast.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.3K bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. api/go1.5.txt

    pkg go/types, func NewField(token.Pos, *Package, string, Type, bool) *Var
    pkg go/types, func NewFunc(token.Pos, *Package, string, *Signature) *Func
    pkg go/types, func NewInterface([]*Func, []*Named) *Interface
    pkg go/types, func NewLabel(token.Pos, *Package, string) *Label
    pkg go/types, func NewMap(Type, Type) *Map
    pkg go/types, func NewMethodSet(Type) *MethodSet
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 30 21:14:09 UTC 2015
    - 46.6K bytes
    - Viewed (0)
  5. build-logic/binary-compatibility/src/main/groovy/gradlebuild/binarycompatibility/rules/IncubatingInternalInterfaceAddedRule.groovy

            Map<String, CtClass> newInterfaces = collectImplementedInterfaces(newClass)
    
            newInterfaces.keySet().removeAll(oldInterfaces.keySet())
    
            if (newInterfaces.isEmpty()) {
                return null
            }
    
            List<String> changes = filterChangesToReport(newClass, newInterfaces)
            if (changes.isEmpty()) {
                return null
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 06 19:15:15 UTC 2022
    - 2.8K bytes
    - Viewed (0)
  6. 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)
  7. 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)
  8. 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)
  9. api/go1.16.txt

    pkg go/build, const AllowBinary //deprecated
    pkg go/doc, type Package struct, Bugs //deprecated
    pkg go/importer, func For //deprecated
    pkg go/importer, func ForCompiler //deprecated
    pkg go/types, func NewInterface //deprecated
    pkg go/types, method (*Interface) Embedded //deprecated
    pkg image, var ZP //deprecated
    pkg image, var ZR //deprecated
    pkg image/jpeg, type Reader //deprecated
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 02 16:30:41 UTC 2022
    - 479.2K bytes
    - Viewed (0)
Back to top