Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for declareParams (0.42 sec)

  1. src/cmd/compile/internal/ssa/export_test.go

    }
    
    func (c *Conf) Frontend() Frontend {
    	if c.fe == nil {
    		pkg := types.NewPkg("my/import/path", "path")
    		fn := ir.NewFunc(src.NoXPos, src.NoXPos, pkg.Lookup("function"), types.NewSignature(nil, nil, nil))
    		fn.DeclareParams(true)
    		fn.LSym = &obj.LSym{Name: "my/import/path.function"}
    
    		c.fe = TestFrontend{
    			t:    c.tb,
    			ctxt: c.config.ctxt,
    			f:    fn,
    		}
    	}
    	return c.fe
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 21:19:39 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/ir/func.go

    	e.SetTypecheck(1)
    	return e
    }
    
    // DeclareParams creates Names for all of the parameters in fn's
    // signature and adds them to fn.Dcl.
    //
    // If setNname is true, then it also sets types.Field.Nname for each
    // parameter.
    func (fn *Func) DeclareParams(setNname bool) {
    	if fn.Dcl != nil {
    		base.FatalfAt(fn.Pos(), "%v already has Dcl", fn)
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:05:44 UTC 2024
    - 21.1K bytes
    - Viewed (0)
Back to top