Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for newInterface (0.1 sec)

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

    			return &Union{terms}
    		}
    
    	case *Interface:
    		methods, mcopied := subst.funcList(t.methods)
    		embeddeds, ecopied := subst.typeList(t.embeddeds)
    		if mcopied || ecopied {
    			iface := subst.check.newInterface()
    			iface.embeddeds = embeddeds
    			iface.embedPos = t.embedPos
    			iface.implicit = t.implicit
    			assert(t.complete) // otherwise we are copying incomplete data
    			iface.complete = t.complete
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:04:07 UTC 2024
    - 11K bytes
    - Viewed (0)
  2. src/go/types/subst.go

    			return &Union{terms}
    		}
    
    	case *Interface:
    		methods, mcopied := subst.funcList(t.methods)
    		embeddeds, ecopied := subst.typeList(t.embeddeds)
    		if mcopied || ecopied {
    			iface := subst.check.newInterface()
    			iface.embeddeds = embeddeds
    			iface.embedPos = t.embedPos
    			iface.implicit = t.implicit
    			assert(t.complete) // otherwise we are copying incomplete data
    			iface.complete = t.complete
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:04:07 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/copylock/copylock.go

    	nullary := types.NewSignature(nil, nil, nil, false) // func()
    	methods := []*types.Func{
    		types.NewFunc(token.NoPos, nil, "Lock", nullary),
    		types.NewFunc(token.NoPos, nil, "Unlock", nullary),
    	}
    	lockerType = types.NewInterface(methods, nil).Complete()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/types2/named.go

    			// possible that it wasn't substituted. In this case we need to create
    			// a new *Interface before modifying receivers.
    			if iface == orig.underlying {
    				old := iface
    				iface = check.newInterface()
    				iface.embeddeds = old.embeddeds
    				assert(old.complete) // otherwise we are copying incomplete data
    				iface.complete = old.complete
    				iface.implicit = old.implicit // should be false but be conservative
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 20:03:31 UTC 2024
    - 23.9K bytes
    - Viewed (0)
  5. src/go/types/named.go

    			// possible that it wasn't substituted. In this case we need to create
    			// a new *Interface before modifying receivers.
    			if iface == orig.underlying {
    				old := iface
    				iface = check.newInterface()
    				iface.embeddeds = old.embeddeds
    				assert(old.complete) // otherwise we are copying incomplete data
    				iface.complete = old.complete
    				iface.implicit = old.implicit // should be false but be conservative
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 20:03:31 UTC 2024
    - 24K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/test/abiutils_test.go

    	fldt := mkFuncType(types.FakeRecvType(), []*types.Type{},
    		[]*types.Type{types.Types[types.TSTRING]})
    	field := types.NewField(src.NoXPos, typecheck.Lookup("F"), fldt)
    	nei := types.NewInterface([]*types.Field{field})
    	i16 := types.Types[types.TINT16]
    	tb := types.Types[types.TBOOL]
    	s1 := mkstruct(i16, i16, tb)
    	ft := mkFuncType(nil, []*types.Type{s1, ei, ei, nei, pei, nei, i16},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 04 15:11:40 UTC 2023
    - 14.2K bytes
    - Viewed (0)
  7. 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)
  8. 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)
  9. 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)
Back to top