Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 608 for types2 (0.15 sec)

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

    package syntax
    
    import "go/constant"
    
    // A Type represents a type of Go.
    // All types implement the Type interface.
    // (This type originally lived in types2. We moved it here
    // 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.
    	//
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 20:03:31 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/types2/util.go

    // This file contains various functionality that is
    // different between go/types and types2. Factoring
    // out this code allows more of the rest of the code
    // to be shared.
    
    package types2
    
    import (
    	"cmd/compile/internal/syntax"
    	"go/constant"
    	"go/token"
    )
    
    const isTypes2 = true
    
    // cmpPos compares the positions p and q and returns a result r as follows:
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/types2/compiler_internal.go

    // Copyright 2024 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.
    
    package types2
    
    import (
    	"cmd/compile/internal/syntax"
    	"fmt"
    )
    
    // This file should not be copied to go/types.  See go.dev/issue/67477
    
    // RenameResult takes an array of (result) fields and an index, and if the indexed field
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 21:08:03 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  4. src/go/types/util.go

    // license that can be found in the LICENSE file.
    
    // This file contains various functionality that is
    // different between go/types and types2. Factoring
    // out this code allows more of the rest of the code
    // to be shared.
    
    package types
    
    import (
    	"go/ast"
    	"go/constant"
    	"go/token"
    )
    
    const isTypes2 = false
    
    // cmpPos compares the positions p and q and returns a result r as follows:
    //
    // r <  0: p is before q
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/types2/under.go

    // type of all types in its type set if it exists, or nil otherwise. If the
    // type set contains only unrestricted and restricted channel types (with
    // identical element types), the single underlying type is the restricted
    // channel type if the restrictions are always the same, or nil otherwise.
    func coreType(t Type) Type {
    	t = Unalias(t)
    	tpar, _ := t.(*TypeParam)
    	if tpar == nil {
    		return under(t)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 22:34:27 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/types2/version.go

    // license that can be found in the LICENSE file.
    
    package types2
    
    import (
    	"fmt"
    	"go/version"
    	"internal/goversion"
    )
    
    // A goVersion is a Go language version string of the form "go1.%d"
    // where d is the minor version number. goVersion strings don't
    // contain release numbers ("go1.20.1" is not a valid goVersion).
    type goVersion string
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 20:44:57 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  7. src/go/types/under.go

    	return t.Underlying()
    }
    
    // If t is not a type parameter, coreType returns the underlying type.
    // If t is a type parameter, coreType returns the single underlying
    // type of all types in its type set if it exists, or nil otherwise. If the
    // type set contains only unrestricted and restricted channel types (with
    // identical element types), the single underlying type is the restricted
    // channel type if the restrictions are always the same, or nil otherwise.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 22:34:27 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/types2/format.go

    // This file implements (error and trace) message formatting support.
    
    package types2
    
    import (
    	"bytes"
    	"cmd/compile/internal/syntax"
    	"fmt"
    	"strconv"
    	"strings"
    )
    
    func sprintf(qf Qualifier, tpSubscripts bool, format string, args ...any) string {
    	for i, arg := range args {
    		switch a := arg.(type) {
    		case nil:
    			arg = "<nil>"
    		case operand:
    			panic("got operand instead of *operand")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/types2/typeparam.go

    func nextID() uint64 { return uint64(lastID.Add(1)) }
    
    // A TypeParam represents a type parameter type.
    type TypeParam struct {
    	check *Checker  // for lazy type bound completion
    	id    uint64    // unique id, for debugging only
    	obj   *TypeName // corresponding type name
    	index int       // type parameter index in source order, starting at 0
    	bound Type      // any type, but underlying is eventually *Interface for correct programs (see TypeParam.iface)
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 20:03:31 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/types2/alias.go

    // Underlying returns the [underlying type] of the alias type a, which is the
    // underlying type of the aliased type. Underlying types are never Named,
    // TypeParam, or Alias types.
    //
    // [underlying type]: https://go.dev/ref/spec#Underlying_types.
    func (a *Alias) Underlying() Type { return unalias(a).Underlying() }
    
    // Origin returns the generic Alias type of which a is an instance.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 5K bytes
    - Viewed (0)
Back to top