Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 237 for embeddeds (0.23 sec)

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

    			// in normal form.
    			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
    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/internal/gcimporter/ureader.go

    	methods := make([]*types.Func, r.Len())
    	embeddeds := make([]types.Type, r.Len())
    	implicit := len(methods) == 0 && len(embeddeds) == 1 && r.Bool()
    
    	for i := range methods {
    		pos := r.pos()
    		pkg, name := r.selector()
    		mtyp := r.signature(nil, nil, nil)
    		methods[i] = types.NewFunc(pos, pkg, name, mtyp)
    	}
    
    	for i := range embeddeds {
    		embeddeds[i] = r.typ()
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/types2/typestring.go

    				// note for embedded types, type name is field name, and "string" etc are lower case hence unexported.
    				pkgAnnotate = true
    				w.pkgInfo = false // only tag once
    			}
    
    			// This doesn't do the right thing for embedded type
    			// aliases where we should print the alias name, not
    			// the aliased type (see go.dev/issue/44410).
    			if !f.embedded {
    				w.string(f.name)
    				w.byte(' ')
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  4. src/go/types/subst.go

    			// in normal form.
    			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
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:04:07 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  5. src/go/types/typestring.go

    				// note for embedded types, type name is field name, and "string" etc are lower case hence unexported.
    				pkgAnnotate = true
    				w.pkgInfo = false // only tag once
    			}
    
    			// This doesn't do the right thing for embedded type
    			// aliases where we should print the alias name, not
    			// the aliased type (see go.dev/issue/44410).
    			if !f.embedded {
    				w.string(f.name)
    				w.byte(' ')
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  6. src/go/internal/gcimporter/iimport.go

    			tags[i] = tag
    		}
    		return types.NewStruct(fields, tags)
    
    	case interfaceType:
    		r.currPkg = r.pkg()
    
    		embeddeds := make([]types.Type, r.uint64())
    		for i := range embeddeds {
    			_ = r.pos()
    			embeddeds[i] = r.typ()
    		}
    
    		methods := make([]*types.Func, r.uint64())
    		for i := range methods {
    			mpos := r.pos()
    			mname := r.ident()
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 19.2K bytes
    - Viewed (0)
  7. src/go/internal/gccgoimporter/parser.go

    	p.expectKeyword("interface")
    
    	t := new(types.Interface)
    	p.update(t, nlist)
    
    	var methods []*types.Func
    	var embeddeds []types.Type
    
    	p.expect('{')
    	for p.tok != '}' && p.tok != scanner.EOF {
    		if p.tok == '?' {
    			p.next()
    			embeddeds = append(embeddeds, p.parseType(pkg))
    		} else {
    			method := p.parseFunc(pkg)
    			if method != nil {
    				methods = append(methods, method)
    			}
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 02 23:14:07 UTC 2024
    - 31.2K bytes
    - Viewed (0)
  8. src/go/types/typeset.go

    	} else {
    		unionSets = make(map[*Union]*_TypeSet)
    	}
    
    	// Methods of embedded interfaces are collected unchanged; i.e., the identity
    	// of a method I.m's Func Object of an interface I is the same as that of
    	// the method m in an interface that embeds interface I. On the other hand,
    	// if a method is embedded via multiple overlapping embedded interfaces, we
    	// don't provide a guarantee which "original m" got chosen for the embedding
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 13.7K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/types2/validtype.go

    				return false
    			}
    		}
    
    	case *Union:
    		for _, t := range t.terms {
    			if !check.validType0(pos, t.typ, nest, path) {
    				return false
    			}
    		}
    
    	case *Interface:
    		for _, etyp := range t.embeddeds {
    			if !check.validType0(pos, etyp, nest, path) {
    				return false
    			}
    		}
    
    	case *Named:
    		// TODO(gri) The optimization below is incorrect (see go.dev/issue/65711):
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 15 13:22:37 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  10. src/go/types/validtype.go

    				return false
    			}
    		}
    
    	case *Union:
    		for _, t := range t.terms {
    			if !check.validType0(pos, t.typ, nest, path) {
    				return false
    			}
    		}
    
    	case *Interface:
    		for _, etyp := range t.embeddeds {
    			if !check.validType0(pos, etyp, nest, path) {
    				return false
    			}
    		}
    
    	case *Named:
    		// TODO(gri) The optimization below is incorrect (see go.dev/issue/65711):
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 10.3K bytes
    - Viewed (0)
Back to top