Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 62 for origin (0.65 sec)

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

    // reporting).
    func (check *Checker) newAliasInstance(pos syntax.Pos, orig *Alias, targs []Type, ctxt *Context) *Alias {
    	assert(len(targs) > 0)
    	obj := NewTypeName(pos, orig.obj.pkg, orig.obj.name, nil)
    	rhs := check.subst(pos, orig.fromRHS, makeSubstMap(orig.TypeParams().list(), targs), nil, ctxt)
    	res := check.newAlias(obj, rhs)
    	res.orig = orig
    	res.tparams = orig.tparams
    	res.targs = newTypeList(targs)
    	return res
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 5K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/types2/validtype.go

    				// directly or indirectly, after expansion of the RHS.
    				// Therefore t.Origin() must be invalid, no matter how it is
    				// instantiated since the instantiation t of t.Origin() happens
    				// inside t.Origin()'s RHS and thus is always the same and always
    				// present.
    				// Therefore we can mark the underlying of both t and t.Origin()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 15 13:22:37 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  3. src/cmd/go/internal/modfetch/codehost/vcs.go

    	if err != nil {
    		return nil, &UnknownRevisionError{Rev: rev}
    	}
    	info, err := r.cmd.parseStat(rev, string(out))
    	if err != nil {
    		return nil, err
    	}
    	if info.Origin == nil {
    		info.Origin = new(Origin)
    	}
    	info.Origin.VCS = r.cmd.vcs
    	info.Origin.URL = r.remote
    	return info, nil
    }
    
    func (r *vcsRepo) Latest(ctx context.Context) (*RevInfo, error) {
    	return r.Stat(ctx, "latest")
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Apr 14 18:50:24 UTC 2024
    - 17.3K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/types2/named.go

    	origm := t.inst.orig.Method(i)
    	assert(origm != nil)
    
    	check := t.check
    	// Ensure that the original method is type-checked.
    	if check != nil {
    		check.objDecl(origm, nil)
    	}
    
    	origSig := origm.typ.(*Signature)
    	rbase, _ := deref(origSig.Recv().Type())
    
    	// If rbase is t, then origm is already the instantiated method we're looking
    	// for. In this case, we return origm to preserve the invariant that
    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/cmd/go/internal/modinfo/info.go

    	Sum        string           `json:",omitempty"` // checksum for path, version (as in go.sum)
    	GoModSum   string           `json:",omitempty"` // checksum for go.mod (as in go.sum)
    	Origin     *codehost.Origin `json:",omitempty"` // provenance of module
    	Reuse      bool             `json:",omitempty"` // reuse of old module info is safe
    }
    
    type ModuleError struct {
    	Err string // error text
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:28 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  6. doc/next/6-stdlib/99-minor/go/types/67143.md

    The methods [Alias.Origin], [Alias.SetTypeParams], [Alias.TypeParams],
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 21:32:30 UTC 2024
    - 150 bytes
    - Viewed (0)
  7. src/cmd/go/internal/modfetch/codehost/codehost.go

    type Tags struct {
    	Origin *Origin
    	List   []Tag
    }
    
    // A Tag describes a single tag in a code repository.
    type Tag struct {
    	Name string
    	Hash string // content hash identifying tag's content, if available
    }
    
    // isOriginTag reports whether tag should be preserved
    // in the Tags method's Origin calculation.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Apr 14 18:50:24 UTC 2024
    - 12.8K bytes
    - Viewed (0)
  8. src/cmd/go/internal/modfetch/coderepo.go

    	defer func() {
    		if info.Origin == nil {
    			return
    		}
    		if revInfo == nil {
    			revInfo = new(RevInfo)
    		} else if revInfo.Origin != nil {
    			panic("internal error: RevInfo Origin unexpectedly already populated")
    		}
    
    		origin := *info.Origin
    		revInfo.Origin = &origin
    		origin.Subdir = r.codeDir
    
    		v := revInfo.Version
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Apr 14 18:50:24 UTC 2024
    - 38.4K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/types2/subst.go

    		// careful not to call any methods that would cause t to be expanded: doing
    		// so would result in deadlock.
    		//
    		// So we call t.Origin().TypeParams() rather than t.TypeParams().
    		orig := t.Origin()
    		n := orig.TypeParams().Len()
    		if n == 0 {
    			return t // type is not parameterized
    		}
    
    		if t.TypeArgs().Len() != n {
    			return Typ[Invalid] // error reported elsewhere
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:04:07 UTC 2024
    - 11K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/types2/object.go

    func (obj *Var) IsField() bool { return obj.isField }
    
    // Origin returns the canonical Var for its receiver, i.e. the Var object
    // recorded in Info.Defs.
    //
    // For synthetic Vars created during instantiation (such as struct fields or
    // function parameters that depend on type arguments), this will be the
    // corresponding Var on the generic (uninstantiated) type. For all other Vars
    // Origin returns the receiver.
    func (obj *Var) Origin() *Var {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 20:08:23 UTC 2024
    - 20.1K bytes
    - Viewed (0)
Back to top