Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for NewLocal (0.16 sec)

  1. src/cmd/compile/internal/typecheck/dcl.go

    		base.FatalfAt(pos, "misuse of method type: %v", typ)
    	}
    	types.CalcSize(typ)
    
    	sym := &types.Sym{
    		Name: autotmpname(len(curfn.Dcl)),
    		Pkg:  types.LocalPkg,
    	}
    	name := curfn.NewLocal(pos, sym, typ)
    	name.SetEsc(ir.EscNever)
    	name.SetUsed(true)
    	name.SetAutoTemp(true)
    
    	return name
    }
    
    var (
    	autotmpnamesmu sync.Mutex
    	autotmpnames   []string
    )
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 14 13:15:50 UTC 2023
    - 3.1K bytes
    - Viewed (0)
Back to top