Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for UnsafePointer (0.09 sec)

  1. src/cmd/vendor/golang.org/x/tools/internal/analysisinternal/analysis.go

    // package name, as defined by the import environment of file.
    func TypeExpr(f *ast.File, pkg *types.Package, typ types.Type) ast.Expr {
    	switch t := typ.(type) {
    	case *types.Basic:
    		switch t.Kind() {
    		case types.UnsafePointer:
    			return &ast.SelectorExpr{X: ast.NewIdent("unsafe"), Sel: ast.NewIdent("Pointer")}
    		default:
    			return ast.NewIdent(t.Name())
    		}
    	case *types.Pointer:
    		x := TypeExpr(f, pkg, t.Elem())
    		if x == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 11.7K bytes
    - Viewed (0)
Back to top