Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 2,877 for types2 (0.19 sec)

  1. src/go/types/pointer.go

    // Source: ../../cmd/compile/internal/types2/pointer.go
    
    // Copyright 2011 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 types
    
    // A Pointer represents a pointer type.
    type Pointer struct {
    	base Type // element type
    }
    
    // NewPointer returns a new pointer type for the given element (base) type.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 761 bytes
    - Viewed (0)
  2. src/internal/types/testdata/fixedbugs/issue43190.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // The errors below are produced by the parser, but we check
    // them here for consistency with the types2 tests.
    
    package p
    
    import ; // ERROR "missing import path"
    import "" // ERROR "invalid import path (empty string)"
    import
    var /* ERROR "missing import path" */ _ int
    import .; // ERROR "missing import path"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 17 19:54:27 UTC 2023
    - 997 bytes
    - Viewed (0)
  3. src/go/types/testdata/local/shifts.go

    // license that can be found in the LICENSE file.
    
    // The following shift tests are disabled in the shared
    // testdata/check/shifts.go file because they don't work
    // correctly with types2 at the moment. See go.dev/issue/52080.
    // Make sure we keep testing them with go/types.
    //
    // TODO(gri) Once go.dev/issue/52080 is fixed, this file can be
    //           deleted in favor of the re-enabled tests
    //           in the shared file.
    
    package p
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 01 21:31:01 UTC 2023
    - 886 bytes
    - Viewed (0)
  4. src/cmd/compile/internal/types2/compilersupport.go

    // type of all types in the corresponding type constraint 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.
    // If typ is not a type parameter, CoreType returns the underlying type.
    func CoreType(t Type) Type {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 09 22:58:35 UTC 2022
    - 1K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/types2/map.go

    package types2
    
    // A Map represents a map type.
    type Map struct {
    	key, elem Type
    }
    
    // NewMap returns a new map for the given key and element types.
    func NewMap(key, elem Type) *Map {
    	return &Map{key: key, elem: elem}
    }
    
    // Key returns the key type of map m.
    func (m *Map) Key() Type { return m.key }
    
    // Elem returns the element type of map m.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 01 22:17:50 UTC 2021
    - 659 bytes
    - Viewed (0)
  6. src/go/types/slice.go

    // Source: ../../cmd/compile/internal/types2/slice.go
    
    // Copyright 2011 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 types
    
    // A Slice represents a slice type.
    type Slice struct {
    	elem Type
    }
    
    // NewSlice returns a new slice type for the given element type.
    func NewSlice(elem Type) *Slice { return &Slice{elem: elem} }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 701 bytes
    - Viewed (0)
  7. src/cmd/compile/internal/types2/chan.go

    package types2
    
    // A Chan represents a channel type.
    type Chan struct {
    	dir  ChanDir
    	elem Type
    }
    
    // A ChanDir value indicates a channel direction.
    type ChanDir int
    
    // The direction of a channel is indicated by one of these constants.
    const (
    	SendRecv ChanDir = iota
    	SendOnly
    	RecvOnly
    )
    
    // NewChan returns a new channel type for the given direction and element type.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 01 22:17:50 UTC 2021
    - 910 bytes
    - Viewed (0)
  8. src/cmd/compile/internal/types2/sizeof_test.go

    package types2
    
    import (
    	"reflect"
    	"testing"
    )
    
    // Signal size changes of important structures.
    
    func TestSizeof(t *testing.T) {
    	const _64bit = ^uint(0)>>32 != 0
    
    	var tests = []struct {
    		val    interface{} // type as a value
    		_32bit uintptr     // size on 32bit platforms
    		_64bit uintptr     // size on 64bit platforms
    	}{
    		// Types
    		{Basic{}, 16, 32},
    		{Array{}, 16, 24},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 06 13:09:19 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/types2/errors_test.go

    // Copyright 2020 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 "testing"
    
    func TestError(t *testing.T) {
    	var err error_
    	want := "no error"
    	if got := err.msg(); got != want {
    		t.Errorf("empty error: got %q, want %q", got, want)
    	}
    
    	want = "foo 42"
    	err.addf(nopos, "foo %d", 42)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 23 21:21:43 UTC 2024
    - 979 bytes
    - Viewed (0)
  10. src/cmd/compile/internal/types2/objset.go

    //
    // An objset is similar to a Scope but objset elements
    // are identified by their unique id, instead of their
    // object name.
    
    package types2
    
    // An objset is a set of objects identified by their unique id.
    // The zero value for objset is a ready-to-use empty objset.
    type objset map[string]Object // initialized lazily
    
    // insert attempts to insert an object obj into objset s.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 27 23:30:38 UTC 2020
    - 928 bytes
    - Viewed (0)
Back to top