Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 5,019 for types2 (0.14 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. src/go/types/tuple.go

    // Source: ../../cmd/compile/internal/types2/tuple.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 Tuple represents an ordered list of variables; a nil *Tuple is a valid (empty) tuple.
    // Tuples are used as components of signatures and to represent the type of multiple
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 1K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/types2/array.go

    // license that can be found in the LICENSE file.
    
    package types2
    
    // An Array represents an array type.
    type Array struct {
    	len  int64
    	elem Type
    }
    
    // NewArray returns a new array type for the given element type and length.
    // A negative length indicates an unknown length.
    func NewArray(elem Type, len int64) *Array { return &Array{len: len, elem: elem} }
    
    // Len returns the length of array a.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 01 22:17:50 UTC 2021
    - 803 bytes
    - Viewed (0)
  7. test/typeparam/issue39755.go

    // license that can be found in the LICENSE file.
    
    // copied from cmd/compile/internal/types2/testdata/fixedbugs/issue39755.go
    
    package p
    
    func _[T interface{ ~map[string]int }](x T) {
    	_ = x == nil
    }
    
    // simplified test case from issue
    
    type PathParamsConstraint interface {
    	~map[string]string | ~[]struct{ key, value string }
    }
    
    type PathParams[T PathParamsConstraint] struct {
    	t T
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 01 19:45:34 UTC 2022
    - 593 bytes
    - Viewed (0)
  8. src/cmd/compile/internal/types2/slice.go

    package types2
    
    // 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} }
    
    // Elem returns the element type of slice s.
    func (s *Slice) Elem() Type { return s.elem }
    
    func (s *Slice) Underlying() Type { return s }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 01 22:17:50 UTC 2021
    - 577 bytes
    - Viewed (0)
  9. src/cmd/compile/internal/types2/gccgosizes.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // This is a copy of the file generated during the gccgo build process.
    // Last update 2019-01-22.
    
    package types2
    
    var gccgoArchSizes = map[string]*StdSizes{
    	"386":         {4, 4},
    	"alpha":       {8, 8},
    	"amd64":       {8, 8},
    	"amd64p32":    {4, 8},
    	"arm":         {4, 8},
    	"armbe":       {4, 8},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 17 19:55:06 UTC 2023
    - 1K bytes
    - Viewed (0)
  10. src/go/types/array.go

    // Source: ../../cmd/compile/internal/types2/array.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
    
    // An Array represents an array type.
    type Array struct {
    	len  int64
    	elem Type
    }
    
    // NewArray returns a new array type for the given element type and length.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 927 bytes
    - Viewed (0)
Back to top