- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 138 for predeclared (1.51 sec)
-
doc/go1.17_spec.html
denoted by the predeclared constants <code>true</code> and <code>false</code>. The predeclared boolean type is <code>bool</code>; it is a <a href="#Type_definitions">defined type</a>. </p> <h3 id="Numeric_types">Numeric types</h3> <p> A <i>numeric type</i> represents sets of integer or floating-point values. The predeclared architecture-independent numeric types are: </p>
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 11 20:22:45 UTC 2024 - 211.6K bytes - Viewed (0) -
hack/tools/go.mod
github.com/nakabonne/nestif v0.3.1 // indirect github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e // indirect github.com/nishanths/exhaustive v0.12.0 // indirect github.com/nishanths/predeclared v0.2.2 // indirect github.com/nunnatsa/ginkgolinter v0.15.2 // indirect github.com/olekukonko/tablewriter v0.0.5 // indirect github.com/pelletier/go-toml v1.9.5 // indirect
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Mar 07 08:12:16 UTC 2024 - 10.1K bytes - Viewed (0) -
src/go/doc/example.go
// An Example is "playable" (the Play field is non-nil) in either of these // circumstances: // - The example function is self-contained: the function references only // identifiers from other packages (or predeclared identifiers, such as // "int") and the test file does not include a dot import. // - The entire test file is the example: the file contains exactly one
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 21.4K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/types/objectpath/objectpath.go
// function to fail if called on a package loaded from export data. // TODO(adonovan): is this a bug or feature? Should this package // compute accessibility in the same way? // // For does not return a path for predeclared names, imported package // names, local names, and unexported package-level names (except // types). // // Example: given this definition, // // package p // // type T interface {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 02:20:05 UTC 2024 - 23.1K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/_gen/rulegen.go
w.List = append(w.List, node) } // predeclared contains globally known tokens that should not be redefined. var predeclared = map[string]bool{ "nil": true, "false": true, "true": true, } // declared reports if the body contains a Declare with the given name. func (w *BodyBase) declared(name string) bool { if predeclared[name] { // Treat predeclared names as having already been declared.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Sep 02 22:09:21 UTC 2023 - 48.7K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/internal/typesinternal/errorcode.go
// is not a valid constant type. // // Example: // const c *int = 4 InvalidConstType /* decls > var (+ other variable assignment codes) */ // 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: Fri May 03 02:38:00 UTC 2024 - 34K bytes - Viewed (0) -
src/cmd/compile/internal/types/fmt.go
for i, et := range tys { if i > 0 { b.WriteByte(',') } b.WriteString(et.String()) } return } if t == AnyType || t == ByteType || t == RuneType { // in %-T mode collapse predeclared aliases with their originals. switch mode { case fmtTypeIDName, fmtTypeID: t = Types[t.Kind()] default: sconv2(b, t.Sym(), 'S', mode) return } } if t == ErrorType {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 12 15:41:17 UTC 2023 - 15.7K bytes - Viewed (0) -
src/log/slog/value.go
} } return n } // AnyValue returns a [Value] for the supplied value. // // If the supplied value is of type Value, it is returned // unmodified. // // Given a value of one of Go's predeclared string, bool, or // (non-complex) numeric types, AnyValue returns a Value of kind // [KindString], [KindBool], [KindUint64], [KindInt64], or [KindFloat64]. // The width of the original numeric type is not preserved. //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 16 16:12:08 UTC 2024 - 13.3K bytes - Viewed (0) -
src/go/types/assignments.go
} seen[name] = true } // Use the correct obj if the ident is redeclared. The // variable's scope starts after the declaration; so we // must use Scope.Lookup here and call Scope.Insert // (via check.declare) later. if alt := scope.Lookup(name); alt != nil { check.recordUse(ident, alt) // redeclared object must be a variable if obj, _ := alt.(*Var); obj != nil { lhsVars[i] = obj
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 03 18:48:38 UTC 2024 - 16.4K bytes - Viewed (0) -
src/cmd/compile/internal/types2/assignments.go
} seen[name] = true } // Use the correct obj if the ident is redeclared. The // variable's scope starts after the declaration; so we // must use Scope.Lookup here and call Scope.Insert // (via check.declare) later. if alt := scope.Lookup(name); alt != nil { check.recordUse(ident, alt) // redeclared object must be a variable if obj, _ := alt.(*Var); obj != nil { lhsVars[i] = obj
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Feb 23 21:21:43 UTC 2024 - 16.4K bytes - Viewed (0)