Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for importfunc (0.1 sec)

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

    package typecheck
    
    import (
    	"cmd/compile/internal/base"
    	"cmd/compile/internal/ir"
    	"cmd/compile/internal/types"
    	"cmd/internal/src"
    )
    
    // importfunc declares symbol s as an imported function with type t.
    func importfunc(s *types.Sym, t *types.Type) {
    	fn := ir.NewFunc(src.NoXPos, src.NoXPos, s, t)
    	importsym(fn.Nname)
    }
    
    // importvar declares symbol s as an imported variable with type t.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 17 19:36:28 UTC 2023
    - 838 bytes
    - Viewed (0)
  2. src/cmd/compile/internal/typecheck/syms.go

    func InitRuntime() {
    	base.Timer.Start("fe", "loadsys")
    
    	typs := runtimeTypes()
    	for _, d := range &runtimeDecls {
    		sym := ir.Pkgs.Runtime.Lookup(d.name)
    		typ := typs[d.typ]
    		switch d.tag {
    		case funcTag:
    			importfunc(sym, typ)
    		case varTag:
    			importvar(sym, typ)
    		default:
    			base.Fatalf("unhandled declaration tag %v", d.tag)
    		}
    	}
    }
    
    // LookupRuntimeFunc looks up Go function name in package runtime. This function
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 22 21:17:13 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/cgocall/cgocall.go

    }
    
    func isUnsafePointer(info *types.Info, e ast.Expr) bool {
    	t := info.Types[e].Type
    	return t != nil && t.Underlying() == types.Typ[types.UnsafePointer]
    }
    
    type importerFunc func(path string) (*types.Package, error)
    
    func (f importerFunc) Import(path string) (*types.Package, error) { return f(path) }
    
    // TODO(adonovan): make this a library function or method of Info.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 11.2K bytes
    - Viewed (0)
  4. src/cmd/vendor/golang.org/x/tools/go/analysis/unitchecker/unitchecker.go

    	}
    
    	return results, nil
    }
    
    type result struct {
    	a           *analysis.Analyzer
    	diagnostics []analysis.Diagnostic
    	err         error
    }
    
    type importerFunc func(path string) (*types.Package, error)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 13K bytes
    - Viewed (0)
Back to top