Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 61 for Elias (0.25 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/go/testdata/script/cgo_badmethod_issue57926.txt

    ! stderr 'Alias'
    
    -- go.mod --
    module example.com
    go 1.12
    
    -- a.go --
    package a
    
    /*
    typedef int T;
    */
    import "C"
    
    func (C.T) f() {}
    func (recv *C.T) g() {}
    
    // The check is more education than enforcement,
    // and is easily defeated using a type alias.
    type Alias = C.T
    func (Alias) h() {}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 02 12:55:28 UTC 2023
    - 562 bytes
    - Viewed (0)
  4. src/cmd/compile/internal/types2/resolver.go

    		for _, obj := range objList {
    			check.objDecl(obj, nil)
    		}
    	} else {
    		// Without Alias nodes, we process non-alias type declarations first, followed by
    		// alias declarations, and then everything else. This appears to avoid most situations
    		// where the type of an alias is needed before it is available.
    		// There may still be cases where this is not good enough (see also go.dev/issue/25838).
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 18 14:10:44 UTC 2024
    - 26.3K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/types2/predicates.go

    // TODO(gri) should we include signatures or assert that they are not present?
    func isGeneric(t Type) bool {
    	// A parameterized type is only generic if it doesn't have an instantiation already.
    	if alias, _ := t.(*Alias); alias != nil && alias.tparams != nil && alias.targs == nil {
    		return true
    	}
    	named := asNamed(t)
    	return named != nil && named.obj != nil && named.inst == nil && named.TypeParams().Len() > 0
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 17.5K bytes
    - Viewed (0)
  6. src/cmd/go/internal/test/internal/genflags/vetflag.go

    	for _, flag := range analysisFlags {
    		if rEnable.MatchString(flag.Usage) {
    			analyzerSet[flag.Name] = true
    		}
    	}
    
    	rDeprecated := regexp.MustCompile("^deprecated alias for -(?P<analyzer>(.+))$")
    	// Returns the original value matched by rDeprecated on input value.
    	// If there is no match, "" is returned.
    	originalValue := func(value string) string {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 17:49:12 UTC 2022
    - 1.8K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/types2/instantiate.go

    	Type
    	TypeParams() *TypeParamList
    }
    
    // Instantiate instantiates the type orig with the given type arguments targs.
    // orig must be an *Alias, *Named, or *Signature type. If there is no error,
    // the resulting Type is an instantiated type of the same kind (*Alias, *Named
    // or *Signature, respectively).
    //
    // Methods attached to a *Named type are also instantiated, and associated with
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/syntax/type.go

    // so we could depend on it from other packages without
    // introducing an import cycle.)
    type Type interface {
    	// Underlying returns the underlying type of a type.
    	// Underlying types are never Named, TypeParam, or Alias types.
    	//
    	// See https://go.dev/ref/spec#Underlying_types.
    	Underlying() Type
    
    	// String returns a string representation of a type.
    	String() string
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 20:03:31 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/types2/typexpr.go

    			x.val = obj.val
    		}
    		assert(x.val != nil)
    		x.mode = constant_
    
    	case *TypeName:
    		if !check.conf.EnableAlias && check.isBrokenAlias(obj) {
    			check.errorf(e, InvalidDeclCycle, "invalid use of type alias %s in recursive type (see go.dev/issue/50729)", obj.name)
    			return
    		}
    		x.mode = typexpr
    
    	case *Var:
    		// It's ok to mark non-local variables, but ignore variables
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/ssa/poset.go

    				oldidx := uint32(pass.ID)
    				po.constants[val] = oldidx
    			}
    
    		case undoAliasNode:
    			ID, prev := pass.ID, pass.idx
    			cur := po.values[ID]
    			if prev == 0 {
    				// Born as an alias, die as an alias
    				delete(po.values, ID)
    			} else {
    				if cur == prev {
    					panic("invalid aliasnode undo pass")
    				}
    				// Give it back previous value
    				po.values[ID] = prev
    			}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 04 17:23:05 UTC 2023
    - 37.2K bytes
    - Viewed (0)
Back to top