Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 210 for predeclared (0.23 sec)

  1. src/cmd/compile/internal/types/type.go

    var Types [NTYPE]*Type
    
    var (
    	// Predeclared alias types. These are actually created as distinct
    	// defined types for better error messages, but are then specially
    	// treated as identical to their respective underlying types.
    	AnyType  *Type
    	ByteType *Type
    	RuneType *Type
    
    	// Predeclared error interface type.
    	ErrorType *Type
    	// Predeclared comparable interface type.
    	ComparableType *Type
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:29:45 UTC 2024
    - 49.5K bytes
    - Viewed (0)
  2. src/go/types/typexpr.go

    		}
    		return
    	case universeComparable:
    		if !check.verifyVersionf(e, go1_18, "predeclared %s", e.Name) {
    			return // avoid follow-on errors
    		}
    	}
    	// Because the representation of any depends on gotypesalias, we don't check
    	// pointer identity here.
    	if obj.Name() == "any" && obj.Parent() == Universe {
    		if !check.verifyVersionf(e, go1_18, "predeclared %s", e.Name) {
    			return // avoid follow-on errors
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 16.3K bytes
    - Viewed (0)
  3. test/append.go

    // run
    
    // Copyright 2010 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Semi-exhaustive test for the append predeclared function.
    
    package main
    
    import (
    	"fmt"
    	"reflect"
    )
    
    func verify(name string, result, expected interface{}) {
    	if !reflect.DeepEqual(result, expected) {
    		panic(name)
    	}
    }
    
    func main() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun May 06 04:28:23 UTC 2018
    - 9.1K bytes
    - Viewed (0)
  4. test/copy.go

    // run
    
    // Copyright 2009 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Semi-exhaustive test for the copy predeclared function.
    
    package main
    
    import (
    	"fmt"
    	"os"
    )
    
    const N = 40
    
    var input8 = make([]uint8, N)
    var output8 = make([]uint8, N)
    var input16 = make([]uint16, N)
    var output16 = make([]uint16, N)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 12 18:17:49 UTC 2013
    - 6.6K bytes
    - Viewed (0)
  5. doc/go_spec.html

    <code>real</code> and <code>imag</code> applied to a complex constant
    and <code>complex</code> applied to numeric constants.
    The boolean truth values are represented by the predeclared constants
    <code>true</code> and <code>false</code>. The predeclared identifier
    <a href="#Iota">iota</a> denotes an integer constant.
    </p>
    
    <p>
    In general, complex constants are a form of
    <a href="#Constant_expressions">constant expression</a>
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 21:07:21 UTC 2024
    - 281.5K bytes
    - Viewed (1)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top