Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for new_target (0.43 sec)

  1. src/go/types/expr.go

    // variable of an assignment, or of a function result variable.
    type target struct {
    	sig  *Signature
    	desc string
    }
    
    // newTarget creates a new target for the given type and description.
    // The result is nil if typ is not a signature.
    func newTarget(typ Type, desc string) *target {
    	if typ != nil {
    		if sig, _ := under(typ).(*Signature); sig != nil {
    			return &target{sig, desc}
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 02:09:54 UTC 2024
    - 49.7K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/types2/decl.go

    			// error reported before by arityMatch
    			obj.typ = Typ[Invalid]
    		}
    		return
    	}
    
    	if lhs == nil || len(lhs) == 1 {
    		assert(lhs == nil || lhs[0] == obj)
    		var x operand
    		check.expr(newTarget(obj.typ, obj.name), &x, init)
    		check.initVar(obj, &x, "variable declaration")
    		return
    	}
    
    	if debug {
    		// obj must be one of lhs
    		found := false
    		for _, lhs := range lhs {
    			if obj == lhs {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 29.6K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/types2/expr.go

    // variable of an assignment, or of a function result variable.
    type target struct {
    	sig  *Signature
    	desc string
    }
    
    // newTarget creates a new target for the given type and description.
    // The result is nil if typ is not a signature.
    func newTarget(typ Type, desc string) *target {
    	if typ != nil {
    		if sig, _ := under(typ).(*Signature); sig != nil {
    			return &target{sig, desc}
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 02:09:54 UTC 2024
    - 51.7K bytes
    - Viewed (0)
  4. src/go/types/decl.go

    			// error reported before by arityMatch
    			obj.typ = Typ[Invalid]
    		}
    		return
    	}
    
    	if lhs == nil || len(lhs) == 1 {
    		assert(lhs == nil || lhs[0] == obj)
    		var x operand
    		check.expr(newTarget(obj.typ, obj.name), &x, init)
    		check.initVar(obj, &x, "variable declaration")
    		return
    	}
    
    	if debug {
    		// obj must be one of lhs
    		found := false
    		for _, lhs := range lhs {
    			if obj == lhs {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 31K bytes
    - Viewed (0)
Back to top