- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 138 for predeclared (0.26 sec)
-
src/internal/types/errors/codes.go
// InvalidConstType occurs when the underlying type in a const declaration // is not a valid constant type. // // Example: // const c *int = 4 InvalidConstType // UntypedNilUse occurs when the predeclared (untyped) value nil is used to // initialize a variable declared without an explicit type. // // Example: // var x = nil UntypedNilUse
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 03 22:50:48 UTC 2024 - 33.7K bytes - Viewed (0) -
src/internal/types/testdata/check/builtins0.go
f32 = imag /* ERRORx `cannot use .* in assignment` */ (c128) f64 = imag /* ERRORx `cannot use .* in assignment` */ (c64) imag /* ERROR "not used" */ (c64) _, _ = f32, f64 // complex type may not be predeclared type C64 complex64 type C128 complex128 var x64 C64 var x128 C128 f32 = imag(x64) f64 = imag(x128) var a []complex64 _ = imag(a... /* ERROR "invalid use of ..." */ )
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 29.3K bytes - Viewed (0) -
src/cmd/compile/internal/types2/api.go
switch tv.mode { case constant_, variable, mapindex, value, nilvalue, commaok, commaerr: return true } return false } // IsNil reports whether the corresponding expression denotes the // predeclared value nil. Depending on context, it may have been // given a type different from UntypedNil. func (tv TypeAndValue) IsNil() bool { return tv.mode == nilvalue }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jun 10 13:48:53 UTC 2024 - 17.4K bytes - Viewed (0) -
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) -
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) -
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) -
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) -
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) -
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) -
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)