Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 70 for predeclared (0.35 sec)

  1. src/internal/reflectlite/type.go

    	Name() string
    
    	// PkgPath returns a defined type's package path, that is, the import path
    	// that uniquely identifies the package, such as "encoding/base64".
    	// If the type was predeclared (string, error) or not defined (*T, struct{},
    	// []int, or A where A is an alias for a non-defined type), the package path
    	// will be the empty string.
    	PkgPath() string
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 17:01:54 UTC 2024
    - 16.2K bytes
    - Viewed (0)
  2. src/go/types/api.go

    	switch tv.mode {
    	case constant_, variable, mapindex, value, commaok, commaerr:
    		return true
    	}
    	return false
    }
    
    // IsNil reports whether the corresponding expression denotes the
    // predeclared value nil.
    func (tv TypeAndValue) IsNil() bool {
    	return tv.mode == value && tv.Type == Typ[UntypedNil]
    }
    
    // Addressable reports whether the corresponding expression
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 17.2K bytes
    - Viewed (0)
  3. src/go/types/predicates.go

    		return tpar.is(func(t *term) bool { return t != nil && isBasic(t.typ, info) })
    	}
    	return isBasic(t, info)
    }
    
    // hasName reports whether t has a name. This includes
    // predeclared types, defined types, and type parameters.
    // hasName may be called with types that are not fully set up.
    func hasName(t Type) bool {
    	switch Unalias(t).(type) {
    	case *Basic, *Named, *TypeParam:
    		return true
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/types2/predicates.go

    		return tpar.is(func(t *term) bool { return t != nil && isBasic(t.typ, info) })
    	}
    	return isBasic(t, info)
    }
    
    // hasName reports whether t has a name. This includes
    // predeclared types, defined types, and type parameters.
    // hasName may be called with types that are not fully set up.
    func hasName(t Type) bool {
    	switch Unalias(t).(type) {
    	case *Basic, *Named, *TypeParam:
    		return true
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 17.5K bytes
    - Viewed (0)
  5. src/runtime/panic.go

    }
    
    func (*PanicNilError) Error() string { return "panic called with nil argument" }
    func (*PanicNilError) RuntimeError() {}
    
    var panicnil = &godebugInc{name: "panicnil"}
    
    // The implementation of the predeclared function panic.
    // The compiler emits calls to this function.
    //
    // gopanic should be an internal detail,
    // but widely used packages access it using linkname.
    // Notable members of the hall of shame include:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 43.8K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/types2/object.go

    	object
    	id builtinId
    }
    
    func newBuiltin(id builtinId) *Builtin {
    	return &Builtin{object{name: predeclaredFuncs[id].name, typ: Typ[Invalid], color_: black}, id}
    }
    
    // Nil represents the predeclared value nil.
    type Nil struct {
    	object
    }
    
    func writeObject(buf *bytes.Buffer, obj Object, qf Qualifier) {
    	var tname *TypeName
    	typ := obj.Type()
    
    	switch obj := obj.(type) {
    	case *PkgName:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 20:08:23 UTC 2024
    - 20.1K bytes
    - Viewed (0)
  7. src/math/bits/bits.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:generate go run make_tables.go
    
    // Package bits implements bit counting and manipulation
    // functions for the predeclared unsigned integer types.
    //
    // Functions in this package may be implemented directly by
    // the compiler, for better performance. For those functions
    // the code in this package will not be used. Which
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 11:59:09 UTC 2023
    - 17.9K bytes
    - Viewed (0)
  8. src/go/types/object.go

    	object
    	id builtinId
    }
    
    func newBuiltin(id builtinId) *Builtin {
    	return &Builtin{object{name: predeclaredFuncs[id].name, typ: Typ[Invalid], color_: black}, id}
    }
    
    // Nil represents the predeclared value nil.
    type Nil struct {
    	object
    }
    
    func writeObject(buf *bytes.Buffer, obj Object, qf Qualifier) {
    	var tname *TypeName
    	typ := obj.Type()
    
    	switch obj := obj.(type) {
    	case *PkgName:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 20:08:23 UTC 2024
    - 20.1K bytes
    - Viewed (0)
  9. src/cmd/internal/goobj/objfile.go

    // object file.
    
    // Symbol indexing.
    //
    // Each symbol is referenced with a pair of indices, { PkgIdx, SymIdx },
    // as the symRef struct above.
    //
    // PkgIdx is either a predeclared index (see PkgIdxNone below) or
    // an index of an imported package. For the latter case, PkgIdx is the
    // index of the package in the PkgIndex array. 0 is an invalid index.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 23.8K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/typecheck/subr.go

    	if src.IsChan() && src.ChanDir() == types.Cboth && dst.IsChan() {
    		if types.Identical(src.Elem(), dst.Elem()) && (src.Sym() == nil || dst.Sym() == nil) {
    			return ir.OCONVNOP, ""
    		}
    	}
    
    	// 5. src is the predeclared identifier nil and dst is a nillable type.
    	if src.Kind() == types.TNIL {
    		switch dst.Kind() {
    		case types.TPTR,
    			types.TFUNC,
    			types.TMAP,
    			types.TCHAN,
    			types.TINTER,
    			types.TSLICE:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 05 19:45:58 UTC 2023
    - 20.2K bytes
    - Viewed (0)
Back to top