Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 14 of 14 for doDecl (0.15 sec)

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

    	if gm.Name() == "n" {
    		gm, gn = gn, gm
    	}
    
    	// Collect objects from info.
    	var dm, dn *Func   // the declared methods
    	var dmm, dmn *Func // the methods used in the body of m
    	for _, decl := range f.DeclList {
    		fdecl, ok := decl.(*syntax.FuncDecl)
    		if !ok {
    			continue
    		}
    		def := info.Defs[fdecl.Name].(*Func)
    		switch fdecl.Name.Value {
    		case "m":
    			dm = def
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 20:08:23 UTC 2024
    - 93.3K bytes
    - Viewed (0)
  2. src/go/types/api_test.go

    	if gm.Name() == "n" {
    		gm, gn = gn, gm
    	}
    
    	// Collect objects from info.
    	var dm, dn *Func   // the declared methods
    	var dmm, dmn *Func // the methods used in the body of m
    	for _, decl := range f.Decls {
    		fdecl, ok := decl.(*ast.FuncDecl)
    		if !ok {
    			continue
    		}
    		def := info.Defs[fdecl.Name].(*Func)
    		switch fdecl.Name.Name {
    		case "m":
    			dm = def
    			ast.Inspect(fdecl.Body, func(n ast.Node) bool {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 94.2K bytes
    - Viewed (0)
  3. src/cmd/cgo/out.go

    			if r.Align > p.PtrSize {
    				r.Align = p.PtrSize
    			}
    			return r
    		}
    		// Look up the type in the top level declarations.
    		// TODO: Handle types defined within a function.
    		for _, d := range p.Decl {
    			gd, ok := d.(*ast.GenDecl)
    			if !ok || gd.Tok != token.TYPE {
    				continue
    			}
    			for _, spec := range gd.Specs {
    				ts, ok := spec.(*ast.TypeSpec)
    				if !ok {
    					continue
    				}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 29 16:41:10 UTC 2024
    - 59.6K bytes
    - Viewed (0)
  4. src/cmd/cgo/gcc.go

    		return p.hasPointer(f, t.X, false)
    	case *ast.FuncType, *ast.InterfaceType, *ast.MapType, *ast.ChanType:
    		return true
    	case *ast.Ident:
    		// TODO: Handle types defined within function.
    		for _, d := range p.Decl {
    			gd, ok := d.(*ast.GenDecl)
    			if !ok || gd.Tok != token.TYPE {
    				continue
    			}
    			for _, spec := range gd.Specs {
    				ts, ok := spec.(*ast.TypeSpec)
    				if !ok {
    					continue
    				}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 15:50:06 UTC 2024
    - 97K bytes
    - Viewed (0)
Back to top