Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 58 for Elias (0.1 sec)

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

    	orig    *Alias         // original, uninstantiated alias
    	tparams *TypeParamList // type parameters, or nil
    	targs   *TypeList      // type arguments, or nil
    	fromRHS Type           // RHS of type alias declaration; may be an alias
    	actual  Type           // actual (aliased) type; never an alias
    }
    
    // NewAlias creates a new Alias type with the given type name and rhs.
    // rhs must not be nil.
    func NewAlias(obj *TypeName, rhs Type) *Alias {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 5K bytes
    - Viewed (0)
  2. src/cmd/dist/build.go

    		os.Setenv("CC", compilerEnvLookup("CC", defaultcc, gohostos, gohostarch))
    		goCmd(nil, gorootBinGo, "build", "-o", pathf("%s/go_%s_%s_exec%s", gorootBin, goos, goarch, exe), wrapperPath)
    		// Restore environment.
    		// TODO(elias.naur): support environment variables in goCmd?
    		os.Setenv("GOOS", goos)
    		os.Setenv("GOARCH", goarch)
    		os.Setenv("CC", oldcc)
    	}
    
    	if distpack {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 18:34:40 UTC 2024
    - 54K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/types2/decl.go

    			// this information explicitly in the object.
    			var alias bool
    			if check.conf.EnableAlias {
    				alias = obj.IsAlias()
    			} else {
    				if d := check.objMap[obj]; d != nil {
    					alias = d.tdecl.Alias // package-level object
    				} else {
    					alias = obj.IsAlias() // function local object
    				}
    			}
    			if !alias {
    				ndef++
    			}
    		case *Func:
    			// ignored for now
    		default:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 29.6K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/types2/object_test.go

    		{NewTypeName(nopos, nil, "rune", Typ[Rune]), true},                // type name refers to basic type rune which is an alias already
    		{t5, false}, // type name refers to type parameter and vice versa
    	} {
    		check(test.name, test.alias)
    	}
    }
    
    // TestEmbeddedMethod checks that an embedded method is represented by
    // the same Func Object as the original method. See also go.dev/issue/34421.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 18 14:10:44 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/ssagen/ssa.go

    	alias("sync/atomic", "LoadUint32", "internal/runtime/atomic", "Load", all...)
    	alias("sync/atomic", "LoadUint64", "internal/runtime/atomic", "Load64", all...)
    	alias("sync/atomic", "LoadUintptr", "internal/runtime/atomic", "Load", p4...)
    	alias("sync/atomic", "LoadUintptr", "internal/runtime/atomic", "Load64", p8...)
    
    	alias("sync/atomic", "StoreInt32", "internal/runtime/atomic", "Store", all...)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 19:44:43 UTC 2024
    - 284.9K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/types2/typestring.go

    					w.string("/* type parameter */")
    				}
    			}
    		}
    
    	case *Alias:
    		w.typeName(t.obj)
    		if list := t.targs.list(); len(list) != 0 {
    			// instantiated type
    			w.typeList(list)
    		}
    		if w.ctxt != nil {
    			// TODO(gri) do we need to print the alias type name, too?
    			w.typ(Unalias(t.obj.typ))
    		}
    
    	default:
    		// For externally defined implementations of Type.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/types2/api.go

    	// of an error message. ErrorURL must be a format string containing
    	// exactly one "%s" format, e.g. "[go.dev/e/%s]".
    	ErrorURL string
    
    	// If EnableAlias is set, alias declarations produce an Alias type. Otherwise
    	// the alias information is only in the type name, which points directly to
    	// the actual (aliased) type.
    	//
    	// This setting must not differ among concurrent type-checking operations,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 13:48:53 UTC 2024
    - 17.4K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/typecheck/iexport.go

    //             Pos       Pos
    //             Name      stringOff
    //             Recv      Param
    //             Signature Signature
    //         }
    //     }
    //
    //     type Alias struct {
    //         Tag  byte // 'A'
    //         Pos  Pos
    //         Type typeOff
    //     }
    //
    //     // "Automatic" declaration of each typeparam
    //     type TypeParam struct {
    //         Tag        byte // 'P'
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jul 21 02:40:02 UTC 2023
    - 6.8K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/walk/assign.go

    		}
    
    		if name.Addrtaken() || !name.OnStack() {
    			// Global variable, heap escaped, or just addrtaken.
    			// Conservatively assume any memory access might alias.
    			memWrite = true
    			continue
    		}
    
    		// Local, non-addrtaken variable.
    		// Assignments can only alias with direct uses of this variable.
    		assigned.Add(name)
    	}
    
    	early.Append(late.Take()...)
    	return early
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 17:09:06 UTC 2024
    - 20.3K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/types2/api_test.go

    	iface.NumMethods() // unlike go/types, there is no Complete() method, so we complete implicitly
    }
    
    func TestNewAlias_Issue65455(t *testing.T) {
    	obj := NewTypeName(nopos, nil, "A", nil)
    	alias := NewAlias(obj, Typ[Int])
    	alias.Underlying() // must not panic
    }
    
    func TestIssue15305(t *testing.T) {
    	const src = "package p; func f() int16; var _ = f(undef)"
    	f := mustParse(src)
    	conf := Config{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 20:08:23 UTC 2024
    - 93.3K bytes
    - Viewed (0)
Back to top